Comment 6 for bug 1694743

Revision history for this message
Patrizio Bassi (patrizio-bassi) wrote : Re: [Bug 1694743] Re: kubernetes-[master, worker] snap install fail due to missing proxy

Charles,

yes, it works, it's a good and clean workaround, waiting for "final" fix
however (i.e. etcd charm doesn't need it either)

but at the moment i'm deploying :)

Thank you
Patrizio

2017-05-31 23:27 GMT+02:00 Charles Butler <email address hidden>:

> Try setting the snap_proxy configuration value on both the worker and
> the masters and this should unblock you.
>
> As indicated previously the fix to read the proxy configuration from
> model config went out with the bundles as of revision 31 forward (for
> kubernetes core) and revision 36 forward (canonical kubernetes) bundles.
>
> you can set these config options like so:
>
> juju config kubernetes-master snap_proxy=http://my.proxy.ip:3600
> juju config kubernetes-worker snap_proxy=http://my.proxy.ip:3600
>
> regardless of model config, these values will populate in the snapd
> proxy configuration and should get you moving.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1694743
>
> Title:
> kubernetes-[master,worker] snap install fail due to missing proxy
>
> Status in Juju Charms Collection:
> New
>
> Bug description:
> despite setting model proxy, and even proxy specific variables for
> kubernated-workers as specified in https://jujucharms.com/canonical-
> kubernetes/ ,
>
> the deploy of a canonical-kubernetes bundle in a net with a proxy
> server fails to reach internet.
>
> kubernates master and worker fail due to to snap not to use the proxy.
>
> kubernetes-master/0* error idle 5 192.168.0.11
> hook failed: "install"
> kubernetes-worker/0* error idle 6 192.168.0.17
> hook failed: "install"
> 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>
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/charms/+bug/1694743/+subscriptions
>

--

Patrizio Bassi
www.patriziobassi.it
http://piazzadelpopolo.patriziobassi.it