Reduce hard power cycles
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest26 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/26 | power: Osstest::PDU::*: drop Exporter blocksOsstest/ Osstest/ Osstest/ +6 more | +0 | 0 replies | |
| 2/26 | power: Osstest::PDU::*: use parent ::unsupportedOsstest/ Osstest/ Osstest/ +7 more | +20 | 0 replies | |
| 3/26 | power: ipmi_try: Use `use parent' instead of ExporterOsstest/ | +1 | 0 replies | |
| 4/26 | power: Osstest::PDU::*: reuse default new method where applicableOsstest/ Osstest/ | +0 | 0 replies | |
| 5/26 | power handling: Break out power_cycle_parse_methodOsstest/ | +10 | 0 replies | |
| 6/26 | power handling: Introduce power_reboot_attemptsOsstest/ ts-host-install | +29 | 0 replies | |
| 7/26 | power: PowerApproaches replaces $ho->{PowerMethobjs}Osstest/ | +29 | 0 replies | |
| 8/26 | power: power_reboot_attempts: Try multiple approachesOsstest/ | +16 | 0 replies | |
| 9/26 | power: Provide `try_off' pdu method; deprecate ipmi_tryOsstest/ Osstest/ | +67 | 0 replies | |
| 10/26 | power: New ILOM/PDU arrangements - try just IPMIOsstest/ | +37 | 0 replies | |
| 11/26 | power: Do not sleep between power off and power on if not neededOsstest/ Osstest/ Osstest/ +1 more | +23 | 0 replies | |
| 12/26 | power: Provide `ssh' power methodOsstest/ | +74 | 0 replies | |
| 13/26 | power: Try rebooting hosts with ssh firstOsstest/ | +6 | 0 replies | |
| 14/26 | power: Document Power* host properties and power methodsREADME README.dev | +79 | 0 replies | |
| 15/26 | power: Honour approach_re in power_cycle and mg-hosts powerOsstest/ mg-hosts | +13 | 0 replies | |
| 16/26 | ts-host-powercycle: Use a lighter-weight method if availablets-host-powercycle | +4 | 0 replies | |
| 17/26 | power: Rename target_reboot_force from target_reboot_hardOsstest/ ts-logs-capture | +3 | 0 replies | |
| 18/26 | power: power_reboot_attempts: Honour an $approach_reOsstest/ | +3 | 0 replies | |
| 19/26 | ts-logs-capture: power: try ILOM firstOsstest/ | +3 | 0 replies | |
| 20/26 | power: Use `Combined' as Name for PDU+ILOM approachOsstest/ mg-hosts | +8 | 0 replies | |
| 21/26 | power: Record approach used for power cycles in runvarsOsstest/ ts-host-install ts-logs-capture | +15 | 0 replies | |
| 22/26 | Executive: Break out span_colourOsstest/ | +8 | 0 replies | |
| 23/26 | Executive: Export $grey_* with :coloursOsstest/ | +1 | 0 replies | |
| 24/26 | sg-report-host-history: Move SET LOCAL into transactionsg-report-host-history | +6 | 0 replies | |
| 25/26 | sg-report-host-history: Show used power approach(es)sg-report-host-history | +56 | 0 replies | |
| 26/26 | DO NOT APPLY power: ts-freebsd-host-install: Use power_reboot_attemptsts-freebsd-host-install | +8 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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