the nova server backup api returns the image uuid of the backup image but the sdk does not
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| openstacksdk |
Fix Released
|
Undecided
|
sean mooney | ||
| python-openstackclient |
In Progress
|
Undecided
|
sean mooney | ||
Bug Description
https:/
currently the sdk does not return the uuid of the created image return by nova.
as a result the backup_server proxy api also does not return teh imag or uuid
https:/
which forces the openstack client to try and look up the created image by name.
this forces the openstack client to try and lookup the image by name
which works exactly once.
the semantics of the server backup api is that you invoke it every time you want to create a backup with the same name so that nova can find the related backup images and delete them when rotation is enabeld.
the current logic in the openstack client calls find_image with the backup_name and expect to find exactly 1 image
this will work the first time a backup is created and fail with a multiple images exist error on all future invocations.
The way to fix this is too modify the sdk to retrun the image uuid form backup, and the image object from
backup_server, exactly like create_image and create_server_image respectively.
https:/
https:/
then update the client to use the returned image instead of looking it up.
| Changed in openstacksdk: | |
| status: | New → In Progress |
| assignee: | nobody → sean mooney (sean-k-mooney) |
| Changed in python-openstackclient: | |
| status: | New → In Progress |
| assignee: | nobody → sean mooney (sean-k-mooney) |
Reviewed: https:/ /review. opendev. org/c/openstack /openstacksdk/ +/948584 /opendev. org/openstack/ openstacksdk/ commit/ ee3fae1a8dd8c2d cfd49b9b5d65e9f fd92e96db8
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit ee3fae1a8dd8c2d cfd49b9b5d65e9f fd92e96db8
Author: Sean Mooney <email address hidden>
Date: Wed Apr 30 20:13:46 2025 +0000
Fix backup_server proxy and action
Just like the create_image action, the server backup action returns the server_ image.
uuid of the created backup image. This change makes the backup action
return the uuid and the backup_server proxy function return the glance
image object, consistent with create_
backup_server now also accepts optional wait and timeout keyword server_ image.
arguments to wait for the image to reach active status, mirroring the
behaviour of create_
The misleading legacy comment in create_image has also been replaced
with an accurate description of the microversion 2.45 behaviour.
Change-Id: I7a38ab30d215db 28d396f4acee67c 84b523dc2f8
Signed-off-by: Sean Mooney <email address hidden>
Assisted-By: claude-code sonnet 4.6
Closes-Bug: #2110035