From: John Admanski Subject: Re: [Autotest] [PATCH] Move global configuration files to client dir Date: Wed, 11 Nov 2009 09:37:34 -0800 Message-ID: <394b34480911110937m104cb9f4va50772d178dc887e@mail.gmail.com> References: <1257938642-6613-1-git-send-email-lmr@redhat.com> <394b34480911110732o17ad5a1di6bc5fb2c20d79192@mail.gmail.com> <1257959791.2789.0.camel@localhost.localdomain> <394b34480911110930l257440a1t151aac80270db4af@mail.gmail.com> <33307c790911110935v75c87ac9sc464c5dfd836a0c0@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Cc: Lucas Meneghel Rodrigues , autotest@test.kernel.org, kvm@vger.kernel.org To: Martin Bligh Return-path: Received: from smtp-out.google.com ([216.239.45.13]:29275 "EHLO smtp-out.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758446AbZKKRhw (ORCPT ); Wed, 11 Nov 2009 12:37:52 -0500 Received: from wpaz33.hot.corp.google.com (wpaz33.hot.corp.google.com [172.24.198.97]) by smtp-out.google.com with ESMTP id nABHbvKx009799 for ; Wed, 11 Nov 2009 09:37:57 -0800 Received: from pwj3 (pwj3.prod.google.com [10.241.219.67]) by wpaz33.hot.corp.google.com with ESMTP id nABHbsVu030635 for ; Wed, 11 Nov 2009 09:37:54 -0800 Received: by pwj3 with SMTP id 3so853542pwj.39 for ; Wed, 11 Nov 2009 09:37:54 -0800 (PST) In-Reply-To: <33307c790911110935v75c87ac9sc464c5dfd836a0c0@mail.gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: On Wed, Nov 11, 2009 at 9:35 AM, Martin Bligh wrote: >> I thought about it a bit more: >> >> Maybe a better approach would be to have the global_config module find >> the ini file in job.autodir (so on a client it would show up in the >> client/ dir, and on the server in the "true" top-level dir) and then >> add support to Autotest.run so that it copies over the server's copy >> of the config to the client before launching a client job? >> >> So that way it would "just work", and changes to the server config >> would automatically get pushed out to client jobs. All without moving >> the file that users running a server need to edit. And it's not too >> complex of a design; the Autotest.run code already needs to copy over >> a few files by hand like control files so copying over the config too >> isn't too much of a burden. > > Sounds good to me. > >> The only concern I have is that this still might not play well with a >> multi-server setup. If the servers have different configs I'm not sure >> that it works all that well (although I still don't know that this >> introduces any "new" problems, so I don't think it makes things any >> messier in that case then they already are). I cc'ed Scott and Steve >> in case they can comment on that. > > By multi-server setup, do you mean multiple copies of the autotest > server code on the same tree? Or a master with drones? > I meant a master with drones. But I don't think it's a huge issue; keeping the config in sync between all drones is already a pre-existing issue, so however we already deal with that (or maybe we don't, I can't remember) is independent of this suggested change, in my mind. -- John