Glance raise 500 error when delete images with unallowed status change

Bug #1505474 reported by wangxiyuan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
High
wangxiyuan
Kilo
New
Undecided
Unassigned
Liberty
Fix Committed
Undecided
Unassigned

Bug Description

When user try to change the image's status to unallowed status, such as deactivated --> pending-delete, it will rasie a 500 error.

It's not clear to user. So we should catch this error and return to user.

wangxiyuan (wangxiyuan)
Changed in glance:
assignee: nobody → wangxiyuan (wangxiyuan)
wangxiyuan (wangxiyuan)
summary: - Glance raise 500 error when change image's status to unallowed stauts
+ Glance raise 500 error when delete images with unallowed status change
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (master)

Fix proposed to branch: master
Review: https://review.openstack.org/233926

Changed in glance:
status: New → In Progress
Erno Kuvaja (jokke)
Changed in glance:
importance: Undecided → High
milestone: none → mitaka-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/233926
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=1f8511d8b09c5199a57588e8312a46441fbcd7a6
Submitter: Jenkins
Branch: master

commit 1f8511d8b09c5199a57588e8312a46441fbcd7a6
Author: wangxiyuan <email address hidden>
Date: Tue Oct 13 12:13:29 2015 +0800

    Catch InvalidImageStatusTransition error

    Now, when delete image to unallowed status, it will raise a 500
    error. So we should catch that error to avoid it.

    Change-Id: I47f777a81a6069793dfa4d52eace79edb266669d
    Closes-bug: #1505474

Changed in glance:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (stable/liberty)

Fix proposed to branch: stable/liberty
Review: https://review.openstack.org/247387

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (stable/liberty)

Reviewed: https://review.openstack.org/247387
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=ecb2def984834f707726bd3080b3f536fc8bc83d
Submitter: Jenkins
Branch: stable/liberty

commit ecb2def984834f707726bd3080b3f536fc8bc83d
Author: wangxiyuan <email address hidden>
Date: Tue Oct 13 12:13:29 2015 +0800

    Catch InvalidImageStatusTransition error

    Now, when delete image to unallowed status, it will raise a 500
    error. So we should catch that error to avoid it.

    Change-Id: I47f777a81a6069793dfa4d52eace79edb266669d
    Closes-bug: #1505474
    (cherry picked from commit 1f8511d8b09c5199a57588e8312a46441fbcd7a6)

Changed in glance:
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/glance 11.0.1

This issue was fixed in the openstack/glance 11.0.1 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.