Assigning sticky IP address to node doesn't update controlers dhcp config
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Blake Rouse | ||
1.7 |
Fix Released
|
Critical
|
Blake Rouse |
Bug Description
Reproduce issue:
1. Assign static ip addresses using
maas cluster node claim-sticky-
2. Runs successful as IP is shown in returned json
3. Acquiring node
Result:
Node gets dynamic IP assigned.
Expected:
Node gets static IP assigned
According to documentation, it's not explicitly stated that i need to add the node description to dhcp.template.
As a workaround, If I add an appropriate entry, it works.
Installed Packages
rc maas 1.7.1+bzr3341-
ii maas-cli 1.7.1+bzr3341-
ii maas-cluster-
ii maas-common 1.7.1+bzr3341-
ii maas-dhcp 1.7.1+bzr3341-
ii maas-dns 1.7.1+bzr3341-
ii maas-proxy 1.7.1+bzr3341-
rc maas-region-
ii maas-region-
ii python-django-maas 1.7.1+bzr3341-
ii python-maas-client 1.7.1+bzr3341-
ii python-
Related branches
- Mike Pontillo (community): Needs Fixing
-
Diff: 24 lines (+6/-1)1 file modifiedsrc/maasserver/models/node.py (+6/-1)
- Raphaël Badin (community): Approve
- Mike Pontillo (community): Approve
-
Diff: 112 lines (+43/-1)2 files modifiedsrc/maasserver/api/nodes.py (+6/-0)
src/maasserver/api/tests/test_node.py (+37/-1)
- Andres Rodriguez (community): Approve
-
Diff: 177 lines (+61/-15)4 files modifiedsrc/maasserver/api/nodes.py (+6/-0)
src/maasserver/api/tests/test_node.py (+35/-1)
src/maasserver/models/node.py (+18/-14)
src/maasserver/node_query.py (+2/-0)
Changed in maas: | |
status: | Confirmed → Triaged |
milestone: | none → 1.7.2 |
Changed in maas: | |
milestone: | 1.7.2 → 1.7.3 |
Changed in maas: | |
assignee: | Mike Pontillo (mpontillo) → Blake Rouse (blake-rouse) |
status: | Triaged → In Progress |
milestone: | 1.7.3 → next |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
milestone: | next → none |
The static ip address configuration is not stored in the DHCP config. It is set using omshell from MAAS, that information is stored in the dhcp.leases file, which the dhcp server parses when it restarts. The leases file is the dhcpd database.