* Re: Fail to start org.openbmc.managers.System.service
@ 2018-05-30 2:30 張漢彬
2018-05-30 2:56 ` Lei YU
0 siblings, 1 reply; 8+ messages in thread
From: 張漢彬 @ 2018-05-30 2:30 UTC (permalink / raw)
To: openbmc
[-- Attachment #1: Type: text/plain, Size: 1074 bytes --]
>
> 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
Hi Andrew,
I could bitbake build the obmc-mgr-inventory recipe and find the
obmc/inventory in the source path of obmc-mgr-inventory.
ls pyinventorymgr/
build inventory_items.py Makefile obmc setup.cfg setup.py
sync_inventory_items.py
ls pyinventorymgr/obmc/
inventory
But I still couldn't see the inventory in the path
ls /usr/lib/python2.7/site-packages/obmc/
dbuslib enums.py enums.pyc __init__.py __init__.pyc mapper
sensors.py sensors.pyc system utils wsgi
What may I miss?
Thanks.
[-- Attachment #2: Type: text/html, Size: 9035 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Fail to start org.openbmc.managers.System.service
2018-05-30 2:30 Fail to start org.openbmc.managers.System.service 張漢彬
@ 2018-05-30 2:56 ` Lei YU
2018-05-30 5:34 ` Henbin Chang
0 siblings, 1 reply; 8+ messages in thread
From: Lei YU @ 2018-05-30 2:56 UTC (permalink / raw)
To: 張漢彬; +Cc: OpenBMC Maillist
[-- Attachment #1: Type: text/plain, Size: 1621 bytes --]
It looks like your build is missing the `pyinventorymgr`
A quick check:
1. It comes from obmc-mgr-inventory.bb;
2. This recipe is added by packagegroup-obmc-apps.bbappend in meta-openpower
layer, with openpower distro feature:
RDEPENDS_${PN}-inventory_append_df-openpower = " obmc-mgr-inventory"
Since you are missing this recipe, I guess your build is not openpower?
On Wed, May 30, 2018 at 10:30 AM, 張漢彬 <henbinchang@gmail.com> wrote:
> 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
>
>
> Hi Andrew,
>
> I could bitbake build the obmc-mgr-inventory recipe and find the
> obmc/inventory in the source path of obmc-mgr-inventory.
>
> ls pyinventorymgr/
> build inventory_items.py Makefile obmc setup.cfg setup.py
> sync_inventory_items.py
> ls pyinventorymgr/obmc/
> inventory
>
> But I still couldn't see the inventory in the path
> ls /usr/lib/python2.7/site-packages/obmc/
> dbuslib enums.py enums.pyc __init__.py __init__.pyc mapper
> sensors.py sensors.pyc system utils wsgi
>
> What may I miss?
>
> Thanks.
>
[-- Attachment #2: Type: text/html, Size: 9637 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Fail to start org.openbmc.managers.System.service
2018-05-30 2:56 ` Lei YU
@ 2018-05-30 5:34 ` Henbin Chang
2018-05-30 5:44 ` Lei YU
0 siblings, 1 reply; 8+ messages in thread
From: Henbin Chang @ 2018-05-30 5:34 UTC (permalink / raw)
To: Lei YU; +Cc: OpenBMC Maillist
[-- Attachment #1: Type: text/plain, Size: 718 bytes --]
>
> It looks like your build is missing the `pyinventorymgr`
> A quick check:
> 1. It comes from obmc-mgr-inventory.bb;
> 2. This recipe is added by packagegroup-obmc-apps.bbappend in
> meta-openpower
> layer, with openpower distro feature:
> RDEPENDS_${PN}-inventory_append_df-openpower = " obmc-mgr-inventory"
> Since you are missing this recipe, I guess your build is not openpower?
Thanks for your response.
Yes, my build is x86 not opeppower.
I tried to add the line into
*meta-common/recipes-phosphor/packagegroups/packagegroup-obmc-apps.bbappend.*
RDEPENDS_${PN}-inventory_append_df-openpower = " obmc-mgr-inventory"
But I still couldn't find the inventory in
the /usr/lib/python2.7/site-packages/obmc/
[-- Attachment #2: Type: text/html, Size: 2326 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Fail to start org.openbmc.managers.System.service
2018-05-30 5:34 ` Henbin Chang
@ 2018-05-30 5:44 ` Lei YU
2018-05-30 6:08 ` Henbin Chang
0 siblings, 1 reply; 8+ messages in thread
From: Lei YU @ 2018-05-30 5:44 UTC (permalink / raw)
To: Henbin Chang; +Cc: OpenBMC Maillist
On Wed, May 30, 2018 at 1:34 PM, Henbin Chang <henbinchang@gmail.com> wrote:
>>
>> It looks like your build is missing the `pyinventorymgr`
>> A quick check:
>> 1. It comes from obmc-mgr-inventory.bb;
>> 2. This recipe is added by packagegroup-obmc-apps.bbappend in meta-openpower
>> layer, with openpower distro feature:
>> RDEPENDS_${PN}-inventory_append_df-openpower = " obmc-mgr-inventory"
>> Since you are missing this recipe, I guess your build is not openpower?
>
>
> Thanks for your response.
> Yes, my build is x86 not opeppower.
>
> I tried to add the line into meta-common/recipes-phosphor/packagegroups/packagegroup-obmc-apps.bbappend.
> RDEPENDS_${PN}-inventory_append_df-openpower = " obmc-mgr-inventory"
>
The "_append_df-openpower" means this is valid only when openpower
distro feature is enabled.
You are on x86 build so there is not openpower distro feature, so you
still do not get this recipe.
You can remove "_append_df-openpower" and it should work.
> But I still couldn't find the inventory in the /usr/lib/python2.7/site-packages/obmc/
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Fail to start org.openbmc.managers.System.service
2018-05-30 5:44 ` Lei YU
@ 2018-05-30 6:08 ` Henbin Chang
0 siblings, 0 replies; 8+ messages in thread
From: Henbin Chang @ 2018-05-30 6:08 UTC (permalink / raw)
To: Lei YU; +Cc: OpenBMC Maillist
[-- Attachment #1: Type: text/plain, Size: 302 bytes --]
>
> The "_append_df-openpower" means this is valid only when openpower
> distro feature is enabled.
> You are on x86 build so there is not openpower distro feature, so you
> still do not get this recipe.
> You can remove "_append_df-openpower" and it should work.
It did work.
Thanks for your help.
[-- Attachment #2: Type: text/html, Size: 2669 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Fail to start org.openbmc.managers.System.service
2018-05-28 10:02 Brad Chou
[not found] ` <OF3B2252E3.FE6C041B-ON0025829B.00434D62-6525829B.0043BF4E@notes.na.collabserv.com>
@ 2018-05-29 12:52 ` Andrew Geissler
1 sibling, 0 replies; 8+ messages in thread
From: Andrew Geissler @ 2018-05-29 12:52 UTC (permalink / raw)
To: Brad Chou; +Cc: OpenBMC Maillist
On Mon, May 28, 2018 at 5:02 AM, Brad Chou <chou.brad@gmail.com> wrote:
> 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
> 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'.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Fail to start org.openbmc.managers.System.service
[not found] ` <OF3B2252E3.FE6C041B-ON0025829B.00434D62-6525829B.0043BF4E@notes.na.collabserv.com>
@ 2018-05-29 11:27 ` Brad Chou
0 siblings, 0 replies; 8+ messages in thread
From: Brad Chou @ 2018-05-29 11:27 UTC (permalink / raw)
To: George Keishing; +Cc: openbmc
[-- Attachment #1: Type: text/plain, Size: 3000 bytes --]
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.
> On May 28, 2018, at 20:19, George Keishing <gkeishin@in.ibm.com> wrote:
>
> 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 <chou.brad@gmail.com>
> To: openbmc@lists.ozlabs.org
> Date: 05/28/2018 03:34 PM
> Subject: Fail to start org.openbmc.managers.System.service
> Sent by: "openbmc" <openbmc-bounces+gkeishin=in.ibm.com@lists.ozlabs.org>
>
>
>
> 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'.
>
>
>
[-- Attachment #2: Type: text/html, Size: 6803 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Fail to start org.openbmc.managers.System.service
@ 2018-05-28 10:02 Brad Chou
[not found] ` <OF3B2252E3.FE6C041B-ON0025829B.00434D62-6525829B.0043BF4E@notes.na.collabserv.com>
2018-05-29 12:52 ` Andrew Geissler
0 siblings, 2 replies; 8+ messages in thread
From: Brad Chou @ 2018-05-28 10:02 UTC (permalink / raw)
To: openbmc
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'.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2018-05-30 6:08 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-30 2:30 Fail to start org.openbmc.managers.System.service 張漢彬
2018-05-30 2:56 ` Lei YU
2018-05-30 5:34 ` Henbin Chang
2018-05-30 5:44 ` Lei YU
2018-05-30 6:08 ` Henbin Chang
-- strict thread matches above, loose matches on Subject: below --
2018-05-28 10:02 Brad Chou
[not found] ` <OF3B2252E3.FE6C041B-ON0025829B.00434D62-6525829B.0043BF4E@notes.na.collabserv.com>
2018-05-29 11:27 ` Brad Chou
2018-05-29 12:52 ` Andrew Geissler
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.