We can't assume that MAAS2 always runs a proxy anymore

Bug #1609102 reported by Andreas Hasenack
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Landscape Server
Fix Released
High
Данило Шеган
MAAS
Opinion
Undecided
Unassigned

Bug Description

MAAS 2 introduced a change in the maas-proxy service, which is its own proxy server.

If an upstream proxy is specified in the MAAS2 settings tab, it will *disable* its own maas-proxy service.

Autopilot has this bit of code in _get_cloud_config() in canonical/landscape/model/juju/jobs.py:

        apt_http_proxy = "http://{}:8000".format(maas_server.get_address())

This will make deployments fail if an upstream proxy was configured in MAAS2, because maas-proxy won't be running anymore on the MAAS2 server and nothing will be listening on port 8000 there.

To reproduce the problem, just add something to the upstream proxy setting, save, wait about a minute while tailing /var/log/syslog and/or /var/log/maas/maas.log and you shall see the mass-proxy service being terminated.

Tags: maas-2.0 proxy
tags: removed: kanban
David Britton (dpb)
information type: Proprietary → Public
Revision history for this message
Andres Rodriguez (andreserl) wrote :

Hi Andreas,

MAAS never supported such configuration. MAAS, as in previous releases, works in two ways:

1. if no external proxy specified, MAAS would use maas-proxy. This means two things:
   1.1 MAAS would use maas-proxy to download images.
   1.2 MAAS would tell machines to use maas-proxy.

2. if external proxy specified, MAAS wouldn't use maas-proxy.
   2.1 MAAS would use external proxy to download images.
   2.2 MAAS tells machines to use external proxy.

That said, the only relevant change in MAAS 2.0 in comparison to previous versions of MAAS, is that MAAS does tracking to the services it runs and makes sure that a service is ON or OFF depending whether MAAS is making use of it or not. As such, since (2) is being used, MAAS will correctly stop maas-proxy.

Changed in maas:
status: New → Opinion
Changed in landscape:
status: New → Triaged
assignee: nobody → Данило Шеган (danilo)
Revision history for this message
Данило Шеган (danilo) wrote :

Andreas worked it around in Landscape with https://pastebin.canonical.com/162610/, I am looking into getting this fixed for MAAS 2.0.

Changed in landscape:
status: Triaged → In Progress
tags: added: proxy
Changed in landscape:
milestone: none → 16.08
status: In Progress → Fix Committed
Changed in landscape:
status: Fix Committed → 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.