From: Ian Jackson Subject: Re: [OSSTEST Nested PATCH v11 6/7] Compose the main recipe of nested test job Date: Wed, 17 Jun 2015 12:31:32 +0100 Message-ID: <21889.23188.569528.509424@mariner.uk.xensource.com> References: <1432631304-27347-1-git-send-email-longtaox.pang@intel.com> <1432631304-27347-7-git-send-email-longtaox.pang@intel.com> <21880.23264.813171.606123@mariner.uk.xensource.com> <86C3224E41A7434B904EC364302132D80E4BFEC4@SHSMSX101.ccr.corp.intel.com> <21881.42757.84361.654532@mariner.uk.xensource.com> <86C3224E41A7434B904EC364302132D80E4C0A6B@SHSMSX101.ccr.corp.intel.com> <21882.64076.306554.733060@mariner.uk.xensource.com> <1434286285.25577.6.camel@localhost> <1434359303.13744.16.camel@citrix.com> <86C3224E41A7434B904EC364302132D80E4C30D5@SHSMSX101.ccr.corp.intel.com> <1434533714.13744.279.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1434533714.13744.279.camel@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: Ian Campbell Cc: "Hu, Robert" , "Pang, LongtaoX" , "wei.liu2@citrix.com" , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [OSSTEST Nested PATCH v11 6/7] Compose the main recipe of nested test job"): > I'll leave it to Ian to suggest a solution since it will no doubt > involve some tcl plumbing (I'd be inclined to record 'hosts which are > actually guests' somewhere and have the infra clean them up > automatically after doing leak check and log collection). Thinking "aloud": The things we want to happen at the end of the job are: * leak check on the l1 !* logs capture on the l1 (might involve "power cycle") * destruction of the l1 on l0 * leak check on l0 !* logs capture on l0 The items marked ! should happen even in case of failure. This is going to be quite fiddly to do in a generic way. But on the other hand, doing it in a generic way would avoid writing an explicit error handler in the l1 test case code, and replicating the "per-host operations". > I was thinking more along the lines of creating Osstest/PDU/guest.pm > with the appropriate methods calling out to toolstack($l0)->foo, setting > $ho->{Power} = 'guest $l1guestname' somewhere and allowing > power_cycle_host_setup to do it's thing. Yes, that's what I meant. Ian.