PXE booting option not staying set
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS RSD |
Invalid
|
Critical
|
Priyank Durugkar |
Bug Description
MAAS node deployments where failing because of timing out. This was not happening before the recent upgrade to the Intel RSD lab to deal with the InitiatorIQN bug #1682240
Now, when setting a composed node to PXE boot, after a couple minutes, it is automatically being set back to boot from HDD. I have verified this with the RSD PODM API. It should also be noted that I verified this using "Continuous" as well even though I am only showing "Once" below.
1. First, let's PATCH the node to boot from PXE:
root@maas-dev:~# curl -s -k -u admin:admin -X PATCH -H "Content-Type: application/json" -d '{"Boot": {"BootSourceOve
2. Let's verify that PXE was set:
root@maas-dev:~# curl -s -k -u admin:admin -X GET https:/
{
"@odata.context" : "/redfish/
"@odata.id" : "/redfish/
"@odata.type" : "#ComposedNode.
"Id" : "8",
"Name" : "second-test",
"Description" : null,
"SystemType" : "Logical",
"AssetTag" : null,
"Manufacturer" : "Quanta",
"Model" : "F20A_HSW (To be filled by O.E.M.)",
"SKU" : null,
"SerialNumber" : "To be filled by O.E.M.",
"PartNumber" : null,
"UUID" : "58c7520c-
"HostName" : null,
"PowerState" : "Off",
"BiosVersion" : "F20A1A05_D",
"Status" : {
"State" : "Enabled",
"Health" : "OK",
"HealthRollup" : "OK"
},
"Processors" : {
"Count" : 2,
"Model" : "Intel(R) Xeon(R) CPU E5-2695 v3 @ 2.30GHz",
"Status" : {
"State" : "Enabled",
"Health" : "OK",
"
}
},
"Memory" : {
"TotalSyste
"Status" : {
"State" : "Enabled",
"Health" : "OK",
"
}
},
"ComposedNode
"Boot" : {
"BootSource
"BootSource
"<email address hidden>" : [ "Hdd", "Pxe" ]
},
"Oem" : { },
"Links" : {
"ComputerSy
"@odata.id" : "/redfish/
},
"Processors" : [ {
"@odata.id" : "/redfish/
}, {
"@odata.id" : "/redfish/
} ],
"Memory" : [ {
"@odata.id" : "/redfish/
}, {
"@odata.id" : "/redfish/
}, {
"@odata.id" : "/redfish/
}, {
"@odata.id" : "/redfish/
} ],
"EthernetIn
"@odata.id" : "/redfish/
}, {
"@odata.id" : "/redfish/
} ],
"LocalDrives" : [ {
"@odata.id" : "/redfish/
} ],
"RemoteDrives" : [ ],
"ManagedBy" : [ {
"@odata.id" : "/redfish/
} ],
"Oem" : { }
},
"Actions" : {
"#ComposedN
"target" : "/redfish/
"<email address hidden>" : [ "On", "ForceOff", "GracefulShutdown", "GracefulRestart", "ForceRestart" ]
},
"#ComposedN
"target" : "/redfish/
}
}
}
Let's wait one minute before querying the node to see if it has changed:
root@maas-dev:~# curl -s -k -u admin:admin -X GET https:/
{
"@odata.context" : "/redfish/
"@odata.id" : "/redfish/
"@odata.type" : "#ComposedNode.
"Id" : "8",
"Name" : "second-test",
"Description" : null,
"SystemType" : "Logical",
"AssetTag" : null,
"Manufacturer" : "Quanta",
"Model" : "F20A_HSW (To be filled by O.E.M.)",
"SKU" : null,
"SerialNumber" : "To be filled by O.E.M.",
"PartNumber" : null,
"UUID" : "58c7520c-
"HostName" : null,
"PowerState" : "Off",
"BiosVersion" : "F20A1A05_D",
"Status" : {
"State" : "Enabled",
"Health" : "OK",
"HealthRollup" : "OK"
},
"Processors" : {
"Count" : 2,
"Model" : "Intel(R) Xeon(R) CPU E5-2695 v3 @ 2.30GHz",
"Status" : {
"State" : "Enabled",
"Health" : "OK",
"
}
},
"Memory" : {
"TotalSyste
"Status" : {
"State" : "Enabled",
"Health" : "OK",
"
}
},
"ComposedNode
"Boot" : {
"BootSource
"BootSource
"<email address hidden>" : [ "Hdd", "Pxe" ]
},
"Oem" : { },
"Links" : {
"ComputerSy
"@odata.id" : "/redfish/
},
"Processors" : [ {
"@odata.id" : "/redfish/
}, {
"@odata.id" : "/redfish/
} ],
"Memory" : [ {
"@odata.id" : "/redfish/
}, {
"@odata.id" : "/redfish/
}, {
"@odata.id" : "/redfish/
}, {
"@odata.id" : "/redfish/
} ],
"EthernetIn
"@odata.id" : "/redfish/
}, {
"@odata.id" : "/redfish/
} ],
"LocalDrives" : [ {
"@odata.id" : "/redfish/
} ],
"RemoteDrives" : [ ],
"ManagedBy" : [ {
"@odata.id" : "/redfish/
} ],
"Oem" : { }
},
"Actions" : {
"#ComposedN
"target" : "/redfish/
"<email address hidden>" : [ "On", "ForceOff", "GracefulShutdown", "GracefulRestart", "ForceRestart" ]
},
"#ComposedN
"target" : "/redfish/
}
}
}
It's still set to PXE, let's wait one more minute (total of about two minutes) and check again:
root@maas-dev:~# curl -s -k -u admin:admin -X GET https:/
{
"@odata.context" : "/redfish/
"@odata.id" : "/redfish/
"@odata.type" : "#ComposedNode.
"Id" : "8",
"Name" : "second-test",
"Description" : null,
"SystemType" : "Logical",
"AssetTag" : null,
"Manufacturer" : "Quanta",
"Model" : "F20A_HSW (To be filled by O.E.M.)",
"SKU" : null,
"SerialNumber" : "To be filled by O.E.M.",
"PartNumber" : null,
"UUID" : "58c7520c-
"HostName" : null,
"PowerState" : "Off",
"BiosVersion" : "F20A1A05_D",
"Status" : {
"State" : "Enabled",
"Health" : "OK",
"HealthRollup" : "OK"
},
"Processors" : {
"Count" : 2,
"Model" : "Intel(R) Xeon(R) CPU E5-2695 v3 @ 2.30GHz",
"Status" : {
"State" : "Enabled",
"Health" : "OK",
"
}
},
"Memory" : {
"TotalSyste
"Status" : {
"State" : "Enabled",
"Health" : "OK",
"
}
},
"ComposedNode
"Boot" : {
"BootSource
"BootSource
"<email address hidden>" : [ "Hdd", "Pxe" ]
},
"Oem" : { },
"Links" : {
"ComputerSy
"@odata.id" : "/redfish/
},
"Processors" : [ {
"@odata.id" : "/redfish/
}, {
"@odata.id" : "/redfish/
} ],
"Memory" : [ {
"@odata.id" : "/redfish/
}, {
"@odata.id" : "/redfish/
}, {
"@odata.id" : "/redfish/
}, {
"@odata.id" : "/redfish/
} ],
"EthernetIn
"@odata.id" : "/redfish/
}, {
"@odata.id" : "/redfish/
} ],
"LocalDrives" : [ {
"@odata.id" : "/redfish/
} ],
"RemoteDrives" : [ ],
"ManagedBy" : [ {
"@odata.id" : "/redfish/
} ],
"Oem" : { }
},
"Actions" : {
"#ComposedN
"target" : "/redfish/
"<email address hidden>" : [ "On", "ForceOff", "GracefulShutdown", "GracefulRestart", "ForceRestart" ]
},
"#ComposedN
"target" : "/redfish/
}
}
}
As we can see above, the node is now set to boot from HDD and this was all done with the RSD API.
description: | updated |
Marking as invalid as even though this is still the case, we are setting PXE booting after each power on or power off command. The reason this "seemed" to be an issue originally is that the curtin preeseed had been modified so that the node would not reboot on installation because the curtin was working on the system.