commit af29e0a1b0185caa61c3aed30c35a2d8f0e216cc
Author: Louis Taylor <email address hidden>
Date: Wed Dec 3 02:24:44 2014 +0000
Show error on trying to upload to non-queued image
Previously, attempting to upload data to an image which has a status
which is not 'queued' would appear to succeed, when the data has
actually never been sent to the glance server. To the user, it appeared
that their request was successful. This patch adds a check for incoming
image data on the 'image-update' command, and exits with an error if the
specified image does not have the status 'queued'.
Examples:
$ cat os.img | glance image-update d50b0236-b27c-412a-91b9-18ceafa9cc5a
Unable to upload image data to an image which is active.
$ glance image-update --file os.img d50b0236-b27c-412a-91b9-18ceafa9cc5a
Unable to upload image data to an image which is killed.
Reviewed: https:/ /review. openstack. org/136520 /git.openstack. org/cgit/ openstack/ python- glanceclient/ commit/ ?id=af29e0a1b01 85caa61c3aed30c 35a2d8f0e216cc
Committed: https:/
Submitter: Jenkins
Branch: master
commit af29e0a1b0185ca a61c3aed30c35a2 d8f0e216cc
Author: Louis Taylor <email address hidden>
Date: Wed Dec 3 02:24:44 2014 +0000
Show error on trying to upload to non-queued image
Previously, attempting to upload data to an image which has a status
which is not 'queued' would appear to succeed, when the data has
actually never been sent to the glance server. To the user, it appeared
that their request was successful. This patch adds a check for incoming
image data on the 'image-update' command, and exits with an error if the
specified image does not have the status 'queued'.
Examples:
$ cat os.img | glance image-update d50b0236- b27c-412a- 91b9-18ceafa9cc 5a
Unable to upload image data to an image which is active.
$ glance image-update --file os.img d50b0236- b27c-412a- 91b9-18ceafa9cc 5a
Unable to upload image data to an image which is killed.
Change-Id: I91bbd7f86d5851 a5e35946c711dba 1932283ed79
Closes-Bug: #1395084