summaryrefslogtreecommitdiff
path: root/meta-phosphor/common/recipes-phosphor/watchdog
AgeCommit message (Collapse)AuthorFilesLines
2018-06-25Remove use of mapper callBrad Bishop1-2/+2
Replace invocations of mapper call with a call to busctl and mapper get-service. This provides equivalent functionality but opens the door for dropping a systemd patch we have carried for some time. Change-Id: Iea0cce89341939b49b095d1f5010415578331d4d Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-06-13phosphor-watchdog.bb: bump versionAndrew Geissler1-1/+1
Change-Id: Id4288f5ba92ffaf302bd7356ec82b0e3b5306e1b Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-05-29phosphor-watchdog: Continue after performing actionWilliam A. Kennington III1-1/+1
In the past, expiry of the phosphor-watchdog meant that some type of reset action was peformed on the machine and the phosphor-watchdog would be restarted during the reset process. Now that we support multiple actions and allow the timer to expire for the NONE action, this assumption is no longer true. If a NONE watchdog expires the daemon will die and the watchdog will no longer be armable. Fix this using the continue option of the phosphor-watchdog to continue servicing watchdog requests after expiry. Change-Id: I8428087e7c98d49ebd80bbc7b7d5f4225dff7ffd Signed-off-by: William A. Kennington III <wak@google.com>
2018-05-06phosphor-dbus-interfaces.bb + phosphor-watchdog.bb: Bump versionsWilliam A. Kennington III1-1/+1
This is a combined version bump due to a codependence on an interface change in the Host Watchdog. Change-Id: Iccb84633de05455d06b530a6114a02d41c954723 Signed-off-by: William A. Kennington III <wak@google.com>
2018-04-10phosphor-watchdog.bb: bump versionAndrew Geissler1-1/+1
Change-Id: Ic1298c7359cdca5bf0ea5989a3e0d38d0fa79a76 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-04-06Introduce new host-startmin action targetAndrew Geissler1-2/+2
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>
2018-03-07phosphor-watchdog.bb: bump versionAndrew Geissler1-1/+1
Change-Id: I17a657c313010c0cb25a333381c9a291442200d4 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-03-07phosphor-watchdog.bb: bump versionAndrew Geissler1-1/+1
Change-Id: I3b07d2ae145412a57a74ce1dfc153e81b5d331d3 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-03-03phosphor-watchdog.bb: bump versionAndrew Geissler1-1/+1
Change-Id: I233142268f40237b0bb96bbd0e508ea3f0f91922 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-02-26phosphor-watchdog.bb: bump versionAndrew Geissler1-1/+1
Change-Id: I3605b73c72c4a8d42ea7ab7765a7469d075cf185 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-02-23phosphor-watchdog.bb: bump versionAndrew Geissler1-1/+1
Change-Id: I9731a74285a12d18f1d782be5bda46b2f3b8ecbf Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-02-23phosphor-watchdog.bb: bump versionAndrew Geissler1-1/+1
Change-Id: Ie92d9ef377bec3f827b0ab8fc34d7be4b255344d Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-02-22phosphor-watchdog.bb: bump versionAndrew Geissler1-1/+1
Change-Id: I69cf2c8fefbc178caf34ec55cfb6d0e7fc636d26 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-02-21phosphor-watchdog.bb: bump versionAndrew Geissler1-1/+1
Change-Id: I990b8d05b1ba535d25417b16aef9ac4008a71841 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-02-13phosphor-watchdog.bb: bump versionAndrew Geissler1-1/+1
Change-Id: Ia43e0fcec1ee02061b806f0b69360fc878d7f531 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-02-06phosphor-watchdog.bb: bump versionAndrew Geissler1-1/+1
Change-Id: Id649da7e3e64a621483de9c561b4a74b2b04810f Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-01-27phosphor-watchdog.bb: bump versionAndrew Geissler1-1/+1
Change-Id: Ifb727a632fc72e205e50dd549f36d7553e1d55f9 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-01-23Fix host reset on double poweron commandAlexander Soldatov1-0/+1
Before this commit, if 'obmcutil poweron' was issued twice, it would result it host reset because a watchdog service would have been started but not signalled by the host to stop upon successful startup. This commit makes the watchdog service persistent so that it doesn't start for the second time. If the BMC is rebooted while the host is powered on, and thus the watchdog service is terminated, that is covered by an already existing condition check for the watchdog service. Resolves openbmc/openbmc#2811 Change-Id: I11212f2a08fc102afee2641c403c50158aae876c Signed-off-by: Alexander Soldatov <a.soldatov@yadro.com> Signed-off-by: Alexander Amelkin <a.amelkin@yadro.com>
2017-11-01phosphor-watchdog.bb: bump versionAndrew Geissler1-1/+1
Change-Id: If77d4b5a06111a8cf4ba850d9e3dd3d9ad737338 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2017-10-11Host watchdog needs to conflict with quiesce targetAndrew Geissler1-0/+1
If the server enters the quiesce target, the BMC needs to stop the host watchdog. This is so the BMC does not log a second error (one for whatever caused quiesce and one for the host watchdog timeout). If the host watchdog timeout is the reason for entering the quiesce target, then it's error will be logged prior to entering the quiesce target. Resolves openbmc/openbmc#2282 Change-Id: I43fe484049587cc579ec04fd399a4ae78134031c Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
2017-09-12phosphor-watchdog.bb: bump versionPatrick Williams1-1/+1
Change-Id: Ibe9a8ce6211c2bdcbc54628c3657e6f6e29deb8b Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2017-09-06phosphor-watchdog.bb: bump versionPatrick Williams1-1/+1
Change-Id: I94b809e3c7d3f3de3a468d1b16635c2235d67c10 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2017-08-25Enable BMC patching from the /usr/local pathMichael Tritz3-3/+5
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>
2017-07-13phosphor-watchdog: don't enable watchdog on BMC rebootPatrick Williams1-0/+1
There are applications we do not want to reenable after a BMC reboot and the typical mechanism for that is a ConditionPathExists on a marker file we create in /run. This was missing for the Host watchdog enable service, which caused the watchdog to be re-enabled even though the boot process was complete. Add the ConditionPathExists to prevent it from becoming enabled. Resolves openbmc/openbmc#1948. Change-Id: Ibb64ee40d9b6313bc44205c751d130345be695ed Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2017-07-05Watchdog: Enable Host Watchdog during early poweronVishwanatha Subbanna3-0/+21
Enabling the Host Watchdog during early power on was inadvertently removed and this change is bringing that back on. Fixes openbmc/openbmc#1888 Change-Id: Ib2220e762379360742dee4a11c06f01a6060fbbe Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
2017-06-15phosphor-watchdog.bb: bump versionPatrick Williams1-1/+1
Change-Id: I07969ac2b0ddc469020067b4fa2a1a66effdd997 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2017-06-15Watchdog: Add recipe for phosphor-watchdogVishwanatha Subbanna4-0/+53
Change-Id: I460e086e1e5d3d5db5405ac29927a7b460f56ff6 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>