From: Lucas Meneghel Rodrigues <lmr@redhat.com>
To: Jiri Zupka <jzupka@redhat.com>
Cc: kvm-autotest@redhat.com, kvm@vger.kernel.org,
autotest@test.kernel.org, ldoktor@redhat.com, akong@redhat.com
Subject: Re: [Autotest] [AUTOTEST][PATCH 2/2] Add ability to call autotest client tests from kvm tests like a subtest.
Date: Tue, 19 Jul 2011 11:18:04 -0300 [thread overview]
Message-ID: <4E25921C.6010207@redhat.com> (raw)
In-Reply-To: <2013195329.137124.1311078770999.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com>
On Tue 19 Jul 2011 09:32:51 AM BRT, Jiri Zupka wrote:
>>
>> auto_vm1.run_control(control) # This would run sleeptest and bring
>> back the results to the host
>
> I'm thinking about this feature and there is some choice:
> 1) We can do another separate interface for this feature in autotest/client.
> - I think, not good way because there is to much (useless, duplicate) code.
> 2) Move Autotest.py from server part to client part and
> a) Write interface for package hosts which extend virt_vm.py and aexpect.py
> to work as hosts part in server.
> - This isn't enough generic you can't run test on virt machine and another
> bare metal host.
> b) Move hosts part from server to client part. This add ability cliet part of test
> to start autotest test on others machines.
> - Is this way good? This is most generic way how to do this, but this changes
> should change way of using autotest. When server starts test on client
> machines (bare metal, virt).
^ Or, in other words, 'merge' the client and the server program, so
we'd have a single, unified API to write tests, and any . This is
something that Martin Bligh wanted to get done in autotest.
However, it is pretty major work going on. I really like the idea, so
let's evaluate it carefully
> May be we should think about place of virt in autotest infrastructure.. If there is test
> which is multimechine, generic and should be run on bare metal and virt machine
> with no problem.
> 1*) Then there should be way how to start virtual machine from server part
> but with capabilities like is in kvm test. (because there is lot of good features
> like automatic installing of virtual machine, etc..)
> 2*) Or we can move some of part from server to client part (autotest.py, hosts) to
> allow client part of test start autotest on virt machine and on bare metal machine.
> 3*) Or we should think about writing tests. This mean no changes in autotest structure
> but changes in tests structure. Client part should have test to only start virt machine
> and server controls of starting tests on this infrastructure. This mean move
> some of (kvm, virt) test server part (virt/tests/multicast, virt/tests/netperf).
> May be there should be /server/tests/virtprepare. This way is posible start kvm machine.
Although I might be way off, I saw stuff on beijing's tree (I think it
is cross_host_utilities or something) that could help to implement this
option.
> I have done part (2) and I have done some part of part (b) 70%, but I'm not sure if this is
> good way how to do this. This is most generic but... I'm going to do changes way (2b) but
> I think that way (3*) is most clean way how to do this.
My personal preference would be to unify server and client, so 2).
However, given that it is *major* work, maybe 3) is better.
prev parent reply other threads:[~2011-07-19 14:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-29 13:59 [AUTOTEST]Add ability to call autotest client tests from kvm tests like a subtest Jiří Župka
2011-04-29 13:59 ` [AUTOTEST][KVM] [PATCH 1/2] Repair bug of creating kvm guest machine Jiří Župka
2011-04-29 15:23 ` [AUTOTEST][PATCH " Lucas Meneghel Rodrigues
2011-04-29 13:59 ` [AUTOTEST][KVM] [PATCH 2/2] Add ability to call autotest client tests from kvm tests like a subtest Jiří Župka
2011-05-04 2:19 ` [Autotest] [AUTOTEST][PATCH " Lucas Meneghel Rodrigues
2011-05-04 13:57 ` Jiri Zupka
2011-07-19 12:32 ` [AUTOTEST][KVM] [PATCH " Jiri Zupka
2011-07-19 14:18 ` Lucas Meneghel Rodrigues [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E25921C.6010207@redhat.com \
--to=lmr@redhat.com \
--cc=akong@redhat.com \
--cc=autotest@test.kernel.org \
--cc=jzupka@redhat.com \
--cc=kvm-autotest@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=ldoktor@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).