Cannot add telegraf-devs/ppa repository behind proxy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Telegraf Charm |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
The following errors were witnessed when installing telegraf charm behind an http proxy:
gpg: keyring `/tmp/tmphx3xn4
gpg: keyring `/tmp/tmphx3xn4
gpg: requesting key C94406F5 from hkp server keyserver.
?: [fd 4]: read error: Connection reset by peer
gpgkeys: HTTP fetch error 7: couldn't connect: eof
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
gpg: keyserver communications error: keyserver unreachable
gpg: keyserver communications error: public key not found
gpg: keyserver receive failed: public key not found
Failed to add key.
It was noticed that https_proxy is properly passed to the call to apt-add-repository, but this PPA seems to also require http_proxy to be passed.
I've submitted an upstream bug to charm-helpers and opened a PR that resolves this issue. This bug is to track integrating latest charmhelpers once this upstream PR or issue is closed.
Issue is described in greater detail here:
https:/
https:/
Workaround is to apply the PR to venv.
/var/lib/
Changed in charm-telegraf: | |
status: | New → Triaged |
importance: | Undecided → Medium |
This issue was pending long time. Is it still valid? /charmhub. io/topics/ canonical- observability- stack)
Furthermore, soon or later, the monitoring system will migrate to COS. Telegraf will be replaced by grafana-agent. Therefore, we won't follow up this issue. But welcome to reopen it when anyone encounter this issue again.
(https:/