[PATCH skeleton] skeleton: chassis_control - Add an ESEL when emergency shutdown host
Patrick Williams
patrick at stwcx.xyz
Wed Jul 6 04:45:05 AEST 2016
On Sat, Jul 02, 2016 at 09:40:52AM -0500, OpenBMC Patches wrote:
> From: Yi Li <adamliyi at msn.com>
>
> This patch fixes issue: https://github.com/openbmc/skeleton/issues/64
Instead of this line, after the description (the next paragraph) add a
new paragraph:
Fixes openbmc/skeleton#64.
Shouldn't have github URLs in the commit message because they are not
considered permalinks.
> According to BMC Firmware Specification, on occasion the BMC will be required
> to shut down the host due to high ambient or fan fails. A SEL must be
> present in this case.
>
> Signed-off-by: Yi Li <adamliyi at msn.com>
>
Extra whitespace line in commit message needs to be removed.
'Signed-off-by' and 'Change-Id' should be right next to each other at
the end.
> Change-Id: I65ea7e3284eab3e10e14604306f6d8e23f77d57e
> ---
> pychassisctl/chassis_control.py | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/pychassisctl/chassis_control.py b/pychassisctl/chassis_control.py
> index 56a2116..94fac78 100755
> --- a/pychassisctl/chassis_control.py
> +++ b/pychassisctl/chassis_control.py
> @@ -232,6 +232,18 @@ class ChassisControlObject(DbusProperties, DbusObjectManager):
>
> def emergency_shutdown_signal_handler(self):
> print "Emergency Shutdown!"
> + # log an esel
> + try:
> + obj = bus.get_object("org.openbmc.records.events",
> + "/org/openbmc/records/events", introspect=False)
> + intf = dbus.Interface(obj, "org.openbmc.recordlog")
> + desc = message
> + sev = "critical error"
> + details = "Get emergency shutdown signal. Shutdown the host."
> + debug = dbus.ByteArray("")
> + intf.acceptBMCMessage(desc, sev, details, debug)
> + except:
> + print "Emergency shutdown: log esel error."
> self.powerOff()
>
>
> --
> 2.9.0
>
>
> _______________________________________________
> openbmc mailing list
> openbmc at lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/openbmc
--
Patrick Williams
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20160705/77a230e1/attachment.sig>
More information about the openbmc
mailing list