Comment 2 for bug 1395084

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-glanceclient (master)

Reviewed: https://review.openstack.org/136520
Committed: https://git.openstack.org/cgit/openstack/python-glanceclient/commit/?id=af29e0a1b0185caa61c3aed30c35a2d8f0e216cc
Submitter: Jenkins
Branch: master

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.

    Change-Id: I91bbd7f86d5851a5e35946c711dba1932283ed79
    Closes-Bug: #1395084