We have 2 subnets under MaaS control:
1. 10.70.1.0/24 where rackd is installed
2. 10.80.1.0/24 with dhcp-relay throw 10.70.1.0/24
and I am trying to add dhcp snippet to this subnets.
a) I don't have any problem with 10.70.1.0/24.
ubuntu@maas1:~$ maas admins dhcpsnippets create name=cli_snippet_test value="authoritative;" description="" subnet="10.70.1.0/24"
Success.
Machine-readable output follows:
{
"name": "cli_snippet_test",
"description": "",
"enabled": true,
"node": null,
"subnet": {
"name": "10.70.1.0/24",
"vlan": {
"vid": 1101,
"mtu": 1500,
"dhcp_on": true,
"external_dhcp": null,
"relay_vlan": null,
"name": "VPC Infrastructure Cloud1",
"fabric": "XPT_Cloud1",
"secondary_rack": "8mawdr",
"space": "INFRA",
"primary_rack": "7a7ggh",
"id": 5020,
"fabric_id": 0,
"resource_uri": "/MAAS/api/2.0/vlans/5020/"
},
"cidr": "10.70.1.0/24",
"rdns_mode": 2,
"gateway_ip": "10.70.1.254",
"dns_servers": [
"10.70.1.81"
],
"allow_proxy": true,
"active_discovery": false,
"managed": true,
"space": "INFRA",
"id": 14,
"resource_uri": "/MAAS/api/2.0/subnets/14/"
},
"value": "authoritative;",
"history": [
{
"id": 50,
"value": "authoritative;",
"created": "Fri, 28 Dec 2018 00:12:33 -0000"
}
],
"global_snippet": false,
"id": 4,
"resource_uri": "/MAAS/api/2.0/dhcp-snippets/4/"
}
b) but I got an error, when tryed to add snippet to 10.80.1.0/24 configuration and configuration was not changed:
ubuntu@maas1:~$ maas admins dhcpsnippets create name=cli_snippet_test value="authoritative;" description="" subnet="10.80.1.0/24"
Unable to validate DHCP config, no available rack controller connected.
MAAS version: 2.4.2 (7034-g2f5deb8b8-0ubuntu1)
This bug has not seen any activity in the last 6 months, so it is being automatically closed.
If you are still experiencing this issue, please feel free to re-open.
MAAS Team