Comment 15 for bug 1758760

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

@kiko yes, MAAS always runs that code during enlistment (and commissioning), whether or not a username/password was provided for the BMC.

Keep in mind, however, that even if MAAS didn't run this when it new the BMC credentials for a machine already, it would not fix this case, because MAAS is enlisting a node it does not know about.

When we add a node through foundation, we add it to MAAS w/ fixed BMC credentials, but a fake MAC address, to get MAAS to power it on, then we immediately delete the node from MAAS so that the node will go through enlistment when it PXE boots. During enlistment, MAAS creates it as a new node, this time with the real MAC addresses it discovered, and with BMC credentials it set. We then recognize that node via the BMC power address matching the one we used.