exception.NotFound is parsed wrong at the API level

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

Bug Description

When user updates an image with location but introduced a typo, it's expected to run into location not found exception. However, because we don't distinguish the image not found and location not found, so Glance will say the image is not found based on current design.

Failed to find image 41a997ac-e647-4b5f-b158-8e6e13875f88 to update

See https://github.com/openstack/glance/blob/master/glance/api/v2/images.py#L124 and https://github.com/openstack/glance/blob/master/glance/store/filesystem.py#L156 Though I think the issue is also existed in other backends.

Feilong Wang (flwang)
Changed in glance:
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
Feilong Wang (flwang) wrote :

The root cause of this issue is that we don't support the corresponding NotFound exception for different resource type, such as image, member, location, etc.

Changed in glance:
assignee: nobody → Fei Long Wang (flwang)
milestone: none → icehouse-3
Feilong Wang (flwang)
Changed in glance:
status: Confirmed → In Progress
Feilong Wang (flwang)
description: updated
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/69201

Feilong Wang (flwang)
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-3 → 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.