Does not install behind a proxy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
elasticsearch (Juju Charms Collection) |
New
|
Undecided
|
Unassigned |
Bug Description
I have a juju2 model whose applications have to use a proxy to reach the internet.
Most charms work ok, but elasticsearch seems to ignore the juju proxy settings and doesn't work:
2017-02-17 12:07:13 INFO juju-log Installing ansible with options: ['--option=
2017-02-17 12:07:13 INFO install Reading package lists...
2017-02-17 12:07:13 INFO install Building dependency tree...
2017-02-17 12:07:13 INFO install Reading state information...
2017-02-17 12:07:13 INFO install ansible is already the newest version.
2017-02-17 12:07:13 INFO install The following packages were automatically installed and are no longer required:
2017-02-17 12:07:13 INFO install libfreetype6 os-prober
2017-02-17 12:07:13 INFO install Use 'apt-get autoremove' to remove them.
2017-02-17 12:07:13 INFO install 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2017-02-17 12:07:13 INFO juju-log /usr/bin/rsync -r --delete --executability ansible_
2017-02-17 12:07:14 INFO install
2017-02-17 12:07:14 INFO install PLAY [localhost] *******
2017-02-17 12:07:14 INFO install
2017-02-17 12:07:14 INFO install GATHERING FACTS *******
2017-02-17 12:07:15 INFO install ok: [localhost]
2017-02-17 12:07:15 INFO install
2017-02-17 12:07:15 INFO install TASK: [Add apt key.] *******
2017-02-17 12:07:46 INFO install failed: [localhost] => {"failed": true, "item": "", "traceback": "Traceback (most recent call last):\n File \"/.ansible/
2017-02-17 12:07:46 INFO install msg: error getting key id from url
2017-02-17 12:07:46 INFO install
2017-02-17 12:07:46 INFO install FATAL: all hosts have already failed -- aborting
2017-02-17 12:07:46 INFO install
2017-02-17 12:07:46 INFO install PLAY RECAP *******
2017-02-17 12:07:46 INFO install localhost : ok=1 changed=0 unreachable=0 failed=1
2017-02-17 12:07:46 INFO install
2017-02-17 12:07:46 INFO install Traceback (most recent call last):
2017-02-17 12:07:46 INFO install File "/var/lib/
2017-02-17 12:07:46 INFO install hooks.execute(
2017-02-17 12:07:46 INFO install File "/var/lib/
2017-02-17 12:07:46 INFO install self.playbook_path, tags=[hook_name])
2017-02-17 12:07:46 INFO install File "/var/lib/
2017-02-17 12:07:46 INFO install subprocess.
2017-02-17 12:07:46 INFO install File "/usr/lib/
2017-02-17 12:07:46 INFO install raise CalledProcessEr
2017-02-17 12:07:46 INFO install subprocess.
2017-02-17 12:07:46 ERROR juju.worker.
And indeed:
# netstat -anp 2>/dev/null|grep SYN
tcp 0 1 10.245.
$ juju model-config|grep -i proxy
apt-ftp-proxy default ""
apt-http-proxy default ""
apt-https-proxy default ""
ftp-proxy default ""
http-proxy controller http://
https-proxy controller http://
no-proxy controller localhost,
proxy-ssh default false
on the elasticsearch/0 unit:
# cat /home/ubuntu/
export http_proxy=http://
export HTTP_PROXY=http://
export https_proxy=http://
export HTTPS_PROXY=http://
export no_proxy=
export NO_PROXY=
I even copied that to /etc/environment, but didn't help.
apt has the right proxy settings over there:
root@juju-
./apt.conf.
./apt.conf.
Maybe the charm needs to grow a specific proxy option.