[2.1 ipv6] MAAS should refuse to deploy a host with bad address-family config
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.
Related branches
- Andres Rodriguez (community): Needs Information
- Gavin Panella (community): Approve
-
Diff: 148 lines (+94/-2)2 files modifiedsrc/maasserver/models/node.py (+23/-0)
src/maasserver/models/tests/test_node.py (+71/-2)
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 |
Changed in maas: | |
status: | Triaged → Confirmed |
Changed in maas: | |
status: | Confirmed → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |