Can't delete allocated node even if owned by self
Bug #997092 reported by
Gavin Panella
This bug affects 10 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Raphaël Badin | ||
1.2 |
Fix Released
|
High
|
Julian Edwards |
Bug Description
Once lp:~allenap/maas/delete-failing-commissioning-node-bug-994781 lands it won't be possible to delete a node if it's allocated. However, Jeroen points out a valid use-case for this:
> I wonder if we shouldn't also allow a user to delete nodes allocated
> _to themselves_. “There. It's running fine now. I want to keep it
> like this, without further control from MAAS.”
Workaround:
Use the MAAS shell to de-allocate the node. Then you can delete it from the UI.
15:18 <roaksoax> from maasserver.models import Node
15:18 <roaksoax> node = Node.objects.
15:18 <roaksoax> node.release()
15:18 <roaksoax> that should do it
Related branches
lp:~rvb/maas/stop-button
- Jeroen T. Vermeulen (community): Approve
-
Diff: 113 lines (+51/-0)2 files modifiedsrc/maasserver/node_action.py (+15/-0)
src/maasserver/tests/test_node_action.py (+36/-0)
lp:~julian-edwards/maas/1.2-backport-stop-button
- Julian Edwards (community): Approve
-
Diff: 113 lines (+51/-0)2 files modifiedsrc/maasserver/node_action.py (+15/-0)
src/maasserver/tests/test_node_action.py (+36/-0)
summary: |
- Can't delete node if allocated even if owned by self + Can't delete allocated node even if owned by self |
tags: | added: qateam |
description: | updated |
Changed in maas: | |
assignee: | nobody → Raphaël Badin (rvb) |
status: | Triaged → Fix Committed |
Changed in maas: | |
milestone: | none → 13.10 |
To post a comment you must log in.
Given the potential upcoming "all users are admin" change, make it easy to change it so that anyone to delete if necessary.