No handlers could be found for logger "glanceclient.common.http"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
devstack |
New
|
Undecided
|
Unassigned |
Bug Description
With latest update, the installation breaks at glance uploading image.
=======
...
++ glance --os-auth-token 9a082ff7df76408
No handlers could be found for logger "glanceclient.
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/
++ get_field 2
++ read data
++ grep ' id '
++ glance --os-auth-token 9a082ff7df76408
No handlers could be found for logger "glanceclient.
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 9a082ff7df76408
No handlers could be found for logger "glanceclient.
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
=======
in the meanwhile, an error message "NameError: global name 'swift_client' is not defined" was catched in Glance API log.
======= ======= ======= =Glance API Log==== ======= ======= ======= ===== common. client] Constructed URL: http:// 0.0.0.0: 9191/images api.v1. images] Setting image 44b4d427- e0ae-4876- 9c26-84c7881019 90 to status 'saving' e0ae-4876- 9c26-84c7881019 90... common. client] Constructed URL: http:// 0.0.0.0: 9191/images/ 44b4d427- e0ae-4876- 9c26-84c7881019 90 api.v1. images] Uploading image data for image 44b4d427- e0ae-4876- 9c26-84c7881019 90 to swift store store.swift] Creating Swift connection with (auth_address=http:// 192.168. 156.156: 5000/v2. 0/, user=servic api.v1. images] Traceback (most recent call last): glance/ glance/ api/v1/ images. py", line 390, in _upload glance/ glance/ store/swift. py", line 369, in add url=self. full_auth_ address, user=self.user, key=self.key) glance/ glance/ store/swift. py", line 319, in _make_swift_ connection Connection( ======= ======= ======= ======= ======= ======= ======= ======= ======
...
2012-06-12 17:32:43 DEBUG [glance.registry] Adding image metadata...
2012-06-12 17:32:43 DEBUG [glance.
2012-06-12 17:32:43 DEBUG [glance.
2012-06-12 17:32:43 DEBUG [glance.registry] Updating image metadata for image 44b4d427-
2012-06-12 17:32:43 DEBUG [glance.
2012-06-12 17:32:43 DEBUG [glance.
2012-06-12 17:32:43 DEBUG [glance.
e:glance, snet=False, auth_version=2)
2012-06-12 17:32:43 ERROR [glance.
File "/opt/stack/
image_size)
File "/opt/stack/
auth_
File "/opt/stack/
return swift_client.
NameError: global name 'swift_client' is not defined
=======