]> xenbits.xensource.com Git - people/iwj/osstest.git/commitdiff
ts-logs-capture: Attempt to power up a host before capturing its logs
authorIan Jackson <ian.jackson@eu.citrix.com>
Mon, 16 Nov 2015 15:46:10 +0000 (15:46 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 17 Nov 2015 12:44:18 +0000 (12:44 +0000)
If for any reason it's powered down, this is useful.

(In theory for a nested host, we could get the logs by grobbling in
its parent's view of its filesystem, but that is too much work.)

We do not trap the errors from this, so that if the PDU is broken (or
the L1 has not been created), we can fail more quickly.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
ts-logs-capture

index 86fad935bfff3f3f347e5d02f0fc9e23b62fff04..73b7c5e93a91106b0dbab2476481907bb19562eb 100755 (executable)
@@ -248,6 +248,7 @@ sub fetch_logs_guest ($) {
     }
 }
 
+power_state($ho,1);
 find_guests();
 fetch_xenctx_guest($_) foreach @guests;
 serial_fetch_logs($ho);