Dashboard error caused by cinderclient TypeError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-cinderclient |
New
|
Undecided
|
Unassigned | ||
openstack-dashboard (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Dashboard error caused by cinderclient TypeError
Version: grizzly rc3
When I login into the Openstack Dashboard, The URL http://
TypeError at /admin/
hasattr(): attribute name must be stringRequest Method: GET
Request URL: http://
Django Version: 1.4.5
Exception Type: TypeError
Exception Value: hasattr(): attribute name must be string
Exception Location: /usr/lib/
Python Executable: /usr/bin/python
Python Version: 2.7.3
Python Path: ['/usr/
'/usr/
'/usr/
'/usr/
'/usr/
'/usr/
'/usr/
'/usr/
'/usr/
'/usr/
I check the apache error log
tail /var/log/
[Thu Mar 28 13:04:07 2013] [error] quotasets.
[Thu Mar 28 13:04:07 2013] [error] File "/usr/share/
[Thu Mar 28 13:04:07 2013] [error] c_client = cinderclient(
[Thu Mar 28 13:04:07 2013] [error] File "/usr/share/
[Thu Mar 28 13:04:07 2013] [error] http_log_
[Thu Mar 28 13:04:07 2013] [error] File "/usr/lib/
[Thu Mar 28 13:04:07 2013] [error] cacert=cacert)
[Thu Mar 28 13:04:07 2013] [error] File "/usr/lib/
[Thu Mar 28 13:04:07 2013] [error] if hasattr(requests, logging):
[Thu Mar 28 13:04:07 2013] [error] TypeError: hasattr(): attribute name must be string
in "/usr/lib/
if hasattr(requests, logging):
change it to
if hasattr(requests, "logging"):
and restart all the cinder services
and It works!
information type: | Private Security → Public |