StaticIPAddress is deallocated before a node has powered off.
Bug #1403909 reported by
Blake Rouse
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Unassigned | ||
1.7 |
Fix Released
|
Critical
|
Unassigned |
Bug Description
The Node.stop() method only waits for the power action to be registered, then releases the StaticIPAddress. This gives the ability for another node to be deployed grabbing that same ip address causing the new node to get the same ip address as the node that is powering down but is still on at the time.
We should only release the StaticIPAddress when the Node transitions from Releasing to Ready or Failed Releasing to Broken or Ready.
Related branches
lp:~blake-rouse/maas/fix-1403909
- Raphaël Badin (community): Approve
-
Diff: 192 lines (+88/-34)2 files modifiedsrc/maasserver/models/node.py (+18/-5)
src/maasserver/models/tests/test_node.py (+70/-29)
lp:~blake-rouse/maas/fix-1403909-1.7
- Andres Rodriguez (community): Approve
-
Diff: 192 lines (+88/-34)2 files modifiedsrc/maasserver/models/node.py (+18/-5)
src/maasserver/models/tests/test_node.py (+70/-29)
Changed in maas: | |
milestone: | none → next |
tags: | added: oil |
Changed in maas: | |
status: | Triaged → Fix Committed |
To post a comment you must log in.
This bug has been reported and fixed on upstream MAAS. However, provided that the bug was listed on the debian changelog, this appears as needing verification for pending SRU [1]. This bug did not affect current MAAS in Ubuntu, hence setting this to verification-done to unblock pending SRU.
[1]:http:// people. canonical. com/~ubuntu- archive/ pending- sru.html