summaryrefslogtreecommitdiffstats
path: root/pychassisctl
diff options
context:
space:
mode:
authorAdriana Kobylak <anoo@us.ibm.com>2016-08-19 10:57:18 -0500
committerAdriana Kobylak <anoo@us.ibm.com>2016-08-19 10:58:33 -0500
commit37846da5b6e7dace0fe17574f4fe8fb26df8da65 (patch)
treebdd9a3de4730660b408917a82d1d405793423928 /pychassisctl
parenteeb9b44e432ea0e976659fcae30b0bf9ba63a5b7 (diff)
downloadblackbird-skeleton-37846da5b6e7dace0fe17574f4fe8fb26df8da65.tar.gz
blackbird-skeleton-37846da5b6e7dace0fe17574f4fe8fb26df8da65.zip
Start host watchdog after magic sequence
The magic sequence triggers the host to boot, so start the host watchdog timer (which monitors for the host hanging) right after that. There's no need to port the check for debug flag because it's checked as part of the magic sequence. Resolves openbmc/skeleton#127 Change-Id: Ibad7b73c795c6cc8971bb99b755c8fce2c859f97 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
Diffstat (limited to 'pychassisctl')
-rwxr-xr-xpychassisctl/chassis_control.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/pychassisctl/chassis_control.py b/pychassisctl/chassis_control.py
index 7f14195..6c5ad09 100755
--- a/pychassisctl/chassis_control.py
+++ b/pychassisctl/chassis_control.py
@@ -133,22 +133,6 @@ class ChassisControlObject(DbusProperties, DbusObjectManager):
if (self.getPowerState() == 0):
intf = self.getInterface('power_control')
intf.setPowerState(POWER_ON)
-
- # Determine if debug_mode is set. If it is then we don't
- # want to start the watchdog since debug mode
- intfcontrol = self.getInterface('host_control')
- intfproperties = dbus.Interface(intfcontrol,
- "org.freedesktop.DBus.Properties")
- debug_mode = intfproperties.Get('org.openbmc.control.Host',
- 'debug_mode')
- if(not debug_mode):
- intfwatchdog = self.getInterface('watchdog')
- # Start watchdog with 30s timeout per the OpenPower Host IPMI Spec
- #Once the host starts booting, it'll reset and refresh the timer
- intfwatchdog.set(30000)
- intfwatchdog.start()
- else:
- print "Debug mode is on, no watchdog"
return None
@dbus.service.method(DBUS_NAME,
OpenPOWER on IntegriCloud