Code review comment for lp:~manjo/ubuntu/trusty/systemd/HP-m800

Revision history for this message
Manoj Iyer (manjo) wrote :

== C3N3 ===

ubuntu@ubuntu:~$ cat /lib/udev/rules.d/70-power-switch.rules
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.

ACTION=="remove", GOTO="power_switch_end"

SUBSYSTEM=="input", KERNEL=="event*", SUBSYSTEMS=="platform", KERNELS=="gpio_keys.12", ATTRS{keys}=="116", PROGRAM="/bin/cat /proc/device-tree/model", RESULT=="HP ProLiant m800 Server Cartridge", TAG+="power-switch"
SUBSYSTEM=="input", KERNEL=="event*", SUBSYSTEMS=="acpi", TAG+="power-switch"
SUBSYSTEM=="input", KERNEL=="event*", KERNELS=="thinkpad_acpi", TAG+="power-switch"

LABEL="power_switch_end"

ubuntu@ubuntu:~$ uname -a
Linux ubuntu 3.13.0-8-keystone #12-Ubuntu SMP Sat Jul 19 07:56:07 UTC 2014 armv7l armv7l armv7l GNU/Linux

ubuntu@ubuntu:~$ cat /proc/device-tree/model
HP ProLiant m800 Server Cartridgeubuntu@ubuntu:~$

== INITIATING SOFT SHUTDOWN FROM ILO ==
</>hpiLO-> set node power off shutdown c3n3

  c3: #Cartridge 3
    c3n3: #Node 3 Shutting node down gracefully

hpiLO->

== SYSTEM SHUTTING DOWN AS EXPECTED ==
ubuntu@ubuntu:~$ cat /proc/device-tree/model
HP ProLiant m800 Server Cartridgeubuntu@ubuntu:~$
Broadcast message from root@ubuntu
 (unknown) at 11:49 ...

The system is going down for power off NOW!
Connection to 192.168.17.24 closed by remote host.
Connection to 192.168.17.24 closed.

== CONFIRM WITH ILO THAT NODE IS POWERED DOWN ==
hpiLO-> show node list

Slot ID Proc Manufacturer Architecture Memory Power Health
---- ----- ---------------------- -------------------- ------ ----- ------
  3 c3n1 * ARM Architecture 8 GB Off OK
  3 c3n2 * ARM Architecture 8 GB On OK
  3 c3n3 * ARM Architecture 8 GB Off OK
  3 c3n4 * ARM Architecture 8 GB On OK

hpiLO->

« Back to merge proposal