Cannot set vlan dhcp_on to true (primary rack controller id not accepted)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Expired
|
Undecided
|
Unassigned |
Bug Description
Cannot set vlan dhcp_on to true (primary rack controller id not accepted)
MAAS version: 2.3.0 (6434-gd354690-
#### There is only one rack controller, the primary one:
rbeisner@rby:~/git⟫ maas maas rack-controllers read | grep system_id
#### Just to demonstrate, I can update the name of the vlan:
rbeisner@rby:~/git⟫ maas maas vlan update 0 2922 name="VLAN2922"
Success.
Machine-readable output follows:
{
"fabric_id": 0,
"primary_rack": null,
"relay_vlan": null,
"external_
"mtu": 1500,
"space": "oam-space",
"fabric": "fabric-0",
"secondary_
"resource_uri": "/MAAS/
"name": "VLAN2922",
"dhcp_on": false,
"vid": 2922,
"id": 5136
}
#### But when I try to set dhcp_on true, I cannot proceed even though I provide the primary rack id according to documentation:
rbeisner@rby:~/git⟫ maas maas vlan update 0 2922 dhcp_on=true primary_
{"__all__": ["dhcp can only be turned on when a primary rack controlleris set."], "primary_rack": ["Select a valid choice. c4ak3h is not one of the available choices."]}
Changed in maas: | |
status: | New → Incomplete |
For reference, here's what I'm going by:
rbeisner@rby:~/git⟫ maas maas vlan update --help
fabric_ id vid [data [data ...]]
usage: maas maas vlan update [--help] [-d] [-k]
Update VLAN.
Positional arguments:
fabric_id
vid
This method accepts keyword arguments. Pass each argument as a
key-value pair with an equals sign between the key and the value:
key1=value1 key2=value key3=value3. Keyword arguments must come after
any positional arguments.
:param name: Name of the VLAN.
:type name: unicode
:param description: Description of the VLAN.
:type description: unicode
:param vid: VLAN ID of the VLAN.
:type vid: integer
:param mtu: The MTU to use on the VLAN.
:type mtu: integer
:param dhcp_on: Whether or not DHCP should be managed on the VLAN.
:type dhcp_on: boolean
:param primary_rack: The primary rack controller managing the VLAN.
:type primary_rack: system_id
:param secondary_rack: The secondary rack controller manging the VLAN.
:type secondary_rack: system_id
:param relay_vlan: Only set when this VLAN will be using a DHCP relay
to forward DHCP requests to another VLAN that MAAS is or will run
the DHCP server. MAAS will not run the DHCP relay itself, it must
be configured to proxy reqests to the primary and/or secondary
rack controller interfaces for the VLAN specified in this field.
:type relay_vlan: ID of VLAN
:param space: The space this VLAN should be placed in. Passing in an
empty string (or the string 'undefined') will cause the VLAN to be
placed in the 'undefined' space.
:type space: unicode
Returns 404 if the fabric or VLAN is not found.
Common command-line options:
--help, -h
Show this help message and exit.
-d, --debug
Display more information about API responses.
-k, --insecure
Disable SSL certificate check