yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #07871
[Bug 1265448] [NEW] exception.NotFound is parsed wrong at the API level
Public bug reported:
When user want to update an image with location with 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.
** Affects: glance
Importance: Low
Status: Confirmed
** Changed in: glance
Status: New => Confirmed
** Changed in: glance
Importance: Undecided => Low
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1265448
Title:
exception.NotFound is parsed wrong at the API level
Status in OpenStack Image Registry and Delivery Service (Glance):
Confirmed
Bug description:
When user want to update an image with location with 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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1265448/+subscriptions
Follow ups
References