Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Software Manager - "Error in mapper GetSubTreePath " on factory reset #2698

Closed
cdeadmin opened this issue Dec 1, 2017 · 3 comments
Closed
Assignees

Comments

@cdeadmin
Copy link

cdeadmin commented Dec 1, 2017

cde:info SW408339 </cde:info>

@rfrandse rfrandse changed the title OP910: Software Manager - "Error in mapper GetSubTreePath " on factory reset Software Manager - "Error in mapper GetSubTreePath " on factory reset Dec 1, 2017
@anoo1
Copy link
Contributor

anoo1 commented Dec 1, 2017

After factory reset, the BMC updater process fails to find the chassis inventory needed to create the functional version association. This is due because the inventory was cleared with the factory reset and not re-populated by the time the BMC updater process starts. Need to add a dependency to the service. Journal snippet for reference:

Nov 15 01:06:49 witherspoon systemd[1]: Starting Phosphor BMC Code Update...
Nov 15 01:06:49 witherspoon systemd[1]: Started Wait for /xyz/openbmc_project/inventory.
Nov 15 01:06:52 witherspoon phosphor-gpio-presence[1210]: Updating inventory present property
Nov 15 01:06:52 witherspoon phosphor-gpio-presence[1206]: Updating inventory present property
Nov 15 01:06:52 witherspoon phosphor-image-updater[1161]: Error in mapper GetSubTreePath
Nov 15 01:06:56 witherspoon systemd[1]: Started OpenBMC Software Update Manager.
Nov 15 01:06:56 witherspoon systemd[1]: Starting Phosphor Version Software Manager...
Nov 15 01:06:57 witherspoon systemd[1]: Started Phosphor Version Software Manager.
Nov 15 01:07:00 witherspoon systemd[1]: Started Phosphor BMC Code Update.
Nov 15 01:07:00 witherspoon bmc_update.py[1201]: Running Bmc Flash Control
Nov 15 01:07:06 witherspoon systemd[1]: Started Wait for /xyz/openbmc_project/inventory/system/chassis/power_supply0.
Nov 15 01:07:06 witherspoon systemd[1]: Started Wait for /xyz/openbmc_project/inventory/system/chassis/power_supply1.

@anoo1 anoo1 self-assigned this Dec 1, 2017
@anoo1
Copy link
Contributor

anoo1 commented Dec 1, 2017

After adding service dependency:

Dec 01 22:20:59 witherspoon systemd[1]: Started Phosphor BMC Code Update.
Dec 01 22:21:02 witherspoon systemd[1]: Started Wait for /xyz/openbmc_project/inventory/system/chassis/powersupply0.
Dec 01 22:21:02 witherspoon systemd[1]: Started Wait for /xyz/openbmc_project/inventory/system/chassis/powersupply1.
Dec 01 22:21:02 witherspoon systemd[1]: Started Wait for /xyz/openbmc_project/inventory/system/chassis.
Dec 01 22:21:02 witherspoon systemd[1]: Starting OpenBMC Software Update Manager...

@rfrandse
Copy link

rfrandse commented Dec 2, 2017

https://gerrit.openbmc-project.xyz/8121 Software.BMC.Updater: Wait for chassis inventory
Resolves: #2698 Software Manager - "Error in mapper GetSubTreePath " on factory reset

@rfrandse rfrandse added this to the IBM Milestone 2 milestone Dec 2, 2017
@zahrens zahrens added Phase 8 and removed Phase 7 labels Dec 14, 2017
geissonator pushed a commit to openbmc/meta-openpower that referenced this issue Aug 6, 2018
The BMC updater service searches for the BMC inventory object to
create a version association. The BMC object is created by the
op-vpd-parser, so waiting for this service ensures that the BMC
object is present when the BMC updater service starts.

Add this dependency via a systemd override since the op-vpd-parser
is an openpower package. Witherspoon is the only system that
currently includes this package.

Resolves openbmc/openbmc#2698
Resolves openbmc/openbmc#2494

Change-Id: I869ec8717a6bf22a1f0da19167eb0f186c05014e
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants