glance-simplestreams-sync does not use new proxy settings
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Glance-Simplestreams-Sync Charm |
Fix Released
|
High
|
Dmitrii Shcherbakov | ||
simplestreams |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
gss currently uses a shell wrapper to source Juju proxy settings from a certain file.
cat /usr/share/
#!/bin/bash
if [ -f /etc/juju-
source /etc/juju-
elif [ -f /home/ubuntu/
source /home/ubuntu/
fi
exec /usr/share/
However, Juju only saves those files for legacy proxy settings:
Provisioning time
https:/
Proxy updater on model proxy settings changes
https:/
https:/
https:/
Therefore, the charm needs to be reworked to support juju-http-proxy, juju-https-proxy, juju-no-proxy.
Note: proxy settings must only be used for external image downloads, thus only do_sync needs to use the proxy settings.
In other words if /etc/juju-
For connecting to Keystone the expectation is that it will be reachable via L3, not via proxy (connectivity to via proxy to Keystone API from a charm unit is not something that I have seen so far as we always have direct connectivity to Keystone endpoints).
As no_proxy usage is undesirable at the model level, the fix needs to be targeted at using an http proxy only for image downloads.
Changed in charm-glance-simplestreams-sync: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in charm-glance-simplestreams-sync: | |
milestone: | none → 20.02 |
Changed in charm-glance-simplestreams-sync: | |
status: | Fix Committed → Fix Released |
Changed in charm-glance-simplestreams-sync: | |
status: | In Progress → Confirmed |
Changed in charm-glance-simplestreams-sync: | |
assignee: | nobody → Dmitrii Shcherbakov (dmitriis) |
Changed in charm-glance-simplestreams-sync: | |
status: | Fix Committed → Fix Released |
milestone: | none → 21.04 |
Subscribed field-medium as glance- simplestreams- sync usage is mentioned in the official guide for using octavia- diskimage- retrofit:
https:/ /docs.openstack .org/project- deploy- guide/charm- deployment- guide/latest/ app-octavia. html#amphora- image