[2.1 ipv6] MAAS should refuse to deploy a host with bad address-family config

Bug #1630361 reported by LaMont Jones
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Undecided
Unassigned

Bug Description

If the user attempts to deploy a machine which has no common address families with the host/ip in maas_url, we should refuse to deploy it, instead of happy launching it into a brick wall of failure.

The case where I hit this:
- maas_url had an IPv4 IP in it
- the IPv4 subnet had a dynamic range
- the IPv6 subnet had NO dynamic range
- (the machine had previously been commissioned when IPv6 had the dynamic range)
- The machine was deployed with its network interface configured to use the IPv6 subnet.

Deployment ran just fine, the machine rebooted, did the final stages of cloud-init, and failed horribly, because it did not have an IPv4 address as needed to talk to the (IPv4) maas_url.

There are probably other places in the code that don't take the mismatch into consideration. Refusing to deploy when there are no common address families would cover all of those cases, whatever they may be.

Tags: maas-ipv6

Related branches

LaMont Jones (lamont)
tags: added: maas-ipv6
Changed in maas:
milestone: none → 2.1.0
Changed in maas:
status: New → Triaged
Changed in maas:
milestone: 2.1.0 → 2.1.1
Changed in maas:
milestone: 2.1.1 → 2.1.2
Changed in maas:
milestone: 2.1.2 → 2.1.3
Gavin Panella (allenap)
Changed in maas:
status: Triaged → Confirmed
Changed in maas:
status: Confirmed → 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.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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