Nova image list does not list killed images.
Bug #939791 reported by
Monsyne Dragon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Medium
|
Unassigned |
Bug Description
If you take a snapshot of an existing server, and it fails for some reason, the image will be put into a 'killed' (error) state in glance, as it should be. However, when the nova api lists images, it does *not* list killed images.
The result is the end user being very confused when their 'SAVING' image suddenly just goes away (from their point of view), instead of telling them there was an error.
Changed in nova: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in nova: | |
assignee: | nobody → Sailaja Pashumarthy (sailaja-pashumarthy) |
Changed in nova: | |
status: | Confirmed → In Progress |
To post a comment you must log in.
Description :
Upload image of size 25MB to Glance.While adding image to Glance,error message indicates data provided is not complete as Ram and kernel details are not provided.
But in the list of images ,status of the above image will be 'SAVING' which should be 'ERROR' as the image is not uploaded properly.
Command to reproduce this bug :
root@OpenstackE ssex10: ~# glance -A 93aa6ecbcaaa4e1 78a927035160281 bf add name="amitest- image" is_public=true < /root/openstack essex/ubuntuimg /ami-tty/ image ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======[ 100%] 13.6M/s, ETA 0h 0m 0s
=======
Failed to add image. Got error:
Data supplied was not valid.
Details: 400 Bad Request
The server could not comply with the request since it is either malformed or otherwise incorrect.
Failed to activate image. Got error: Data supplied was not valid. Details: 400 Bad Request The server could not comply with the request since it is either malformed or otherwise incorrect. Failed to update image metadata. Got error: Data supplied was not valid. Details: Invalid disk format 'None' for image.
Note: Your image metadata may still be in the registry, but the image's status will likely be 'killed'.
Status is retrieved as below :
root@OpenstackE ssex10: ~# nova image-list
+------ ------- ------- ------- ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ------- -+----- ------- ------- ------- ---+--- ------- ------- ------- -+ ------- ------- ------- ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ------- --+---- ------- ------- ------- ----+-- ------- ------- ------- --+ 9625-425b- 82c7-dcd90ba2fd 46 | amitest-image | SAVING | | ------- ------- ------- ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ------- --+---- ------- ------- ------- ----+-- ------- ------- ------- --+
| ID | NAME | STATUS |SERVER |
+------
| 63afbb9c-
+------