Nodes can't be deleted if DHCP management is off.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Newell Jensen |
Bug Description
I have some nodes I enlisted and commissioned on a cluster that had DNS/DHCP management enabled. I disabled DNS/DHCP management for that cluster, then tried to delete the nodes.
I got an error at the top of the page, something like "not connected.#012> no open object.#012> not connected.#012> not connected.#012".
In maas.log I see:
Oct 3 03:04:09 trusty-maas7 maas.dhcp: [ERROR] Could not remove host map for 192.168.10.101: Command `omshell` returned non-zero exit status 0:#012> > > > not connected.#012> no open object.#012> not connected.#012> not connected.#012>.
I enabled DNS/DHCP management again and the node was deleted successfully.
Looks like the failure to talk to dhcpd via omshell could be handled more gracefully.
This is with maas 1.7.0~beta4+
Related branches
- Blake Rouse (community): Approve
- Graham Binns (community): Approve
-
Diff: 85 lines (+33/-10)2 files modifiedsrc/maasserver/models/node.py (+2/-1)
src/maasserver/models/tests/test_node.py (+31/-9)
description: | updated |
Changed in maas: | |
importance: | Undecided → Critical |
status: | New → Triaged |
Changed in maas: | |
milestone: | none → 1.7.0 |
Changed in maas: | |
assignee: | nobody → Newell Jensen (newell-jensen) |
status: | Triaged → In Progress |
summary: |
- Nodes can't be deleted if DNS management is off. + Nodes can't be deleted if DHCP management is off. |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |