yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #20818
[Bug 1343596] Re: utils not imported in store/swift.py
Currently Glance are using glance_store instead of owning backend
drivers by own tree. And the issue has already been fixed in
glance_store:
https://github.com/openstack/glance_store/blob/master/glance_store/_drivers/swift/store.py#L121
.
** Changed in: glance
Status: New => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1343596
Title:
utils not imported in store/swift.py
Status in OpenStack Image Registry and Delivery Service (Glance):
Invalid
Bug description:
glance/store/swift.py does not import utils from glance.common, yet
utils is used here:
https://github.com/openstack/glance/blob/master/glance/store/swift.py#L127
This causes the following traceback if swift returns an error (a 408
in my case):
014-07-17 16:45:19.949 22001 TRACE glance.api.v1.upload_utils Traceback (most recent call last):
2014-07-17 16:45:19.949 22001 TRACE glance.api.v1.upload_utils File "/opt/stack/glance/glance/api/v1/upload_utils.py", line 96, in upload_data_to_store
2014-07-17 16:45:19.949 22001 TRACE glance.api.v1.upload_utils store)
2014-07-17 16:45:19.949 22001 TRACE glance.api.v1.upload_utils File "/opt/stack/glance/glance/store/__init__.py", line 338, in store_add_to_backend
2014-07-17 16:45:19.949 22001 TRACE glance.api.v1.upload_utils (location, size, checksum, metadata) = store.add(image_id, data, size)
2014-07-17 16:45:19.949 22001 TRACE glance.api.v1.upload_utils File "/opt/stack/glance/glance/store/swift.py", line 563, in add
2014-07-17 16:45:19.949 22001 TRACE glance.api.v1.upload_utils "Got error from Swift: %s") % utils.exception_to_str(e))
2014-07-17 16:45:19.949 22001 TRACE glance.api.v1.upload_utils NameError: global name 'utils' is not defined
2014-07-17 16:45:19.949 22001 TRACE glance.api.v1.upload_utils
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1343596/+subscriptions
References