Skip to contentSkip to conversation

Fail to start org.openbmc.managers.System.service

DISCUSSION Brad Chou 2 participants 3 messages May 28, 2018 – May 29, 2018 1 message not in the archive

lore
Share & tools
lore

Brad Chou

author
#0 lore raw

Hi all,
I have s problem while start the org.openbmc.managers.System.service
The log says it fail to import obmc.inventory
Then every other service that required org.openbmc.managers.System.service just forced to be stoped. Can anyone tell me what the obmc.inventory is ?
How can I fix this problem ?
Thanks.

May 25 11:20:58 system_manager.py[1015]: Traceback (most recent call last):
May 25 11:20:58 system_manager.py[1015]:   File "/usr/sbin/system_manager.py", line 15, in <module>
May 25 11:20:58 system_manager.py[1015]:     import obmc.inventory
May 25 11:20:58 system_manager.py[1015]: ImportError: No module named inventory
May 25 11:20:59 systemd[1]: org.openbmc.managers.System.service: Main process exited, code=exited, status=1/FAILURE
May 25 11:20:59 systemd[1]: Failed to start Phoshpor System Manager.
May 25 11:20:59 systemd[1]: org.openbmc.managers.System.service: Unit entered failed state.
May 25 11:20:59 systemd[1]: org.openbmc.managers.System.service: Failed with result 'exit-code'.
author
#2 lore raw
In reply to a message not in the archive

Hi George,
I have tried your suggestion, but the problem doesn’t fix.
And just noticed a commit here:
https://github.com/openbmc/skeleton/commit/f6e918e4e05e94d0eaafa97c6c31d47ae5b1bf49#diff-b07a6297d344f5bbff9249965d0e8e3c <https://github.com/openbmc/skeleton/commit/f6e918e4e05e94d0eaafa97c6c31d47ae5b1bf49#diff-b07a6297d344f5bbff9249965d0e8e3c>
https://gerrit.openbmc-project.xyz/#/c/9737/3/pysystemmgr/system_manager.py <https://gerrit.openbmc-project.xyz/#/c/9737/3/pysystemmgr/system_manager.py>

Looks like the obmc.inventory can be removed, but has some other problems on Witherspoon. After removed this commit, the org.openbmc.managers.System.service start working good. But I am not sure if this is a correct way to fix it.

Thanks.

Quoted 56 lines · George Keishing

Brad,

Not sure if this would help. Probably previous build left over, try this

Login to BMC

cd /var/lib/

root@witherspoon:/var/lib# ls
dropbear                    obmc                        phosphor-inventory-manager  phosphor-settings-manager   phosphor-state-manager
machines                    phosphor-debug-collector    phosphor-logging            phosphor-software-manager   systemd
root@witherspoon:/var/lib#
root@witherspoon:/var/lib# rm -rf phosphor-inventory-manager phosphor-settings-manager phosphor-state-manager

Reboot BMC

Thanks and Regards,
George Keishing
IBM Systems &Technology Lab, Firmware Development,
“There isn't enough time in a day to be lazy!!! .” <Mail Attachment.jpeg>

From:        Brad Chou <[email protected]>
To:        [email protected]
Date:        05/28/2018 03:34 PM
Subject:        Fail to start org.openbmc.managers.System.service
Sent by:        "openbmc" <[email protected]>

Hi all,
I have s problem while start the org.openbmc.managers.System.service
The log says it fail to import obmc.inventory
Then every other service that required org.openbmc.managers.System.service just forced to be stoped. Can anyone tell me what the obmc.inventory is ?
How can I fix this problem ?
Thanks.

May 25 11:20:58 system_manager.py[1015]: Traceback (most recent call last):
May 25 11:20:58 system_manager.py[1015]:   File "/usr/sbin/system_manager.py", line 15, in <module>
May 25 11:20:58 system_manager.py[1015]:     import obmc.inventory
May 25 11:20:58 system_manager.py[1015]: ImportError: No module named inventory
May 25 11:20:59 systemd[1]: org.openbmc.managers.System.service: Main process exited, code=exited, status=1/FAILURE
May 25 11:20:59 systemd[1]: Failed to start Phoshpor System Manager.
May 25 11:20:59 systemd[1]: org.openbmc.managers.System.service: Unit entered failed state.
May 25 11:20:59 systemd[1]: org.openbmc.managers.System.service: Failed with result 'exit-code'.
#3 lore raw
In reply to Brad Chou
Quoted 6 lines · Brad Chou

Hi all,
I have s problem while start the org.openbmc.managers.System.service
The log says it fail to import obmc.inventory
Then every other service that required org.openbmc.managers.System.service just forced to be stoped. Can anyone tell me what the obmc.inventory is ?
How can I fix this problem ?

This inventory module comes from
https://github.com/openbmc/skeleton/tree/master/pyinventorymgr

I believe all you need to do is ensure you bring in this recipe when you build your image:
https://github.com/openbmc/openbmc/blob/master/meta-phosphor/common/recipes-phosphor/chassis/obmc-mgr-inventory.bb

Your image should then have the inventory module:
ls /usr/lib/python2.7/site-packages/obmc/

__init__.py   __init__.pyc  dbuslib       enums.py      enums.pyc
inventory     mapper        sensors.py    sensors.pyc   system
utils         wsgi
Quoted 10 lines

Thanks.

May 25 11:20:58 system_manager.py[1015]: Traceback (most recent call last):
May 25 11:20:58 system_manager.py[1015]:   File "/usr/sbin/system_manager.py", line 15, in <module>
May 25 11:20:58 system_manager.py[1015]:     import obmc.inventory
May 25 11:20:58 system_manager.py[1015]: ImportError: No module named inventory
May 25 11:20:59 systemd[1]: org.openbmc.managers.System.service: Main process exited, code=exited, status=1/FAILURE
May 25 11:20:59 systemd[1]: Failed to start Phoshpor System Manager.
May 25 11:20:59 systemd[1]: org.openbmc.managers.System.service: Unit entered failed state.
May 25 11:20:59 systemd[1]: org.openbmc.managers.System.service: Failed with result 'exit-code'.