dhcp snippet create fail when dhcp subnet is relayed

Bug #1809939 reported by Alexander
22
This bug affects 6 people
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Medium
Erlon R. Cruz

Bug Description

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)

Related branches

Alexander (abelov)
description: updated
Alexander (abelov)
description: updated
Revision history for this message
Adam Collard (adam-collard) wrote :

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

Changed in maas:
status: New → Invalid
Changed in maas:
assignee: nobody → Erlon R. Cruz (sombrafam)
status: Invalid → Confirmed
Changed in maas:
status: Confirmed → Triaged
importance: Undecided → Medium
Revision history for this message
Erlon R. Cruz (sombrafam) wrote :

Patches are ready. Just waiting for launcpad repo to be fixed.

Changed in maas:
status: Triaged → Fix Released
Alberto Donato (ack)
Changed in maas:
status: Fix Released → In Progress
Changed in maas:
milestone: none → 3.0-beta4
status: In Progress → Fix Committed
Alberto Donato (ack)
Changed in maas:
milestone: 3.0.0-beta4 → 3.0.0-beta3
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