web-download doesn't work in proxied env
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
New
|
Undecided
|
Unassigned | ||
OpenStack Glance Charm |
Incomplete
|
Wishlist
|
Unassigned |
Bug Description
I'm trying to import an image via the web-download method[0][1].
When kicking off the import process I'm getting this in the glance-api.log
2021-11-17 12:50:20.586 24884 ERROR glance.
2021-11-17 12:50:20.586 24884 ERROR glance.
2021-11-17 12:50:20.586 24884 ERROR glance.
2021-11-17 12:50:20.586 24884 ERROR glance.
2021-11-17 12:50:20.586 24884 ERROR glance.
2021-11-17 12:50:20.586 24884 ERROR glance.
2021-11-17 12:50:20.586 24884 ERROR glance.
2021-11-17 12:50:20.586 24884 ERROR glance.
2021-11-17 12:50:20.586 24884 ERROR glance.
2021-11-17 12:50:20.586 24884 ERROR glance.
2021-11-17 12:50:20.586 24884 ERROR glance.
2021-11-17 12:50:20.586 24884 ERROR glance.
2021-11-17 12:50:20.586 24884 ERROR glance.
2021-11-17 12:50:20.586 24884 ERROR glance.
2021-11-17 12:50:20.586 24884 ERROR glance.
2021-11-17 12:50:20.586 24884 ERROR glance.
2021-11-17 12:50:20.586 24884 ERROR glance.
2021-11-17 12:50:20.586 24884 ERROR glance.
2021-11-17 12:50:20.586 24884 ERROR glance.
2021-11-17 12:50:20.586 24884 ERROR glance.
2021-11-17 12:50:20.586 24884 ERROR glance.
2021-11-17 12:50:20.586 24884 ERROR glance.
2021-11-17 12:50:20.586 24884 ERROR glance.
2021-11-17 12:50:20.586 24884 ERROR glance.
2021-11-17 12:50:20.586 24884 ERROR glance.
2021-11-17 12:50:20.586 24884 ERROR glance.
2021-11-17 12:50:20.586 24884 ERROR glance.
2021-11-17 12:50:20.586 24884 ERROR glance.
2021-11-17 12:50:20.586 24884 ERROR glance.
The model is situated behind a http proxy.
I have set this model-config:
juju model-config | grep http-proxy
apt-http-proxy controller http://
http-proxy default ""
juju-http-proxy controller http://
snap-http-proxy controller http://
It feels like the charm doesn't set up the glance-api process with the required http proxy config.
[0] https:/
[1] https:/
I dug around on this problem and I can't see an option that allows glance to use a proxy *just* for web-download - i.e. we'd have to set it for the whole glance API process with the associated nasty-ness that introduces when glance needs to talk with something else over HTTP such as keystone.
Options exist for access to a 'glance. store.http. store' but not for the importer.