summaryrefslogtreecommitdiffstats
path: root/host_state_manager.hpp
Commit message (Collapse)AuthorAgeFilesLines
* Apply clang code format to this state repoAndrew Geissler2018-01-251-220/+211
| | | | | Change-Id: I232af39d8ded90fa3eb37b74d1435ddbf19fffb1 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* Enable Cereal class versioningVishwanatha Subbanna2017-10-061-2/+7
| | | | | | | | | | | | Cereal class versioning helps to handle data de-serialization across different class versions that differ in the way, a particular data is serialized. For more reading, refer Cereal official documentation; http://uscilab.github.io/cereal/serialization_functions.html Change-Id: Ic5d01090b7a7679ef2bf638da786abbd033007bc Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Add persistancy for boot progress and os statusDhruvaraj Subhashchandran2017-09-271-4/+24
| | | | | | | Resolves openbmc/openbmc#2181 Change-Id: I807dd94efcea1118060f8594c7f69e333a3ea682 Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
* Move all restore state policy into discover_stateAndrew Geissler2017-09-051-6/+56
| | | | | | | | | | | | | | | | Doing this so the host state code can set it's requested host transition state without calling the override function. Need to initialize it to the persisted cereal value but not act on it. The phosphor_discover_state application will ensure the appropriate action is taken based on the system state and the persisted value of the last requested host state. Resolves openbmc/openbmc#2210 Change-Id: I7bef12fe314c7dfe137494fd46ddb35309063fc5 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Decrement reboot counter on all boot attemptsAndrew Geissler2017-08-161-0/+35
| | | | | | | | | | | | | | OpenBMC will control the default amount of boot attemps allowed on systems. If an external entity requests to set the boot count, it will be treated as a command to reset the boot count to the OpenBMC configured default. Resolves openbmc/openbmc#1676 Resolves openbmc/openbmc#1646 Change-Id: I7d03272d174685a72e1bdff4d7e2142fc69b7edf Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Implementation of OS status, boot count and boot progressDhruvaraj Subhashchandran2017-08-011-8/+11
| | | | | Change-Id: I1b00a932db2533b83fa0bd7bb4fbd62c0299bff7 Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
* host: auto_reboot: switch to new settings APIDeepak Kodihalli2017-07-271-1/+6
| | | | | Change-Id: Ic65a6dab922ef08e68205d4e16bb849baff353c4 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* Persist user requested host stateDhruvaraj Subhashchandran2017-07-271-0/+6
| | | | | | | Resolves openbmc/openbmc#1785 Change-Id: I5f23ce50dc357489c7b7eece8bab3bfd6a61ffae Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
* host: use latest sdbusplus match APIsPatrick Williams2017-05-111-31/+20
| | | | | Change-Id: Iec0ae14c49c07568110bdebeaa0505db40d92540 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* Add journal entry for BOOTCOUNTSaqib Khan2017-05-051-0/+7
| | | | | | | | | | Update the jounal entry in the host state code to indicate we may have hit the HOST BOOTCOUNT. Resolves openbmc/openbmc#1424 Change-Id: I2bfd73f6051efb408eb4c683cebe95fda4700859 Signed-off-by: Saqib Khan <khansa@us.ibm.com>
* Remove Hosts power on messages when powering offJosh D. King2017-04-171-0/+12
| | | | | | | | | | | Currently Host state services show incorrect states when a target exits. To fix this, a bus call is used on the target to determine its ActiveState. Doing that helps to determine if the target is already powered on and is now powering down. Change-Id: Id91dc8156308372fc1649526a7b6dedee94eeb01 Signed-off-by: Josh D. King <jdking@us.ibm.com>
* State manager auto-reboot logic for quiesce stateMichael Tritz2017-02-201-0/+8
| | | | | | | | | | These changes will add logic to state manager so that, when the system reaches quiesce state, it will either reboot or not, per the user preference. Change-Id: I72952cd9528620fabeb499109e3790298fdd976b Signed-off-by: Michael Tritz <mtritz@us.ibm.com>
* Use systemd targets to track host statesAndrew Geissler2017-02-011-20/+46
| | | | | Change-Id: I5ab174d945c1dfb265a02f9095d3eaeb0ba562db Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Process system state changesAndrew Geissler2017-01-091-1/+22
| | | | | | | | | | | Use the system state signal to know when to change the state of the host The signal we look at may change with future skeleton refactors but this is the best signal for now Change-Id: Ibba7cc5628994425520c21cdf122d2710f8164aa Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Host state power on and off supportAndrew Geissler2017-01-091-0/+9
| | | | | | | | | This supports the basic systemd transitions to power on and off a host. Future commits will handle monitoring for the state transition to finish and updating the current state. Change-Id: I1ada1f4e7bd2844db49e63aaaf5b64c88b4af127 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Determine host state on application startupAndrew Geissler2017-01-061-1/+28
| | | | | | | | This code brings some coherence to the internal host state and transition values within the host state manager Change-Id: I989a40bb01d5c1c16c7e42cceac1bc99ce3222f4 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Initial phosphor-state-manager commitAndrew Geissler2017-01-061-0/+40
Still a lot of work to come with this one but this is the initial makefile and building of a basic application that provides dbus introspection and properties of the xyz/openbmc_project/State/Host.interface.yaml Change-Id: I406fafa6a50721b2f28ab6df03ef98a940e2db6e Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
OpenPOWER on IntegriCloud