removing a node when it has failed commissioning is not possible from the UI

Bug #994781 reported by LaMont Jones
54
This bug affects 12 people
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
Gavin Panella
maas (Ubuntu)
Fix Released
High
Andres Rodriguez
Quantal
Fix Released
High
Andres Rodriguez

Bug Description

If a node failed to commission, and I wish simply to remove it from maas completely, there is no way to do that from the UI, since the remove node button is greyed out at that stage. I believe that the failed state is the same way.

Tags: ui

Related branches

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in maas (Ubuntu):
status: New → Confirmed
Changed in maas:
status: New → Triaged
importance: Undecided → High
tags: added: ui
Gavin Panella (allenap)
Changed in maas:
status: Triaged → In Progress
assignee: nobody → Gavin Panella (allenap)
Gavin Panella (allenap)
Changed in maas:
status: In Progress → Fix Committed
Revision history for this message
Brian Morton (rokclimb15) wrote :

Is there a workaround for this bug such as a way to delete from shell? I'm not familiar enough with the internals of MAAS to do this safely.

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

You can delete a node like this:
$ sudo maas
> from maasserver.models import Node
> node = Node.objects.get(hostname='myhostname')
> node.delete()

Revision history for this message
Brian Morton (rokclimb15) wrote :

Raphael,

That works very well, thanks.

To start the shell, run

$ sudo maas shell

then proceed normally with those instructions.

Revision history for this message
drolfe (drolfe) wrote :

Yep below worked for me very well

$ sudo maas
> from maasserver.models import Node
> node = Node.objects.get(hostname='myhostname')
> node.delete()

Thanks Raphaël

Revision history for this message
RickP (rickpham) wrote :

I have search for this temp fix for many days, this temp fix is excellent for deleting physical node in a stuck commission state. Thank you Raphael.

Revision history for this message
Kurt (burnbrighter) wrote :

Is the functionality of the shell documented anywhere? This would be VERY useful to know. Given the gui doesn't always work the way it should, I could see this as really good and important information.

Revision history for this message
Julian Edwards (julian-edwards) wrote : Re: [Bug 994781] Re: removing a node when it has failed commissioning is not possible from the UI

On Saturday 09 Jun 2012 04:31:51 you wrote:
> Is the functionality of the shell documented anywhere? This would be
> VERY useful to know. Given the gui doesn't always work the way it
> should, I could see this as really good and important information.

It's not documented, it's intended as a developer and support tool.

tags: added: rls-q-incoming
Revision history for this message
Josu (jok-erensuge) wrote :

Thanks!! Very useful !!

Changed in maas:
status: Fix Committed → Fix Released
James Page (james-page)
Changed in maas (Ubuntu):
importance: Undecided → High
status: Confirmed → Triaged
James Page (james-page)
tags: removed: rls-q-incoming
Changed in maas (Ubuntu Quantal):
assignee: nobody → Andres Rodriguez (andreserl)
Changed in maas (Ubuntu Quantal):
status: Triaged → 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.