OpenStack Image Registry and Delivery Service (Glance)

image size and active status not set on update of queued image with location metadata

Reported by Eoghan Glynn on 2012-02-23
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
High
Eoghan Glynn

Bug Description

If an image is added with the x-image-meta-location header set, the image size is retrieved from the external store if available and the metadata is set appropriately.

However when a queued image is updated with the x-image-meta-location header, the image size metadata is not retrieved in that case.

Neither is the image status set to active, with the result that GETs on the image all fail with 404, rendering the image effectively useless.

Eoghan Glynn (eglynn) on 2012-02-23
Changed in glance:
importance: Undecided → Medium
status: New → Confirmed
milestone: none → essex-4
assignee: nobody → Eoghan Glynn (eglynn)
Eoghan Glynn (eglynn) on 2012-02-23
description: updated

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

Changed in glance:
status: Confirmed → In Progress
Eoghan Glynn (eglynn) wrote :

Just realized that neither is the image status set to active, with the result that GETs on the image all fail with 404.

Up'ing this bug to high importance, as the image is effectively useless if it cannot be retrieved.

summary: - image size not set on update of queued image with location metadata
+ image size and active status not set on update of queued image with
+ location metadata
Changed in glance:
importance: Medium → High
description: updated

Reviewed: https://review.openstack.org/4447
Committed: http://github.com/openstack/glance/commit/95dc869e3c36daaaee8da81f5d1701c938d1f8af
Submitter: Jenkins
Branch: master

commit 95dc869e3c36daaaee8da81f5d1701c938d1f8af
Author: Eoghan Glynn <email address hidden>
Date: Fri Feb 24 09:50:17 2012 +0000

    Fix update of queued image with location set.

    Fixes lp 939484

    When a queued image is updated with the x-image-meta-location header,
    the image size is retrieved from the external store if available and
    the metadata set appropriately.

    More importantly, the image is also activated at this point, otherwise
    it remains perpetually queued and cannot be retrieved via GET.

    Change-Id: Iae8b06479dcaa5e47785f646b1ebec202fe75371

Changed in glance:
status: In Progress → Fix Committed

Reviewed: https://review.openstack.org/4704
Committed: http://github.com/openstack/glance/commit/ccf6b92253ede572412ddb3be3ecc257bf83f6b7
Submitter: Jenkins
Branch: milestone-proposed

commit ccf6b92253ede572412ddb3be3ecc257bf83f6b7
Author: Eoghan Glynn <email address hidden>
Date: Fri Feb 24 09:50:17 2012 +0000

    Fix update of queued image with location set.

    Fixes lp 939484

    When a queued image is updated with the x-image-meta-location header,
    the image size is retrieved from the external store if available and
    the metadata set appropriately.

    More importantly, the image is also activated at this point, otherwise
    it remains perpetually queued and cannot be retrieved via GET.

    Change-Id: Iae8b06479dcaa5e47785f646b1ebec202fe75371

Changed in glance:
status: Fix Committed → Fix Released
Thierry Carrez (ttx) on 2012-04-05
Changed in glance:
milestone: essex-4 → 2012.1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers