Juju k8s controller is not getting configuration parameters correctly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Ian Booth |
Bug Description
Hello,
We have faced a bug in bootstrapping a juju controller into k8s (microk8s), where the values in the configuration file specified when bootstrapping the juju controller are ignored.
Steps to reproduce it
=======
1. Create a controller.yaml file with the configuration parameters.
no-proxy: localhost,
apt-http-proxy: http://
apt-https-proxy: http://
apt-ftp-proxy: http://
juju-http-proxy: http://
juju-https-proxy: http://
juju-ftp-proxy: http://
2. Bootstrap k8s controller
juju bootstrap microk8s osm-on-k8s --config=
Full log: https:/
Outstanding output from that log:
apt-ftp-proxy: http://
apt-http-proxy: http://
apt-https-proxy: http://
apt-no-proxy: ""
ftp-proxy: ""
http-proxy: ""
https-proxy: ""
juju-ftp-proxy: http://
juju-http-proxy: http://
juju-https-proxy: http://
juju-no-proxy: 127.0.0.
no-proxy: localhost,
proxy-ssh: false
snap-http-proxy: ""
snap-https-proxy: ""
snap-
snap-store-proxy: ""
3. Add model
juju add-model osm
I tried with `juju add-model osm --config controller.yaml`, but I got the same result.
4. Show controller and model configuration:
juju controller-config (https:/
juju model-config (https:/
5. Enter to the controller pod:
kubectl -n controller-
root@controller
root@controller
root@controller
<HTML><HEAD><meta http-equiv=
<TITLE>301 Moved</
<H1>301 Moved</H1>
The document has moved
<A HREF="https:/
</BODY></HTML>
If it was using the https_proxy I specified, I should be getting this output:
davigar15@
davigar15@
curl: (56) Received HTTP code 403 from proxy after CONNECT
Changed in juju: | |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → 2.7-beta1 |
Changed in juju: | |
assignee: | nobody → Harry Pidcock (hpidcock) |
Changed in juju: | |
status: | Fix Committed → Fix Released |
In the logs you'll see I was using 2.7-beta1, but I'm getting the same result with juju 2.6/stable