Inconsistent behavior in the checks to delete a node

Bug #1389602 reported by Raphaël Badin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
Raphaël Badin

Bug Description

One cannot remove an 'Allocated' node but MAAS allows a 'Deploying' or a 'Deployed' node to be deleted. This is inconsistent.

Related branches

Raphaël Badin (rvb)
summary: - Nothing prevents a 'Deployed' from being deleted.
+ Nothing prevents a 'Deployed' node from being deleted.
Raphaël Badin (rvb)
Changed in maas:
assignee: nobody → Raphaël Badin (rvb)
status: Triaged → In Progress
Revision history for this message
Jason Hobbs (jason-hobbs) wrote : Re: Nothing prevents a 'Deployed' node from being deleted.

I disagree with the premise that it doesn't make sense to allow an Admin to delete a node that is owned by a user. The problem with releasing first is that releasing the node powers the node off, and that breaks at least one existing customer's use case. I think it's always a useful option to delete a node at any time without having any affect on the node itself, and the issue here is just one of needing to make the admin aware that the node is allocated to a user.

I think the better fix here would be to remove the restriction on deleting the node the Allocated state, and make the warning clearer about what's going on.

Revision history for this message
Jason Hobbs (jason-hobbs) wrote :

To be clear, the reason I don't think this should be 'fixed' is I think admins should always have a way to delete a node that isn't dependent on the state of the node, and doesn't change the state of the node. If the admin wants to power the node off before deleting it, fine, he can release it or mark it broken first. But if he wants to remove the node from MAAS without changing the node's state, because perhaps the node is doing something useful after being deployed with MAAS, then deleting while deployed/deploying must be allowed. This allows use of MAAS to bootstrap a system that doesn't necessarily need to be managed with MAAS from there on out.

Revision history for this message
Andres Rodriguez (andreserl) wrote :

I agree with Jason here:

- A admin should be able to delete a node that's in ANY state.
- A user should not be able to delete a node at all.

Revision history for this message
Raphaël Badin (rvb) wrote :

All right, the only thing I really care about is consistency here. Since you've made a good case for why it makes sense to delete an allocated, I've repurposed the bug.

summary: - Nothing prevents a 'Deployed' node from being deleted.
+ Inconsistent behavior in the checks to delete a node
description: updated
Christian Reis (kiko)
Changed in maas:
milestone: none → 1.7.1
Raphaël Badin (rvb)
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.