juju apt proxy vs MaaS

Bug #1490480 reported by Stuart Bishop
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Ian Booth
2.1
Fix Released
High
Ian Booth

Bug Description

Machines provisioned by MaaS end up with an /etc/apt/apt.conf.d/90curtin-aptproxy file, pointing apt to the MaaS apt proxy.

Juju creates /etc/apt/apt.conf.d/42-juju-proxy-settings, which works just fine unless you have a MaaS provisioned host, because the MaaS proxy config is loaded later and overrides the juju proxy config.

Revision history for this message
Stuart Bishop (stub) wrote :

The simplest fix would be for juju to switch to using /etc/apt/apt.conf.d/95-juju-proxy-settings so that the settings explicitly set my the user using juju set-env or environments.yaml override the settings chosen by the MaaS provisioner.

Curtis Hovey (sinzui)
tags: added: proxy
tags: added: maas-provider
Changed in juju-core:
status: New → Triaged
importance: Undecided → High
milestone: none → 1.26.0
Changed in juju-core:
milestone: 1.26.0 → 2.0-beta5
Changed in juju-core:
milestone: 2.0-beta5 → 2.0-beta4
Changed in juju-core:
milestone: 2.0-beta4 → 2.1.0
affects: juju-core → juju
Changed in juju:
milestone: 2.1.0 → none
milestone: none → 2.1.0
Revision history for this message
Anastasia (anastasia-macmood) wrote :

Removing 2.1 milestone as we will not be addressing this issue in 2.1.

Changed in juju:
milestone: 2.1.0 → none
Revision history for this message
Felipe Reyes (freyes) wrote :

Is the approach suggested by @stub in comment #1 acceptable?

Changed in juju:
assignee: nobody → Ian Booth (wallyworld)
milestone: none → 2.1.0
Ian Booth (wallyworld)
Changed in juju:
milestone: 2.1.0 → 2.2.0-alpha1
Revision history for this message
Anastasia (anastasia-macmood) wrote :
Revision history for this message
Ian Booth (wallyworld) wrote :
tags: added: eda
Revision history for this message
Felipe Reyes (freyes) wrote :

:) Thanks, Ian

Ian Booth (wallyworld)
Changed in juju:
status: Triaged → Fix Committed
Revision history for this message
Christian Reis (kiko) wrote :

Can someone explain why this needs to be fixed in two places, both utils and juju itself?

Revision history for this message
Ian Booth (wallyworld) wrote :

juju/utils provides common packaging related functionality, including defining the file path name used for the apt proxy conf file. The juju update is to pull in the new juju/utils dependency revision.

Curtis Hovey (sinzui)
Changed in juju:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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