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@OpenstackEssex10:~# glance -A 93aa6ecbcaaa4e178a927035160281bf add name="amitest-image" is_public=true < /root/openstackessex/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@OpenstackEssex10:~# nova image-list
+-----------------------------------------------------------+--------------------------------------+-----------------------------+-------------------------+
| ID | NAME | STATUS |SERVER |
+-----------------------------------------------------------+---------------------------------------+-----------------------------+-------------------------+
| 63afbb9c-9625-425b-82c7-dcd90ba2fd46 | amitest-image | SAVING | |
+-----------------------------------------------------------+---------------------------------------+-----------------------------+-------------------------+
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-
+------