summaryrefslogtreecommitdiffstats
path: root/meta-phosphor/common/recipes-phosphor/state
Commit message (Collapse)AuthorAgeFilesLines
* state-manager: Favor ALLOW_EMPTYBrad Bishop2018-05-231-4/+2
| | | | | | | | | | | | A number of recipes remove PN from the package list. While this seems to work it is unconventional and puts us into dusty corners of oe-core/bitbake. Adopt a more conventional approach with ALLOW_EMPTY_${PN} = "1". Tested: Built phosphor-state-manager and validated package contents Change-Id: Ic52764ba9e716a7ce5c1fd8d6c7fd419ef985ac2 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* phosphor-state-manager.bb: bump versionAndrew Geissler2018-05-121-1/+1
| | | | | Change-Id: Ieaba61f9753d76aa5c19552047b389822ce26493 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* Reset host reboot attempts on fresh bootAndrew Geissler2018-04-062-0/+20
| | | | | | | | | | | | | | | | | | | The host reboot attempts counter is used to ensure the host is only allowed a certain amount of retries to boot for any given boot request. The count should be reset, and the host should be given it's full amount of tries, on any fresh boot request. This commit puts a service into the host-start target which is only called on a fresh boot request. Tested: Verified this new service is run on fresh boot requests and is not run on host reboot requests. Resolves openbmc/openbmc#3035 Change-Id: I4be327e57d6f835b19e47272ceaad796196b68c5 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* Introduce new host-startmin action targetAndrew Geissler2018-04-062-3/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requirements have arisen for OpenBMC firmware to run certain services only during fresh power on operations. To achieve that, break the obmc-host-start action target into two targets. The existing obmc-host-start target will now call the new obmc-host-startmin target. The startmin target will be the minimum services required to start the host. The obmc-host-start target is where services that should only be called during a fresh power on can be placed. The initial use case for this is the obmc-host-reboot target. It will call this new obmc-host-startmin target to do the bare minimum on a reboot operation. This then allows the use case for OpenBMC to only reset the host reboot count on a fresh power on operation. A new service will be added to the obmc-host-start target to do this. If a reboot operation is issued, or a host watchdog is triggered to cause a reboot, this service would not be started, ensuring the reboot count is properly decremented. Tested: Verified on/off/reboot and ran CT regression suite. https://gerrit.openbmc-project.xyz/#/c/9821/ is required for reboots to work properly. Change-Id: I86df03e6d671178c1525f852e196c4102bb73cb6 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* Make host-check a part of host state functionAndrew Geissler2018-03-151-3/+7
| | | | | | | | | In the previous review it was noted that it didn't make much sense for host-check to be it's own provided function in OpenBMC. It's more of a recommended piece of the base host state function. Change-Id: I024472e96ea00f411e8348e0221c210f84700019 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* Reset boot progress and OS status sensors after rebootDhruvaraj Subhashchandran2018-03-142-1/+33
| | | | | | | | | | Reset boot progress and OS status sensors if host is not running Resolves openbmc/openbmc#2804 Change-Id: I1fee2bf7776ae957e87452d9cfa7a4fca647b46f Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
* phosphor-state-manager.bb: bump versionAndrew Geissler2018-03-061-1/+1
| | | | | Change-Id: Ic4ccebc7c809f051f702821b9c69c3c2c20c7117 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* Keep fan services running until poweroff completesMatthew Barth2018-03-011-1/+6
| | | | | | | | | | | | | | | | | All the fan services associated with controlling, monitoring and presence detection of fans need to remain active until a poweroff completes. This helps ensure thermal safety while a system is in transition to a powered off state. With the introduction of this new target (which runs last in the power off path), need to move the host reset service to running after it to ensure the power on in the reboot path does not start until the last power off target runs. Resolves openbmc/openbmc#2762 Change-Id: I4ca671d2c7de66e8bfa4bba607b06c88c0a6e7f9 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
* phosphor-state-manager.bb: bump versionAndrew Geissler2018-02-251-1/+1
| | | | | Change-Id: I0af4c371889fa24b1d932cd196eb69bd8f510af9 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* phosphor-state-manager.bb: bump versionAndrew Geissler2017-10-311-1/+1
| | | | | Change-Id: I355e43ea7b5308f0b56dc95b948249f583be7509 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* phosphor-state-manager.bb: bump versionAndrew Geissler2017-10-111-1/+1
| | | | | Change-Id: I7c19bb244e4b9a37985f04902908cc1ee48d5069 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* phosphor-state-manager.bb: bump versionPatrick Williams2017-09-271-1/+1
| | | | | Change-Id: Ic30c74794860dd7701029c9c455d0f639fad45a2 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* phosphor-state-manager.bb: bump versionPatrick Williams2017-09-271-1/+1
| | | | | Change-Id: If3da1168d0546d194f7b8c3b44ca65a6672b8ebd Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* phosphor-state-manager.bb: bump versionPatrick Williams2017-09-251-1/+1
| | | | | Change-Id: I169ef6129cb3ea61a0d0fa77664ab59652026d9d Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* phosphor-state-manager.bb: bump versionPatrick Williams2017-09-081-1/+1
| | | | | Change-Id: I19a3a9fe13379a637d91782fdfb4ef83c557e5c4 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* Don't apply restore policy if system is onAndrew Geissler2017-08-241-0/+1
| | | | | | | | | | | | If the BMC was rebooted while the chassis power was on then we want the BMC to update it's targets to reflect this and leave the system as-is. This also applies if the host is running. Resolves openbmc/openbmc#2180 Change-Id: Ib9c067d79368db749fd65d050132d15ad793fdbf Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Enable BMC patching from the /usr/local pathMichael Tritz2017-08-245-6/+10
| | | | | | | | | | | | | | | | | This commit enables patches from the /usr/local path by replacing absolute paths to /usr/sbin or /usr/bin in every service file with "/usr/bin/env ". Additionally, SyslogIdentifier is added to each file to ensure that journal entries are still distinct. In two cases, service files also had to change due to references to ${{PATH}}, which doesn't work with /usr/bin/env. These references - and the corresponding definitions - were changed to ${{DEVPATH}}. Resolves openbmc/openbmc#2149 Change-Id: I12c5c6e5101eef6820b985a563313836250ff2c7 Signed-off-by: Michael Tritz <mtritz@us.ibm.com>
* phosphor-state-manager.bb: bump versionPatrick Williams2017-08-231-1/+1
| | | | | Change-Id: I19622dd6e14d0a5789bd591577d12a81542d672e Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* phosphor-state-manager.bb: bump versionPatrick Williams2017-08-181-1/+1
| | | | | Change-Id: Iddbdf16ca0e13b9edc8055b85137037108c2970c Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* phosphor-state-manager.bb: bump versionPatrick Williams2017-08-121-1/+1
| | | | | Change-Id: Idae0a17983a97a9ca1e8469d38e098f49904eaf1 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* Ensure applications wait for reset servicesAndrew Geissler2017-08-092-0/+2
| | | | | | | | | | | | | | | When a BMC reboot occurs with the host running, need to ensure the reset targets and services run before we start other application that depend on whether the host is running Specifically, don't start phosphor-host-state-manager until it's been determined if the host is up. Don't start phosphor-discover-system-state until the state of the chassis is known. Change-Id: I458fa78802cd9ecca99c54834512bfebf04b5012 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Add in new host reboot targetAndrew Geissler2017-08-032-0/+25
| | | | | | | | | | | | | | | | | | | | The state management code on the BMC is designed to utilize systemd targets as much as possible. The host reboot was always the odd duck that had some special code written to support it. This special code would basically issue a power off, look for it to complete and then issue a power on. This is very error prone code and has resulted in a few issues. Moving to a single systemd target (the new reboot target) defined here will allow the host reboots to occur solely through a single systemd target now. openbmc/openbmc#2032 is one of those bugs being addressed with this change. Change-Id: If33454aa4f15580e45f888a9b1602dec24a46fca Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* phosphor-state-manager.bb: bump versionPatrick Williams2017-08-021-1/+1
| | | | | Change-Id: I5d98c78718269ae06fadf6459d1f34f0a6166be2 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* phosphor-state-manager.bb: bump versionPatrick Williams2017-08-011-1/+1
| | | | | Change-Id: I8d8669badd13b7fc9eddf361ca1c7dca23eaa611 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* Add dependency on settings D-Bus objectsDeepak Kodihalli2017-08-012-2/+4
| | | | | Change-Id: I0e7e84f191f6a466b0f84c6d4f490816331f141f Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* phosphor-state-manager.bb: bump versionPatrick Williams2017-07-281-1/+1
| | | | | Change-Id: I32e48e199f7220418fd91e4be294963b4b4da6af Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* phosphor-state-manager.bb: bump versionPatrick Williams2017-07-241-1/+1
| | | | | Change-Id: I36dea72d069f53904fb244201bedc834f51fe6db Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* Implement new hard power off targetAndrew Geissler2017-07-211-5/+5
| | | | | | | | | | | | | | | This target will allow the user to do an immediate power off of the system without waiting for the host. It can also be used to cause an immedate power off if the host is hung during the normal power off process. The chassis poweroff target will now require the host off target to ensure everything is properly stopped when the chassis is powered off. Change-Id: I8430d895ae5498d2e451aaf07480b0cf9550e8f2 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* phosphor-state-manager: add depends on CerealDhruvaraj Subhashchandran2017-07-181-0/+1
| | | | | Change-Id: I11f7b633d8eea82eb179ec9496623ff4ba43909a Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
* phosphor-state-manager.bb: bump versionPatrick Williams2017-07-061-1/+1
| | | | | Change-Id: I63529297e8f588d7cfe3e44b4d07cbbf79e2ebf0 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* phosphor-state-manager.bb: bump versionPatrick Williams2017-06-061-1/+1
| | | | | Change-Id: Icb8eac9aed391324a61f4f1f81400c16c7c572a6 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* Ensure host-shutdown target calls the host-stop targetAndrew Geissler2017-06-031-0/+7
| | | | | | | | | As a part of the soft power off (host-shutdown) ensure that the host-stop target always gets called. Updated the involved services to ensure they are run in the correct order. Change-Id: I7e9113631786f0d0cb0f89b94c4b97fdc0328e7b Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* phosphor-state-manager.bb: bump versionPatrick Williams2017-06-021-1/+1
| | | | | Change-Id: I80065445998eb8f3317aa1b423540a2971dc39f0 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* phosphor-state-manager.bb: bump versionPatrick Williams2017-05-241-1/+1
| | | | | Change-Id: Id6b0723b54c5462037722b63f9fa783cf4f07256 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* phosphor-state-manager.bb: bump versionPatrick Williams2017-05-241-1/+1
| | | | | Change-Id: I4d391dc3c0c64bf333caeb9345e1c9e237e0316e Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* Conflict with host-stop target vs. host-shutdownAndrew Geissler2017-05-191-1/+1
| | | | | | | | | The obmc-host-stop@.target will always be called on host shutdowns but the inverse is not always true. This commit ensures everything conflicts with the target that is always called in this path. Change-Id: Ic680ef96b1d6e2aec844a9c619928b7014fe7450 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* phosphor-state-manager.bb: bump versionPatrick Williams2017-05-191-1/+1
| | | | | Change-Id: Ie53ca12feea48b00120f946a7f6447f6f5878178 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* phosphor-state-manager.bb: bump versionPatrick Williams2017-05-181-1/+1
| | | | | Change-Id: I6999283b12f0c2eccb1d6e17514e6323cd9452cc Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* phosphor-state-manager.bb: bump versionPatrick Williams2017-05-111-1/+1
| | | | | Change-Id: I14c56f484f3cd2a36d99867e2c560b261c3ffeca Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* Add phosphor-host-check and required host servicesAndrew Geissler2017-05-093-1/+60
| | | | | | | | This application and services will be used by the host reset service to determine if the host is running after a BMC has been rebooted Change-Id: I8299546b0f275ebbb46aa775ab7b0633cc3fd5e0 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Recipe for phosphor-discover-system-stateMichael Tritz2017-05-052-3/+23
| | | | | | | | | | | | This recipe will add the new program phosphor-discover-system-state to new builds. Additionally, the old Python state manager is removed from the build since discover_system_state.py was the last thing in it. Resolves openbmc/openbmc#773 Change-Id: I99ba0f1f0264cedebc5a9a7e5fa5dbaba0b79502 Signed-off-by: Michael Tritz <mtritz@us.ibm.com>
* phosphor-state-manager.bb: bump versionPatrick Williams2017-04-201-1/+1
| | | | | Change-Id: If7932b779f5de30827d603f62e96064aaf0b5c7c Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* Refactor action target names Power-on-offJosh D. King2017-04-201-1/+1
| | | | | | | | | | | | The target change is: obmc-power-chassis-on -> obmc-chassis-poweron obmc-power-chassis-off -> obmc-chassis-poweroff Also updated phosphor-state-manager.bb to now have correct commit id. Change-Id: I15aae803e5f0d44d4e6a137278f93e91f848b2c0 Signed-off-by: Josh D. King <jdking@us.ibm.com>
* phosphor-state-manager: split phosphor-discover-system-stateMichael Tritz2017-04-191-1/+5
| | | | | | | | | Add new phosphor-discover-system-state executable into its own package. This follows the pattern of state-manager overall. Change-Id: I9b592f967f44f121cf739300f154fac182a31cdf Signed-off-by: Michael Tritz <mtritz@us.ibm.com> Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* Move object_mapper per dbus path conventions.Patrick Williams2017-03-201-1/+1
| | | | | | | | | | | | | | | | | | phosphor-fan-presence.bb: bump version phosphor-inventory-manager.inc: bump version phosphor-ipmi-host.bb: bump version skeleton-rev.bbclass: bump version phosphor-led-manager.inc: bump version phosphor-mapper.bb: bump version phosphor-ipmi-fru.inc: bump version phosphor-state-manager.bb: bump version phosphor-logging.bb: bump version openpower-fru-vpd.inc: bump version Resolves openbmc/openbmc#1112. Change-Id: Iaf32b0e828dc4f2da021eae9b8e1d440042841d8 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* phosphor-state-manager.bb: bump versionPatrick Williams2017-03-201-1/+1
| | | | | Change-Id: Iebd7ec1e144e24e99d7753a55beb376cd2d70f12 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* image: Use VIRTUAL-RUNTIME for state pkgsBrad Bishop2017-03-061-6/+0
| | | | | | | | | | | | The correct idiom for modeling runtime only virtual implementations with no build time API is to use VIRTUAL-RUNTIME in favor of PREFERRED_PROVIDER. Update the state management management applications accordingly since they fall into this category. Change-Id: I8f0092a38da4ea0741dd0f464b71f4ea12d12019 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* phosphor-state-manager.bb: bump versionPatrick Williams2017-03-021-1/+1
| | | | | Change-Id: Ic97e057d9d8890dc7796feb1bc270a7e46a6a2f7 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* state: remove ${PN} pkgBrad Bishop2017-03-021-0/+4
| | | | | | | | | | | By default OE adds ${PN} as a runtime dependency to ${PN}-[static]dev Remove ${PN} since it will never have any content. Additionally, override the default ${PN}-[static]dev dependencies with the correct pkgs. Change-Id: I7c5a49a5cdd453cc23eb2595cc53455659040062 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* phosphor-state-manager.bb: bump versionPatrick Williams2017-02-241-1/+1
| | | | | Change-Id: I96a8287ca558a876ae431dacea55291ad4fc2239 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
OpenPOWER on IntegriCloud