Image size won't be updated if locations are updated to empty

Bug #1263729 reported by Feilong Wang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Medium
Feilong Wang

Bug Description

See https://github.com/openstack/glance/blob/master/glance/api/v2/images.py#L225

Based on current design, the image status will be updated to 'queued' if all locations are removed from the target image, but for now, the image size won't be updated. It doesn't make sense and will confuse the end user.

Feilong Wang (flwang)
Changed in glance:
assignee: nobody → Fei Long Wang (flwang)
importance: Undecided → Medium
status: New → Confirmed
Feilong Wang (flwang)
Changed in glance:
status: Confirmed → In Progress
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/64824

Feilong Wang (flwang)
Changed in glance:
milestone: none → icehouse-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

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

commit a8ef64c4eccbc0639e0e7a81ff584287a4f9ddd0
Author: Fei Long Wang <email address hidden>
Date: Fri Jan 3 11:01:16 2014 +0800

    Set image size to None after removing all locations

    Based on current design, the image size should be updated to
    None if there is no location assocaited with the image. This
    patch fixes this issue and introduces some related changes.

    Closes-Bug: #1263729

    Change-Id: I893468f1dc320ea9434f07c3a32f978cd5941b33

Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in glance:
milestone: icehouse-2 → 2014.1
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.