Hi~

On 07/04/2012 07:03 PM, Alex Jia wrote:
> On 07/04/2012 06:50 PM, tangchen wrote:
>> Hi~
>>
>> If I want to test "virsh -c" commands, any good idea to do it?
>> I think class VM in libvirt_vm.py cannot meet my requirtment.
> I have ever suggested to support remote URI, I think it should be what you 
> want:
> 
> http://test.kernel.org/pipermail/autotest/2011-November/009440.html

This patch is just what virsh_cmd() like now, isn't it? 
It is not what I am talking about. Correct me if I made a mistake, please.

I assume vm1 is on local host. If I run "virsh -c rempte_uri xxx", there is no 
vm1 on remote host.
If I only have one case need to test -c option, and all the other cases are 
local tests, what should I do ?

How about the following idea 2 ?

>> For example:
>>
>> I have 2 Hosts: Host1 with IP1 and Host2 with IP2.
>> My autotest is running on Host1, and of course vm1 is also on Host1.
>> Now I want to test "virsh -c" option.
>>
>> 1. If I run "virsh -c qemu://IP2/system xxx", I don't have a vm1 on Host2.
>>     Migrating vm1 to Host2 is not a good idea, I think. Because it depends 
>> on migration
>>     test configurations, which makes my test more complicated.
>> OR
>> 2. If I ssh to Host2 and run "virsh -c qemu://IP1/system xxx", class VM 
>> cannot do this.
>>
>> Now, I'm using method 2, and I don't use class VM. And all the "non -c" 
>> tests are using
>> class VM, but "-c" tests are not. This is strange.
>>
>>
>> IMO, if virsh_cmd() can do this, class VM will support this kind of tests.
>> So maybe I will modify virsh_cmd() one more time, using method 2.
>>
>> Any good idea to do this ?
>>
>> Thanks. :)
>>
> 
> 

-- 
Best Regards,
Tang chen
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to