[2.5] MAAS doesn't set yum proxy for CentOS

Bug #1800524 reported by Andres Rodriguez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
Lee Trager

Bug Description

During installation, MAAS doesn't set the maas_proxy to the centos configuration.

MAAS should support setting this, even thought cloud-init doesn't support it today.

A late_command could automatically be added by adding something like this:

 "echo proxy=<proxy> >> /etc/yum.conf"

Another thing that could be done:

    if [ ! -z "${http_proxy-}" ]; then
        if [ "$OS_NAME" = "centos" ]; then
            debug 1 "configuring proxy ${http_proxy}"
            inside "$name" sh -c "echo proxy=$http_proxy >> /etc/yum.conf"
            inside "$name" sed -i s/enabled=1/enabled=0/ \
                /etc/yum/pluginconf.d/fastestmirror.conf
        else
            debug 1 "do not know how to configure proxy on $OS_NAME"
        fi
    fi

Tags: track

Related branches

Changed in maas:
milestone: none → 2.5.0rc1
importance: Undecided → High
status: New → Triaged
assignee: nobody → Lee Trager (ltrager)
description: updated
tags: added: track
Lee Trager (ltrager)
Changed in maas:
status: Triaged → In Progress
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
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.