dhcp snippet create fails when dhcp subnet is relayed regression
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Björn Tillenius |
Bug Description
Behavior is similar to LP:1809939
If a DHCP subnet is relayed maas validation does not allow a node DHCP snippet to be created
"Unable to validate DHCP config, no available rack controller connected."
Contrary to original bug report, creating a DHCP snippet for the subnet works:
root@mtlctrl1pi
Success.
Machine-readable output follows:
{
"name": "cli_snippet_test",
"description": "",
"enabled": true,
"node": null,
"subnet": {
"name": "R402_A_V4",
"vlan": {
"vid": 0,
"mtu": 1500,
},
"id": 5067,
"name": "untagged",
},
"cidr": "141.98.
],
"managed": true,
"id": 55,
"space": "undefined",
},
"value": "authoritative;",
"global_
"id": 1,
"history": [
{
"id": 40,
}
],
"resource_uri": "/MAAS/
}
Creating a DHCP snippet for a machine fails
root@mtlctrl1pi
Unable to validate DHCP config, no available rack controller connected.
This was tested on multiple versions of maas:
v3.0.0, v3.2.4
Related branches
- Alberto Donato (community): Approve
- MAAS Lander: Approve
-
Diff: 266 lines (+132/-34)6 files modifiedsrc/maasserver/dhcp.py (+15/-13)
src/maasserver/models/dhcpsnippet.py (+4/-0)
src/maasserver/models/node.py (+10/-12)
src/maasserver/models/subnet.py (+6/-8)
src/maasserver/models/tests/test_dhcpsnippet.py (+14/-0)
src/maasserver/tests/test_dhcp.py (+83/-1)
description: | updated |
Changed in maas: | |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
milestone: | 3.3.0 → 3.3.0-beta3 |
Changed in maas: | |
status: | Fix Committed → Fix Released |
Could you please paste the output of `maas $profile subnet read $subnet_id` for the relevant subnets?