Comment 6 for bug 1707216

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

Here's what we're doing with a script that talks to the MAAS API to accomplish this:

1) We add the node to MAAS with correct IPMI credentials and a fake MAC
address (MAAS requires a MAC address).

2) MAAS, prior to returning from the API call to add the machine, issues
the IPMI commands required to PXE boot the machine. It handles this
regardless of the machine's current state.

3) Immediately upon return from the add machine API call, we issue
another API call to delete the machine from MAAS. MAAS does not issue
any power commands in response to this, so the machine continues to
PXE boot, and will show up in MAAS as a 'New' node once enlistment
completes.

4) We poll MAAS for nodes in 'New' state, looking for a machine to match
our IPMI power address. When we find it, we set the proper hostname and
zone on it, and start commissioning.