nginx config does not handle IPv6 addresses

Bug #1777019 reported by Lee Trager
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Critical
Blake Rouse

Bug Description

nginx is not being configured properly for IPv6 addresses. It is missing the [] around the IPv6 address before the port. This is causing nginx to fail to start which is needed to start the ephemeral environment.

I only have 1 region controller in this setup but it has access to both IPv4 and IPv6. nginix should not consider this two different servers.

Currently:
upstream maas-regions {
    server 10.0.0.2:5240;
    server fc00::216:3eff:fee4:2cd0:5240;
}

What it should be
upstream maas-regions {
    server 10.0.0.2:5240;
    server [fc00::216:3eff:fee4:2cd0]:5240;
}

Related branches

Lee Trager (ltrager)
description: updated
Changed in maas:
milestone: none → 2.5.0
Changed in maas:
assignee: nobody → Blake Rouse (blake-rouse)
Changed in maas:
status: Confirmed → In Progress
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
milestone: 2.5.0 → 2.5.0alpha1
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.