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 |
In Progress
|
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) |