Skip to content

Reduce hard power cycles

Ian Jackson xen-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest26 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/26power: Osstest::PDU::*: drop Exporter blocksOsstest/PDU/eth008.pm Osstest/PDU/guest.pm Osstest/PDU/ipmi.pm +6 more+0 -990 replies
2/26power: Osstest::PDU::*: use parent ::unsupportedOsstest/PDU/eth008.pm Osstest/PDU/guest.pm Osstest/PDU/ipmi.pm +7 more+20 -00 replies
3/26power: ipmi_try: Use `use parent' instead of ExporterOsstest/PDU/ipmi_try.pm+1 -130 replies
4/26power: Osstest::PDU::*: reuse default new method where applicableOsstest/PDU/manual.pm Osstest/PDU/xenuse.pm+0 -100 replies
5/26power handling: Break out power_cycle_parse_methodOsstest/TestSupport.pm+10 -40 replies
6/26power handling: Introduce power_reboot_attemptsOsstest/TestSupport.pm ts-host-install+29 -130 replies
7/26power: PowerApproaches replaces $ho->{PowerMethobjs}Osstest/TestSupport.pm+29 -60 replies
8/26power: power_reboot_attempts: Try multiple approachesOsstest/TestSupport.pm+16 -50 replies
9/26power: Provide `try_off' pdu method; deprecate ipmi_tryOsstest/PDU/ipmi_try.pm Osstest/PDU/try_off.pm+67 -00 replies
10/26power: New ILOM/PDU arrangements - try just IPMIOsstest/TestSupport.pm+37 -50 replies
11/26power: Do not sleep between power off and power on if not neededOsstest/PDU/guest.pm Osstest/PDU/try_off.pm Osstest/PDU/unsupported.pm +1 more+23 -10 replies
12/26power: Provide `ssh' power methodOsstest/PDU/ssh.pm+74 -00 replies
13/26power: Try rebooting hosts with ssh firstOsstest/TestSupport.pm+6 -20 replies
14/26power: Document Power* host properties and power methodsREADME README.dev+79 -20 replies
15/26power: Honour approach_re in power_cycle and mg-hosts powerOsstest/TestSupport.pm mg-hosts+13 -90 replies
16/26ts-host-powercycle: Use a lighter-weight method if availablets-host-powercycle+4 -20 replies
17/26power: Rename target_reboot_force from target_reboot_hardOsstest/TestSupport.pm ts-logs-capture+3 -30 replies
18/26power: power_reboot_attempts: Honour an $approach_reOsstest/TestSupport.pm+3 -20 replies
19/26ts-logs-capture: power: try ILOM firstOsstest/TestSupport.pm+3 -20 replies
20/26power: Use `Combined' as Name for PDU+ILOM approachOsstest/TestSupport.pm mg-hosts+8 -50 replies
21/26power: Record approach used for power cycles in runvarsOsstest/TestSupport.pm ts-host-install ts-logs-capture+15 -60 replies
22/26Executive: Break out span_colourOsstest/Executive.pm+8 -20 replies
23/26Executive: Export $grey_* with :coloursOsstest/Executive.pm+1 -00 replies
24/26sg-report-host-history: Move SET LOCAL into transactionsg-report-host-history+6 -50 replies
25/26sg-report-host-history: Show used power approach(es)sg-report-host-history+56 -00 replies
26/26DO NOT APPLY power: ts-freebsd-host-install: Use power_reboot_attemptsts-freebsd-host-install+8 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [OSSTEST PATCH 00/26] Reduce hard power cycles

We have been having trouble with PDU port relays sticking. We vaguely suspect that this is happening in Massachusetts due to the lower-voltage (120V, and therefore higher-current) electricity (compared to Cambridge, 240V, where the PDUs remain reliable).

To mitigate this issue (and generally prolong hardware life), try to avoid hard power cycling test boxes when we can. Specifically, try a reboot with ssh first, and if that fails try the IMPI if provided. If the IMPI doesn't work either or is not provided, hard power cycle.

Patches 01-25 are ready I think, and have been tested. There is a difficulty with the FreeBSD host install, which is discussed in patch 26 which is definitely not ready in this form.

Ian Jackson (26):
power: Osstest::PDU::*: drop Exporter blocks
power: Osstest::PDU::*: use parent ::unsupported
power: ipmi_try: Use `use parent' instead of Exporter
power: Osstest::PDU::*: reuse default new method where applicable power handling: Break out power_cycle_parse_method
power handling: Introduce power_reboot_attempts
power: PowerApproaches replaces $ho->{PowerMethobjs}
power: power_reboot_attempts: Try multiple approaches
power: Provide `try_off' pdu method; deprecate ipmi_try
power: New ILOM/PDU arrangements - try just IPMI
power: Do not sleep between power off and power on if not needed
power: Provide `ssh' power method
power: Try rebooting hosts with ssh first
power: Document Power* host properties and power methods
power: Honour approach_re in power_cycle and mg-hosts power
ts-host-powercycle: Use a lighter-weight method if available
power: Rename target_reboot_force from target_reboot_hard
power: power_reboot_attempts: Honour an $approach_re
ts-logs-capture: power: try ILOM first
power: Use `Combined' as Name for PDU+ILOM approach
power: Record approach used for power cycles in runvars
Executive: Break out span_colour
Executive: Export $grey_* with :colours
sg-report-host-history: Move SET LOCAL into transaction
sg-report-host-history: Show used power approach(es)
DO NOT APPLY power: ts-freebsd-host-install: Use power_reboot_attempts

 Osstest/Executive.pm       |  11 +++-
 Osstest/PDU/eth008.pm      |  11 +---
 Osstest/PDU/guest.pm       |  16 ++---
 Osstest/PDU/ipmi.pm        |  11 +---
 Osstest/PDU/ipmi_try.pm    |  14 +----
 Osstest/PDU/ipmiextra.pm   |  11 +---
 Osstest/PDU/manual.pm      |  16 +----
 Osstest/PDU/msw.pm         |  11 +---
 Osstest/PDU/pause.pm       |  11 +---
 Osstest/PDU/ssh.pm         |  74 ++++++++++++++++++++++
 Osstest/PDU/statedb.pm     |   2 +
 Osstest/PDU/try_off.pm     |  70 +++++++++++++++++++++
 Osstest/PDU/unsupported.pm |  16 ++---
 Osstest/PDU/xenuse.pm      |  16 +----
 Osstest/TestSupport.pm     | 154 +++++++++++++++++++++++++++++++++++++++------
 README                     |  77 +++++++++++++++++++++++
 README.dev                 |   4 +-
 mg-hosts                   |  14 +++--
 sg-report-host-history     |  67 ++++++++++++++++++--
 ts-freebsd-host-install    |  16 ++---
 ts-host-install            |  19 +++---
 ts-host-powercycle         |   6 +-
 ts-logs-capture            |   2 +-
 23 files changed, 482 insertions(+), 167 deletions(-)
 create mode 100644 Osstest/PDU/ssh.pm
 create mode 100644 Osstest/PDU/try_off.pm
Signature · 7 lines
2.11.0


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel