No handlers could be found for logger "glanceclient.common.http"

Bug #1012029 reported by Edward
This bug report is a duplicate of:  Bug #1002791: glance should use python-swiftclient. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
devstack
New
Undecided
Unassigned

Bug Description

With latest update, the installation breaks at glance uploading image.

==================Devstack Log======================
...
++ glance --os-auth-token 9a082ff7df76408292f4223706f3bdb7 --os-image-url http://192.168.156.156:9292 image-create --name cirros-0.3.0-x86_64-uec-kernel --public --container-format aki --disk-format aki
No handlers could be found for logger "glanceclient.common.http"
Unable to communicate with image service: 400 Bad Request

The server could not comply with the request since it is either malformed or otherwise incorrect.

 Error uploading image: (NameError): global name 'swift_client' is not defined . (HTTP 400)
+ KERNEL_ID=
+ '[' -n /opt/stack/devstack/files/images/cirros-0.3.0-x86_64-uec/cirros-0.3.0-x86_64-initrd ']'
++ get_field 2
++ read data
++ grep ' id '
++ glance --os-auth-token 9a082ff7df76408292f4223706f3bdb7 --os-image-url http://192.168.156.156:9292 image-create --name cirros-0.3.0-x86_64-uec-ramdisk --public --container-format ari --disk-format ari
No handlers could be found for logger "glanceclient.common.http"
Unable to communicate with image service: 400 Bad Request

The server could not comply with the request since it is either malformed or otherwise incorrect.

 Error uploading image: (NameError): global name 'swift_client' is not defined . (HTTP 400)
+ RAMDISK_ID=
+ glance --os-auth-token 9a082ff7df76408292f4223706f3bdb7 --os-image-url http://192.168.156.156:9292 image-create --name cirros-0.3.0-x86_64-uec --public --container-format ami --disk-format ami
No handlers could be found for logger "glanceclient.common.http"
Unable to communicate with image service: 400 Bad Request

The server could not comply with the request since it is either malformed or otherwise incorrect.

 Error uploading image: (NameError): global name 'swift_client' is not defined . (HTTP 400)
++ failed
++ local r=1
++ set +o xtrace
=====================================================

Revision history for this message
Edward (zhang-hare) wrote :

in the meanwhile, an error message "NameError: global name 'swift_client' is not defined" was catched in Glance API log.

======================Glance API Log==============================
...
2012-06-12 17:32:43 DEBUG [glance.registry] Adding image metadata...
2012-06-12 17:32:43 DEBUG [glance.common.client] Constructed URL: http://0.0.0.0:9191/images
2012-06-12 17:32:43 DEBUG [glance.api.v1.images] Setting image 44b4d427-e0ae-4876-9c26-84c788101990 to status 'saving'
2012-06-12 17:32:43 DEBUG [glance.registry] Updating image metadata for image 44b4d427-e0ae-4876-9c26-84c788101990...
2012-06-12 17:32:43 DEBUG [glance.common.client] Constructed URL: http://0.0.0.0:9191/images/44b4d427-e0ae-4876-9c26-84c788101990
2012-06-12 17:32:43 DEBUG [glance.api.v1.images] Uploading image data for image 44b4d427-e0ae-4876-9c26-84c788101990 to swift store
2012-06-12 17:32:43 DEBUG [glance.store.swift] Creating Swift connection with (auth_address=http://192.168.156.156:5000/v2.0/, user=servic
e:glance, snet=False, auth_version=2)
2012-06-12 17:32:43 ERROR [glance.api.v1.images] Traceback (most recent call last):
  File "/opt/stack/glance/glance/api/v1/images.py", line 390, in _upload
    image_size)
  File "/opt/stack/glance/glance/store/swift.py", line 369, in add
    auth_url=self.full_auth_address, user=self.user, key=self.key)
  File "/opt/stack/glance/glance/store/swift.py", line 319, in _make_swift_connection
    return swift_client.Connection(
NameError: global name 'swift_client' is not defined
=====================================================================

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.