qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: Oksana Voshchana <ovoshcha@redhat.com>
Cc: qemu-devel@nongnu.org,
	Wainer dos Santos Moschetta <wainersm@redhat.com>,
	Cleber Rosa <crosa@redhat.com>
Subject: Re: [PATCH v3 2/2] Acceptance test: provides to use different transport for migration
Date: Tue, 4 Feb 2020 17:12:42 +0100	[thread overview]
Message-ID: <8b14476e-358b-46a5-fcfa-f3944d725074@redhat.com> (raw)
In-Reply-To: <CAMXCgj6EVLAApuaqwEg28Kt-UvRxoW1dVFJWqDkZtxjF8vS92Q@mail.gmail.com>

On 2/4/20 4:02 PM, Oksana Voshchana wrote:
> Hi Philippe
> You can do whatever it takes
> I appreciate you for a review
> Thanks

OK I'll split as suggested then.

> 
> On Tue, Feb 4, 2020 at 4:12 PM Philippe Mathieu-Daudé <philmd@redhat.com 
> <mailto:philmd@redhat.com>> wrote:
> 
>     On 2/3/20 12:16 PM, Oksana Vohchana wrote:
>      > Along with VM migration via TCP, we can use migration through EXEC
>      > and UNIX transport protocol
>      >
>      > Signed-off-by: Oksana Vohchana <ovoshcha@redhat.com
>     <mailto:ovoshcha@redhat.com>>
>      > ---
>      > v2:
>      >    - Removes unnecessary symbols and unused method
>      >
>      > v3:
>      >   - Makes refactoring and split into 2 patches
>      >   - Provides TCP and EXEC migration
>      > Signed-off-by: Oksana Vohchana <ovoshcha@redhat.com
>     <mailto:ovoshcha@redhat.com>>
>      > ---
>      >   tests/acceptance/migration.py | 16 ++++++++++++++++
>      >   1 file changed, 16 insertions(+)
>      >
>      > diff --git a/tests/acceptance/migration.py
>     b/tests/acceptance/migration.py
>      > index 34263d8eeb..4419e38384 100644
>      > --- a/tests/acceptance/migration.py
>      > +++ b/tests/acceptance/migration.py
>      > @@ -10,10 +10,13 @@
>      >   # later.  See the COPYING file in the top-level directory.
>      >
>      >
>      > +import tempfile
>      >   from avocado_qemu import Test
>      > +from avocado import skipUnless
>      >
>      >   from avocado.utils import network
>      >   from avocado.utils import wait
>      > +from avocado.utils.path import find_command
>      >
>      >
>      >   class Migration(Test):
>      > @@ -54,3 +57,16 @@ class Migration(Test):
>      >       def test_migration_with_tcp_localhost(self):
>      >           dest_uri = 'tcp:localhost:%u' % self._get_free_port()
>      >           self.do_migrate(dest_uri)
>      > +
>      > +    def test_migration_with_unix(self):
>      > +        with tempfile.TemporaryDirectory(prefix='socket_') as
>     socket_path:
>      > +            dest_uri = 'unix:%s/qemu-test.sock' % socket_path
>      > +            self.do_migrate(dest_uri)
> 
>     Similarly, do you mind if I split and update subjects to "Test the UNIX
>     transport when migrating" and "Test the TCP transport when migrating"?
> 
>     Meanwhile:
>     Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com
>     <mailto:philmd@redhat.com>>
> 
>      > +
>      > +    @skipUnless(find_command('nc', default=False), "nc command
>     not found on the system")
>      > +    def test_migration_with_exec(self):
>      > +        """
>      > +        The test works for both netcat-traditional and
>     netcat-openbsd packages
>      > +        """
>      > +        free_port = self._get_free_port()
>      > +        dest_uri = 'exec:nc -l localhost %u' % free_port
>      > +        src_uri = 'exec:nc localhost %u' % free_port
>      > +        self.do_migrate(dest_uri, src_uri)
>      >
> 



  reply	other threads:[~2020-02-04 16:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-03 11:16 [PATCH v3 0/2] Acceptance test: provides to use different transport for migration Oksana Vohchana
2020-02-03 11:16 ` [PATCH v3 1/2] " Oksana Vohchana
2020-02-04 14:09   ` Philippe Mathieu-Daudé
2020-02-03 11:16 ` [PATCH v3 2/2] " Oksana Vohchana
2020-02-04 14:12   ` Philippe Mathieu-Daudé
2020-02-04 15:02     ` Oksana Voshchana
2020-02-04 16:12       ` Philippe Mathieu-Daudé [this message]
2020-02-04 16:13 ` [PATCH v3 0/2] " Philippe Mathieu-Daudé
  -- strict thread matches above, loose matches on Subject: below --
2020-02-03 10:52 Oksana Vohchana
2020-02-03 10:52 ` [PATCH v3 2/2] " Oksana Vohchana

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=8b14476e-358b-46a5-fcfa-f3944d725074@redhat.com \
    --to=philmd@redhat.com \
    --cc=crosa@redhat.com \
    --cc=ovoshcha@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=wainersm@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).