yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #17391
[Bug 1343596] [NEW] utils not imported in store/swift.py
Public bug reported:
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
** 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/1343596
Title:
utils not imported in store/swift.py
Status in OpenStack Image Registry and Delivery Service (Glance):
New
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
Follow ups
References