Phosphor-host-check failing when running sdbus commands

Brandon Ong Brandon.Ong at fii-na.com
Wed May 12 00:38:43 AEST 2021


Hi All,

This is the issue I encountered and I'm still stuck on..

Using journalctl -u phosphor-reset-host-check at 0.service<mailto:phosphor-reset-host-check at 0.service>

Apr 28 23:28:18 kudo systemd[1]: Starting Check Host0 status on BMC reset...
Apr 28 23:28:20 kudo phosphor-host-check[973]: Check if host is running
Apr 28 23:28:20 kudo phosphor-host-check[973]: Error in mapper call for control host, use default service
Apr 28 23:28:25 kudo phosphor-host-check[973]: Error in call to control host Execute
Apr 28 23:28:25 kudo phosphor-host-check[973]: terminate called after throwing an instance of 'sdbusplus::exception::SdBusError'
Apr 28 23:28:25 kudo phosphor-host-check[973]:   what():  sd_bus_call: org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable
Apr 28 23:28:33 kudo systemd[1]: phosphor-reset-host-check at 0.service<mailto:phosphor-reset-host-check at 0.service>: Main process exited, code=dumped, status=6/ABRT
Apr 28 23:28:33 kudo systemd[1]: phosphor-reset-host-check at 0.service<mailto:phosphor-reset-host-check at 0.service>: Failed with result 'core-dump'.
Apr 28 23:28:33 kudo systemd[1]: Failed to start Check Host0 status on BMC reset.

phosphor-host-check[973]: Error in mapper call for control host, use default service

We tried to run the command manually:
busctl call xyz.openbmc_project.ObjectMapper /xyz/openbmc_project/object_mapper xyz.openbmc_project.ObjectMapper GetObject sas "/xyz/openbmc_project/control/host0" 1 "xyz.openbmc_project.Control.Host"

The response was the correct response.
a{sas} 1 "xyz.openbmc_project.Control.Host" 4 "org.freedesktop.DBus.Introspectable" "org.freedesktop.DBus.Peer" "org.freedesktop.DBus.Properties" "xyz.openbmc_project.Control.Host"

Next, we tried to run the phosphor-host-check

root at kudo:~# phosphor-host-check
xyz.openbmc_project.Control.Host.Command.Heartbeat
Test
terminate called after throwing an instance of 'sdbusplus::exception::SdBusError'
  what():  sd_bus_call: org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable
Aborted (core dumped)

The issue still is that when phosphor-host-check fails when it is running the sdbus command
https://github.com/openbmc/phosphor-state-manager/blob/master/host_check_main.cpp#L74-L84

Thanks,
Brandon




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20210511/fefb80d3/attachment.htm>


More information about the openbmc mailing list