yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #34856
[Bug 1469817] [NEW] Glance doesn't handle exceptions from glance_store
Public bug reported:
Server API expects to catch exception declared at
glance/common/exception.py, but actually risen exceptions have the same
names but are declared at different module, glance_store/exceptions.py
and thus are never caught.
For example, If exception is raised here:
https://github.com/openstack/glance_store/blob/stable/kilo/glance_store/_drivers/rbd.py#L316
, it will never be caught here
https://github.com/openstack/glance/blob/stable/kilo/glance/api/v1/images.py#L1107
, because first one is instance of
https://github.com/openstack/glance_store/blob/stable/kilo/glance_store/exceptions.py#L198
, but Glance waits for
https://github.com/openstack/glance/blob/stable/kilo/glance/common/exception.py#L293
There are many cases of that issue. The investigation continues.
** Affects: glance
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1469817
Title:
Glance doesn't handle exceptions from glance_store
Status in OpenStack Image Registry and Delivery Service (Glance):
New
Bug description:
Server API expects to catch exception declared at
glance/common/exception.py, but actually risen exceptions have the
same names but are declared at different module,
glance_store/exceptions.py and thus are never caught.
For example, If exception is raised here:
https://github.com/openstack/glance_store/blob/stable/kilo/glance_store/_drivers/rbd.py#L316
, it will never be caught here
https://github.com/openstack/glance/blob/stable/kilo/glance/api/v1/images.py#L1107
, because first one is instance of
https://github.com/openstack/glance_store/blob/stable/kilo/glance_store/exceptions.py#L198
, but Glance waits for
https://github.com/openstack/glance/blob/stable/kilo/glance/common/exception.py#L293
There are many cases of that issue. The investigation continues.
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1469817/+subscriptions
Follow ups
References