openbmc / phosphor-state-manager

Apache License 2.0
11 stars 21 forks source link

Redfish Host Gracefull restart results in phosphor-fan-control@0.service: Failed with result 'signal'. #5

Closed gkeishin closed 2 years ago

gkeishin commented 5 years ago

Test

Boot Host to OS Apply Gracefull Host restart (reboot(

curl -k -H "X-Auth-Token: $bmc_token" -X POST https://${BMC_IP}/redfish/v1/Systems/system/Actions/ComputerSystem.Reset  -d '{"ResetType": "GracefulRestart"}'
{
  "@Message.ExtendedInfo": [
    {
      "@odata.type": "/redfish/v1/$metadata#Message.v1_0_0.Message",
      "Message": "Successfully Completed Request",
      "MessageArgs": [],
      "MessageId": "Base.1.4.0.Success",
      "Resolution": "None",
      "Severity": "OK"
    }
  ]
}
Apr 03 14:41:22 openbmc systemd[1]: Reached target Fan Control Ready.
Apr 03 14:41:23 openbmc phosphor-fan-control[2523]: Empty response from mapper GetSubTree
Apr 03 14:41:23 openbmc phosphor-fan-control[2523]: The operation failed internally.
Apr 03 14:41:23 openbmc phosphor-fan-control[2523]: terminate called after throwing an instance of 'sdbusplus::xyz::openbmc_project::Common::Error::InternalFailure'
Apr 03 14:41:23 openbmc phosphor-fan-control[2523]:   what():  xyz.openbmc_project.Common.Error.InternalFailure: The operation failed internally.
Apr 03 14:41:23 openbmc systemd[1]: phosphor-fan-control@0.service: Main process exited, code=killed, status=6/ABRT
Apr 03 14:41:23 openbmc systemd[1]: phosphor-fan-control@0.service: Failed with result 'signal'.

and it boot up host though.

via REST i dont see those crashing out, so was thinking if there is somewhere in mapping got wrong or not taken into account

curl -k -H "X-Auth-Token: $bmc_token" -X PUT -d '{"data":"xyz.openbmc_project.State.Host.Transition.Reboot"}'  https://$BMC_IP/xyz/openbmc_project/state/host0/attr/RequestedHostTransition
{
  "data": null,
  "message": "200 OK",
  "status": "ok"
}

and boot clean with fan crashing out.

geissonator commented 5 years ago

Can we get the full journal of the failure and of when it works?

gkeishin commented 5 years ago
geissonator commented 2 years ago

On a witherspoon, the graceful restart now maps to a full power cycle of the chassis and reboot of the system which should have resolved this issue.