kubernetes-[master,worker] snap install fail due to missing proxy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Juju Charms Collection |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
despite setting model proxy, and even proxy specific variables for kubernated-workers as specified in https:/
the deploy of a canonical-
kubernates master and worker fail due to to snap not to use the proxy.
kubernetes-
kubernetes-
kubernetes-worker/1 error idle 7 192.168.0.8 hook failed: "install"
kubernetes-worker/2 error idle 8 192.168.0.21 hook failed: "install"
workaround:
juju ssh <unit>
copy proxy setting in /etc/environment
sudo systemctl restart snapd.service
exit
and juju resolved <units>
recent versions of the charms should support the proxy settings on the model if they are declared and pass them to the snapd systemd environment.
If you're using an earlier set of the charms, there is a snap_proxy configuration option that would need to be set in order to get snapd to respect the proxy. As snapd runs in a systemd service your environment profile does seem to do the trick, but was not the original solution to the issue.
This change landed in layer-snap about a month ago and is present in the latest two revisions of the kubernetes master and worker charms.