Failing commission on 50-maas-01-commissioning

Hi all, I have a very strange problem while commissioning a node it always fails on 50-maas-01-commissioning . However the script runs perfectly fine, returns “correct” (?) output and its exit status is 0. It is also interesting that the stderr tab on MaaS has only the output of downloading the script from the rackd controller (with no error or anything that indicates problem). If I ssh to the host during comissioning I can also run the script perfectly fine.

Any suggestions ?

If the output was successfully returned there may have been an error while MAAS processed it. I would check your logs in /var/log/maas/*.log to see if any exceptions where raised during commissioning.

It’s strange I haven’t noticed… I actually get an exception

django.core.exceptions.ValidationError: {‘all’: [‘Interface with this Node and Name already exists.’]}

I suppose that as this node was in Ready state when re-comissioned, something went wrong. I have done it with a dozen other server with no problem at all.

It shouldn’t be possible to commission while in a ready state. MAAS will reject commissioning results unless the machine is in commissioning. Its hard to say what went wrong without seeing the script output and MAAS logs. From that message it appears that MAAS at least thinks an interface is being duplicated.

The machine was in Ready state and from this state, MaaS allows to go again to Comissioning. In any case, the issue has been solved by deleting the node and enlisting again. Thank you for your assistance!