charm does not read juju-http-proxy config from model

Bug #1825267 reported by Xav Paice
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
landscape-client-charm
New
Undecided
Unassigned

Bug Description

When I install with an environment where the the model config does not include http(s)-proxy, but does include juju-http(s)-proxy settings, the charm should read those settings and use the appropriate proxy. However, when running any install/upgrade, the hooks fail on:

2019-04-18 00:51:39 INFO juju-log Failed executing 'add-apt-repository --yes ppa:landscape/17.03'. Will retry in 10 seconds
2019-04-18 01:00:34 DEBUG install Cannot add PPA: 'ppa:~landscape/ubuntu/17.03'.
2019-04-18 01:00:34 DEBUG install ERROR: '~landscape' user or team does not exist.

Related branches

Xav Paice (xavpaice)
tags: added: canonical-is-bootstack
tags: added: canonical-bootstack
removed: canonical-is-bootstack
Revision history for this message
Xav Paice (xavpaice) wrote :

Seems this is more than just a matter of syncing charmhelpers, I probably am not the most appropriate person to dive in and fix.

Revision history for this message
Xav Paice (xavpaice) wrote :

For Xenial, noting https://github.com/juju/charm-helpers/issues/304 seems to have allowed this to work.

I still think we need to either update the docs on the charm, or find a better way to support this shorter url type on Xenial.

Revision history for this message
Drew Freiberger (afreiberger) wrote :

This line in charmhelpers resolves the ppa issue. The problem is that some keys are served by http rather than https, and only https proxy vars were being used for add-apt-repository calls in past charmhelpers.

https://github.com/juju/charm-helpers/blob/master/charmhelpers/fetch/ubuntu.py#L649

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.