swift backend: openstack image-download / glance image-save fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hi,
I'm the maintainer of OpenStack in Debian. Using a deployment with Swift as backend, with glance-api.conf configured this way:
[swift]
swift_store_
swift_store_
swift_store_
swift_store_
default_
# cat /etc/glance/
[ref1]
user = services:glance
key = PASSWORD
auth_version = 3
auth_address = https://<API_ADDRESS>
user_domain_
project_
I could upload an image to Glance. It's really there in Swift, I checked for that fact. Though saving the image fails: when I do "openstack image save", my swift-proxy recieves a HTTP/1.1 499 (ie: Client Closed Request), then glance-api returns a 502 (bad gatway). Unfortunately, using uwsgi and https for Glance wasn't very much verbose, so I downgraded Glance-api to use eventlet without ssl, and then I could see in the glance-api.log:
2020-12-14 10:43:47.367 16080 DEBUG swiftclient [req-f1a898a5-
2020-12-14 10:43:47.367 16080 DEBUG swiftclient [req-f1a898a5-
2020-12-14 10:43:47.368 16080 WARNING glance.location [req-f1a898a5-
2020-12-14 10:43:47.368 16080 ERROR glance.location [req-f1a898a5-
Then later on, I get some:
File "/usr/lib/
return resp(environ, start_response)
File "/usr/lib/
return resp(environ, start_response)
TypeError: 'ImageProxy' object is not callable
but that's a consequence of Glance-api not being able to properly download the image from Swift (so I didn't past all the stack-dump above).
My setup is with the packages from Debian (which I maintain), running Victoria over Buster. If you want to try, with Buster you can do:
apt-get install extrepo
extrepo enable openstack_victoria
apt-get update
apt-get install glance-api...
If you are brave enough, you can also try directly in Debian Unstable (that's the same packages which I upload there, and maintain as backports for Debian Stable).
Cheers,
Thomas Goirand
summary: |
- openstack image-download / glance image-save fails + swift backend: openstack image-download / glance image-save fails |
Setup environment using devstack + swift, not able to reproduce this issue with both openstackclient as well as python- glanceclient.
Need to replicate exact environment for testing.