diff options
author | Andrew Geissler <geissonator@yahoo.com> | 2022-06-02 20:58:27 +0300 |
---|---|---|
committer | Andrew Geissler <andrew@geissonator.com> | 2022-07-18 20:59:43 +0300 |
commit | b06a346e01cd963abccec9f5533e1da5dbd46c47 (patch) | |
tree | da2c735d23172e3eb5ca80c0a3316f00567775c6 /meta-ibm/recipes-phosphor/ipmi | |
parent | c525de7548f88a792c68259bbf459623aabd92db (diff) | |
download | openbmc-b06a346e01cd963abccec9f5533e1da5dbd46c47.tar.xz |
meta-openpower:op-occ-disable: remove wants on synch target
openbmc/phosphor-state-manager#21 highlights an architecture issue with
OpenBMC's use of synchronization targets. When a service, such as
op-occ-disable@.service, runs both in a standard power off target,
as well as in other paths (like the host quiesce path), there is an
issue.
The service starts the synchronization targets in the quiesce path and
this causes them to already be running on the power off, resulting in
the synchronization targets not actually coordinating the power off.
The direction this commit takes OpenBMC is that if a service needs to
run outside of the standard power on or off path, then they can not
have a Wants or Requires clause in the service file.
The following commit was done a while back to address this issue:
https://gerrit.openbmc.org/c/openbmc/phosphor-state-manager/+/40026
That is that we ensure the primary power on and off targets start the
synchronization targets so services requiring them can just use a
Before or After clause.
The piece that was never done was to go and fix the services which fell
into this bucket.
Add an explicit dependency on the stop-instructions service to ensure
that this service is always run before it when they are both started
at the same time. This just provides an extra level of protection to
ensure we never stop host instructions before disabling occ
monitoring.
Tested:
- Did multiple boots, reboots, and host crash tests and saw no issues
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: I6c8c32a605216c0c3dc2065f7c09236d2c216720
Diffstat (limited to 'meta-ibm/recipes-phosphor/ipmi')
0 files changed, 0 insertions, 0 deletions