Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm driving myself somewhat crazy trying to figure out how to remove a deployed node. I can't find the information anywhere.

What are the steps to remove a node from the cluster after it's been allocated to a user?

EDIT: I should also note that I did NOT have Juju installed. It's just deployed to my user accound via the magic of the web interface.

share|improve this question
add comment

1 Answer

A node is allocated to a user when a service is deployed to the node with juju. To return the node back to 'Ready' state you need to remove the service from the node with juju and terminate the machine.

To remove the service from a machine check 'juju status' to determine machine-id corresponding to your machine. Then under services see which service is deployed to the particular machine-id.

To remove the service use either 'juju remove-unit service/X' if removing a single unit or 'juju destroy-service service' if you want to remove all remaining units.

juju remove-unit ubuntu/3

The machine can then be terminated with 'juju terminate-machine machine-id'

juju terminate-machine 23

Once the node is in the 'Ready' state it can be deleted from MAAS.

share|improve this answer
    
In a possibly amazing turn of events, I deployed it to myself without using Juju. I wonder if Juju can remove that too through some magic. –  RandomInsano Mar 13 '13 at 21:01
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.