juju deploy bionic/telegraf fails with error Cannot add PPA

Bug #1798545 reported by Teo Wood
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Telegraf Charm
Expired
Medium
Unassigned

Bug Description

DEBUG install Cannot add PPA: 'ppa:~telegraf-devs/ubuntu/ppa'.
DEBUG install ERROR: '~telegraf-devs' user or team does not exist.
DEBUG worker.uniter.jujuc server.go:181 running hook tool "juju-log"
INFO juju-log Failed executing 'add-apt-repository --yes ppa:telegraf-devs/ppa'. Will retry in 10 seconds
DEBUG juju.worker.uniter.remotestate watcher.go:510 update status timer triggered

Revision history for this message
Teo Wood (t-kalpakidis) wrote :

Seems to be a proxy issue, exporting http_proxy/https_proxy env and executing add-apt-repository with -E seems to add the repo.
How can I make juju do the same?

Revision history for this message
Junien F (axino) wrote :

There are "apt-http-proxy" and "apt-https-proxy" in your model config which _should_ work. See https://docs.jujucharms.com/2.4/en/models-config

Changed in telegraf-charm:
status: New → Invalid
Revision history for this message
Junien F (axino) wrote :

(or maybe "http-proxy" and "https-proxy", although this will impact other things).

Let us know if that works. The charm should be able to work with only apt-related traffic behind a proxy.

Changed in telegraf-charm:
status: Invalid → Incomplete
importance: Undecided → Medium
Revision history for this message
Teo Wood (t-kalpakidis) wrote :

yep, juju model-config http/https-proxy did the trick
thanks

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Telegraf Charm because there has been no activity for 60 days.]

Changed in telegraf-charm:
status: Incomplete → Expired
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.