I've created the pull request https://github.com/autotest/virt-test/pull/2035

I've tested for the spice migration tests on RHEL6 and RHEL7. Could you please 
test on upstream and where ever else it may get affected?

Thanks,
- Swapna

----- Original Message -----
From: "Lucas Meneghel Rodrigues" <[email protected]>
To: "Swapna Krishnan" <[email protected]>, "Yiqiao Pu" <[email protected]>
Cc: "David Blechter" <[email protected]>, "Virt Test Development Mailing List" 
<[email protected]>
Sent: Monday, March 2, 2015 8:56:44 AM
Subject: Re: [Virt-test-devel] Migration tests failing on RHEL7 host

OK, so let's do this - Please send this as a PR and let's ask Yiqiao or any
team member that can help with testing the change to validate it. Please
link the PR back into this thread. Thanks Swapna!

On Mon, Mar 2, 2015 at 10:54 AM Swapna Krishnan <[email protected]> wrote:

> I did test this code change on RHEL6 as it is and all my tests passed.
>
> Thanks,
> - Swapna
>
> ----- Original Message -----
> From: "Yiqiao Pu" <[email protected]>
> To: "Lucas Meneghel Rodrigues" <[email protected]>, "Swapna Krishnan" <
> [email protected]>
> Cc: [email protected], "David Blechter" <[email protected]>, "Virt Test
> Development Mailing List" <[email protected]>
> Sent: Saturday, February 28, 2015 7:24:27 AM
> Subject: Re: Migration tests failing on RHEL7 host
>
> On 02/28/2015 05:38 AM, Lucas Meneghel Rodrigues wrote:
> >
> >
> > On Mon, Feb 23, 2015 at 12:45 PM, Swapna Krishnan
> > <[email protected]> wrote:
> >> Hi,
> >>
> >> Just wanted to follow up on this and if I should send out a pull
> >> request for this change?
> >>
> >> Thanks,
> >> - Swapna
> >>
> >> ----- Original Message -----
> >> From: "Swapna Krishnan" <[email protected]>
> >> To: [email protected], "Yiqiao Pu" <[email protected]>
> >> Sent: Friday, February 13, 2015 9:31:23 AM
> >> Subject: Migration tests failing on RHEL7 host
> >>
> >> Hi,
> >>
> >> I run a few migration tests as part of the SPICE smoketest and I'm
> >> trying to run SPICE smoketest on RHEL7 host. All the migration tests
> >> are failing because of a issue in the test code in qemu_vm.py for RHEL7.
> >>
> >> The command sent to qemu monitor for RHEL7 during migration is
> >> incorrect. "__com.redhat_spice_migrate_info", "spice_migrate_info"
> >> and "client_migrate_info" are the commands sent to qemu monitor
> >> during migration. While running on RHEL7 host, the first 2 commands
> >> are coming up as not supported and "client_migrate_info" is the
> >> command that is sent and the command is framed incorrectly for RHEL7.
> >> The protocol comes before the hostname.
> >>
> >> I want to make sure the following change is the correct one that
> >> needs to be done before trying to fix it myself.
> >>
> >> Thanks,
> >> - Swapna
> >>
> >> --- qemu_vm.py 2015-02-11 13:11:30.592872800 -0500
> >> +++ qemu_vm.py.new 2015-02-12 12:28:23.949678746 -0500
> >> @@ -3361,9 +3361,10 @@
> >>                           continue
> >>                       # spice_migrate_info requires host_ip, dest_port
> >>                       # client_migrate_info also requires protocol
> >> -                     cmdline = "%s hostname=%s" % (command, host_ip)
> >> +                     cmdline = "%s " % (command)
> >>                       if command == "client_migrate_info":
> >> -                         cmdline += " ,protocol=%s" %
> >> self.params['display']
> >> +                         cmdline += " protocol=%s," %
> >> self.params['display']
> >> +                     cmdline += " hostname=%s" % (host_ip)
>
> The blank before hostname may cause problem. And other parts looks good.
>
> >>                       if dest_port:
> >>                           cmdline += ",port=%s" % dest_port
> >>                       if dest_tls_port:
> >
> > This is correct for RHEL7. Now, our big problems here are RHEL6 and
> > upstream. As is, this would break those scenarios. The code has to
> > probe QEMU so we identify which branch we're in so we can use the
> > appropriate command set.
> >
> > So your patch is a start, but more work is underway. I probably won't
> > have enough time to commit to testing across those 3 scenarios and
> > come up with the final solution. The Beijing folks were on holidays
> > during the past week and are back now. We can work together to solve
> > this. Copying the upstream mailing list.
>
> Yes, we are just coming back from vacation. And will have a test with it
> in different version of RHEL host. :)
>
>
>
> _______________________________________________
> Virt-test-devel mailing list
> [email protected]
> https://www.redhat.com/mailman/listinfo/virt-test-devel
>

_______________________________________________
Virt-test-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/virt-test-devel

Reply via email to