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've installed ubuntu maas server, and a couple of nodes. Everything went right, just for one node, now with status "Allocated to...". Question is, how do i delete this node. I've tried following :

cobbler system remove --name=xxx

The node seems to be removed (cobbler system list) but is still visible in /MAAS webui, even after several reboots.

Any hint ?

share|improve this question

5 Answers 5

maas has its own database, api, and management tools, directly removing things from cobbler is not supported.

share|improve this answer
    
thanks for your answer. Any link to the maas api documentation ? –  Manu Eidenberger May 25 '12 at 9:13
sudo maas shell
> from maasserver.models import Node
> node = Node.objects.get(hostname='myhostname')
> node.delete()
share|improve this answer

If this problem appeared after juju bootstrap, you can use

juju destroy-environment

maas flush will rebuild maas enviroment, that's not a good idea.

share|improve this answer

Try to use after that cobbler command... maas flush. It will reset your maasdb.

share|improve this answer

I faced the same problem. I deployed a testing system and just use

sudo maas flush

but this will remove all tables from your system and start from scratch. will be also useful the

cobbler system remove --name

with the old nodes

share|improve this answer

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.