From: Ian Jackson Subject: [OSSTEST PATCH 7/7] ts-logs-capture: Attempt to power up a host before capturing its logs Date: Mon, 16 Nov 2015 17:54:25 +0000 Message-ID: <1447696465-24978-8-git-send-email-ian.jackson@eu.citrix.com> References: <1447696465-24978-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZyNzE-0000GP-35 for xen-devel@lists.xenproject.org; Mon, 16 Nov 2015 17:54:40 +0000 In-Reply-To: <1447696465-24978-1-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Robert Ho , Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org 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 --- ts-logs-capture | 1 + 1 file changed, 1 insertion(+) diff --git a/ts-logs-capture b/ts-logs-capture index 86fad93..73b7c5e 100755 --- a/ts-logs-capture +++ b/ts-logs-capture @@ -248,6 +248,7 @@ sub fetch_logs_guest ($) { } } +power_state($ho,1); find_guests(); fetch_xenctx_guest($_) foreach @guests; serial_fetch_logs($ho); -- 1.7.10.4