PXE booting option not staying set

Bug #1685894 reported by Newell Jensen
6
This bug affects 1 person
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": {"BootSourceOverrideTarget": "Pxe", "BootSourceOverrideEnabled": "Once"}}' https://10.3.0.1:8443/redfish/v1/Nodes/8

2. Let's verify that PXE was set:

root@maas-dev:~# curl -s -k -u admin:admin -X GET https://10.3.0.1:8443/redfish/v1/Nodes/8
{
  "@odata.context" : "/redfish/v1/$metadata#Nodes/Members/$entity",
  "@odata.id" : "/redfish/v1/Nodes/8",
  "@odata.type" : "#ComposedNode.1.0.0.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-602c-0a99-11e4-453ac10f90c0",
  "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",
      "HealthRollup" : "OK"
    }
  },
  "Memory" : {
    "TotalSystemMemoryGiB" : 30,
    "Status" : {
      "State" : "Enabled",
      "Health" : "OK",
      "HealthRollup" : "OK"
    }
  },
  "ComposedNodeState" : "PoweredOn",
  "Boot" : {
    "BootSourceOverrideEnabled" : "Once",
    "BootSourceOverrideTarget" : "Pxe",
    "<email address hidden>" : [ "Hdd", "Pxe" ]
  },
  "Oem" : { },
  "Links" : {
    "ComputerSystem" : {
      "@odata.id" : "/redfish/v1/Systems/24"
    },
    "Processors" : [ {
      "@odata.id" : "/redfish/v1/Systems/24/Processors/47"
    }, {
      "@odata.id" : "/redfish/v1/Systems/24/Processors/48"
    } ],
    "Memory" : [ {
      "@odata.id" : "/redfish/v1/Systems/24/Memory/81"
    }, {
      "@odata.id" : "/redfish/v1/Systems/24/Memory/82"
    }, {
      "@odata.id" : "/redfish/v1/Systems/24/Memory/83"
    }, {
      "@odata.id" : "/redfish/v1/Systems/24/Memory/84"
    } ],
    "EthernetInterfaces" : [ {
      "@odata.id" : "/redfish/v1/Systems/24/EthernetInterfaces/64"
    }, {
      "@odata.id" : "/redfish/v1/Systems/24/EthernetInterfaces/65"
    } ],
    "LocalDrives" : [ {
      "@odata.id" : "/redfish/v1/Systems/24/Adapters/21/Devices/23"
    } ],
    "RemoteDrives" : [ ],
    "ManagedBy" : [ {
      "@odata.id" : "/redfish/v1/Managers/1"
    } ],
    "Oem" : { }
  },
  "Actions" : {
    "#ComposedNode.Reset" : {
      "target" : "/redfish/v1/Nodes/8/Actions/ComposedNode.Reset",
      "<email address hidden>" : [ "On", "ForceOff", "GracefulShutdown", "GracefulRestart", "ForceRestart" ]
    },
    "#ComposedNode.Assemble" : {
      "target" : "/redfish/v1/Nodes/8/Actions/ComposedNode.Assemble"
    }
  }
}

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://10.3.0.1:8443/redfish/v1/Nodes/8
{
  "@odata.context" : "/redfish/v1/$metadata#Nodes/Members/$entity",
  "@odata.id" : "/redfish/v1/Nodes/8",
  "@odata.type" : "#ComposedNode.1.0.0.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-602c-0a99-11e4-453ac10f90c0",
  "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",
      "HealthRollup" : "OK"
    }
  },
  "Memory" : {
    "TotalSystemMemoryGiB" : 30,
    "Status" : {
      "State" : "Enabled",
      "Health" : "OK",
      "HealthRollup" : "OK"
    }
  },
  "ComposedNodeState" : "PoweredOn",
  "Boot" : {
    "BootSourceOverrideEnabled" : "Once",
    "BootSourceOverrideTarget" : "Pxe",
    "<email address hidden>" : [ "Hdd", "Pxe" ]
  },
  "Oem" : { },
  "Links" : {
    "ComputerSystem" : {
      "@odata.id" : "/redfish/v1/Systems/24"
    },
    "Processors" : [ {
      "@odata.id" : "/redfish/v1/Systems/24/Processors/47"
    }, {
      "@odata.id" : "/redfish/v1/Systems/24/Processors/48"
    } ],
    "Memory" : [ {
      "@odata.id" : "/redfish/v1/Systems/24/Memory/81"
    }, {
      "@odata.id" : "/redfish/v1/Systems/24/Memory/82"
    }, {
      "@odata.id" : "/redfish/v1/Systems/24/Memory/83"
    }, {
      "@odata.id" : "/redfish/v1/Systems/24/Memory/84"
    } ],
    "EthernetInterfaces" : [ {
      "@odata.id" : "/redfish/v1/Systems/24/EthernetInterfaces/64"
    }, {
      "@odata.id" : "/redfish/v1/Systems/24/EthernetInterfaces/65"
    } ],
    "LocalDrives" : [ {
      "@odata.id" : "/redfish/v1/Systems/24/Adapters/21/Devices/23"
    } ],
    "RemoteDrives" : [ ],
    "ManagedBy" : [ {
      "@odata.id" : "/redfish/v1/Managers/1"
    } ],
    "Oem" : { }
  },
  "Actions" : {
    "#ComposedNode.Reset" : {
      "target" : "/redfish/v1/Nodes/8/Actions/ComposedNode.Reset",
      "<email address hidden>" : [ "On", "ForceOff", "GracefulShutdown", "GracefulRestart", "ForceRestart" ]
    },
    "#ComposedNode.Assemble" : {
      "target" : "/redfish/v1/Nodes/8/Actions/ComposedNode.Assemble"
    }
  }
}

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://10.3.0.1:8443/redfish/v1/Nodes/8
{
  "@odata.context" : "/redfish/v1/$metadata#Nodes/Members/$entity",
  "@odata.id" : "/redfish/v1/Nodes/8",
  "@odata.type" : "#ComposedNode.1.0.0.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-602c-0a99-11e4-453ac10f90c0",
  "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",
      "HealthRollup" : "OK"
    }
  },
  "Memory" : {
    "TotalSystemMemoryGiB" : 30,
    "Status" : {
      "State" : "Enabled",
      "Health" : "OK",
      "HealthRollup" : "OK"
    }
  },
  "ComposedNodeState" : "PoweredOn",
  "Boot" : {
    "BootSourceOverrideEnabled" : "Disabled",
    "BootSourceOverrideTarget" : "None",
    "<email address hidden>" : [ "Hdd", "Pxe" ]
  },
  "Oem" : { },
  "Links" : {
    "ComputerSystem" : {
      "@odata.id" : "/redfish/v1/Systems/24"
    },
    "Processors" : [ {
      "@odata.id" : "/redfish/v1/Systems/24/Processors/47"
    }, {
      "@odata.id" : "/redfish/v1/Systems/24/Processors/48"
    } ],
    "Memory" : [ {
      "@odata.id" : "/redfish/v1/Systems/24/Memory/81"
    }, {
      "@odata.id" : "/redfish/v1/Systems/24/Memory/82"
    }, {
      "@odata.id" : "/redfish/v1/Systems/24/Memory/83"
    }, {
      "@odata.id" : "/redfish/v1/Systems/24/Memory/84"
    } ],
    "EthernetInterfaces" : [ {
      "@odata.id" : "/redfish/v1/Systems/24/EthernetInterfaces/64"
    }, {
      "@odata.id" : "/redfish/v1/Systems/24/EthernetInterfaces/65"
    } ],
    "LocalDrives" : [ {
      "@odata.id" : "/redfish/v1/Systems/24/Adapters/21/Devices/23"
    } ],
    "RemoteDrives" : [ ],
    "ManagedBy" : [ {
      "@odata.id" : "/redfish/v1/Managers/1"
    } ],
    "Oem" : { }
  },
  "Actions" : {
    "#ComposedNode.Reset" : {
      "target" : "/redfish/v1/Nodes/8/Actions/ComposedNode.Reset",
      "<email address hidden>" : [ "On", "ForceOff", "GracefulShutdown", "GracefulRestart", "ForceRestart" ]
    },
    "#ComposedNode.Assemble" : {
      "target" : "/redfish/v1/Nodes/8/Actions/ComposedNode.Assemble"
    }
  }
}

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
Revision history for this message
Newell Jensen (newell-jensen) wrote :

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.

Changed in maasrsd:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.