Ignored ImportError in swift store kills devstack
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
New
|
Undecided
|
Chmouel Boudjnah | ||
OpenStack Core Infrastructure |
New
|
Undecided
|
Unassigned | ||
OpenStack Object Storage (swift) |
Invalid
|
Undecided
|
Unassigned | ||
devstack |
Fix Committed
|
Undecided
|
Chmouel Boudjnah |
Bug Description
The ignored ImportError here:
https:/
causes that module to become useless should the import fail for any *other* reason besides swift not being installed.
For example, with current master devstack, adding "swift" to the ENABLED_SERVICES, image uploads fail with the following:
2012-06-11 15:51:42 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
This in turn causes the devstack run to fail out, leaving a half-installed devstack.
Changed in devstack: | |
status: | New → Fix Committed |
Changed in glance: | |
assignee: | nobody → Chmouel Boudjnah (chmouel) |
Changed in swift: | |
status: | New → Invalid |
Changed in devstack: | |
assignee: | nobody → Chmouel Boudjnah (chmouel) |
Install swiftclient. This isn't a bug in Glance. It's by design. If you don't have httplib2 installed, half the clients in OpenStack won't work. Is that the problem with the client or the program installing the client (i.e. devstack)?