livepatch charm should default to using juju model-config http_proxy and https_proxy if proxy vars not set

Bug #1769762 reported by Drew Freiberger
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Livepatch Charm
Fix Released
Medium
Barry Price
Snap Layer
New
Undecided
Unassigned

Bug Description

As juju now has ability to manage model-wide http_proxy and https_proxy settings, Canonical-livepatch charm should defer to model configs before reverting to direct connectivity if the proxy URLs are not set. Requiring per-charm proxy configuration is prone to errors and is non-intuitive. Having the local charm configs for overrides for odd setups is good.

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

Charm settings for reference are livepatch_proxy and snap_proxy. model configs land straight into all users' shell environment variables.

Debug log shows, potentially:

2018-05-06 17:28:14 DEBUG config-changed 2018/05/06 17:28:14 error executing enable: Couldn't send req: Post https://livepatch.canonical.com/api/machine-tokens: dial tcp 162.213.33.49:443: connect: network is unreachable. Server communication failed.

Revision history for this message
Barry Price (barryprice) wrote :

Thanks, that's a good idea. I'll see what I can get done this week.

Changed in canonical-livepatch-charm:
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Barry Price (barryprice)
Barry Price (barryprice)
Changed in canonical-livepatch-charm:
status: Triaged → In Progress
Barry Price (barryprice)
Changed in canonical-livepatch-charm:
status: In Progress → Fix Released
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.