From: Ian Jackson Subject: Re: [OSSTEST PATCH 09/11] mg-schema-test-database: New script Date: Mon, 7 Dec 2015 15:12:51 +0000 Message-ID: <22117.41459.250633.790492@mariner.uk.xensource.com> References: <1449257734-26860-1-git-send-email-ian.jackson@eu.citrix.com> <1449257734-26860-10-git-send-email-ian.jackson@eu.citrix.com> <1449483125.29724.38.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1a5xTN-0004bR-VA for xen-devel@lists.xenproject.org; Mon, 07 Dec 2015 15:13:06 +0000 In-Reply-To: <1449483125.29724.38.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: xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [OSSTEST PATCH 09/11] mg-schema-test-database: Ne= w script"): > On Fri, 2015-12-04 at 19:35 +0000, Ian Jackson wrote: > > This allows a user in non-standalone mode to make a whole new test > > database, which is largely a clone of the original database. > > = > > The new db refers to the same resources (hosts), and more-or-less > > safely borrows some of those hosts. > = > "more-or-less" ? ;-) This is a reference to the lack of owner/queue daemon handling. (And of course, the general limitations of `safety' in this kind of context.) > What's the overall idiom for use here, something like: > = > Against the production DB: > OSSTEST_TASK=3Dianc@testing-something=A0./mg-allocate [-U ...] a-host > = > ./mg-schema-test-database create [_SUFFIX]=A0ianc@testing-something > = > Ending up in a state where a-host is allocated in the production db and > idle in this new test db and all other hosts are allocated in the test db > and left to go about their usual business in the production db? Exactly. Maybe I should copy this to the doc comment :-). > I glanced through this, but TBH I don't think picking through it line by > line will be very productive, I trust you've tested it and its ok... Due to being incompetent I've hammered each part of it quite a bit and the all the resulting database states (even intermediate ones) look good. Ian.