qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Add files: a
@ 2025-03-18 21:13 Matheus Tavares Bernardino
  2025-03-18 21:17 ` test_migration.py not working with netcat-traditional Matheus Tavares Bernardino
  2025-03-19  7:49 ` Thomas Huth
  0 siblings, 2 replies; 5+ messages in thread
From: Matheus Tavares Bernardino @ 2025-03-18 21:13 UTC (permalink / raw)
  To: qemu-devel; +Cc: ovoshcha, farosas, philmd, thuth, bcain, quic_mliebel

Hi,

tests/functional/test_migration.py says "The test works for both
netcat-traditional and netcat-openbsd packages." But when I run it for
qemu-system-aarch64 on an Ubuntu 22.04 container with netcat-traditional
installed, I get the following error:

TAP version 13
Traceback (most recent call last):
  File "/pwd/tests/functional/test_migration.py", line 97, in test_migration_with_exec
    self.do_migrate(dest_uri, src_uri)
  File "/pwd/tests/functional/test_migration.py", line 72, in do_migrate
    self.assert_migration(source_vm, dest_vm)
  File "/pwd/tests/functional/test_migration.py", line 40, in assert_migration
    self.assertEqual(src_vm.cmd('query-migrate')['status'], 'completed')
AssertionError: 'failed' != 'completed'
- failed
+ completed


not ok 1 test_migration.MigrationTest.test_migration_with_exec
ok 2 test_migration.MigrationTest.test_migration_with_tcp_localhost
ok 3 test_migration.MigrationTest.test_migration_with_unix
1..3

With netcat-openbsd (the default), it runs fine. Perhaps the test is no
longer compatible with netcat-traditional?

QEMU was configured and built with:
../configure --without-default-features --target-list=aarch64-softmmu

Thanks,
Matheus


^ permalink raw reply	[flat|nested] 5+ messages in thread

* test_migration.py not working with netcat-traditional
  2025-03-18 21:13 [PATCH] Add files: a Matheus Tavares Bernardino
@ 2025-03-18 21:17 ` Matheus Tavares Bernardino
  2025-03-19  7:49 ` Thomas Huth
  1 sibling, 0 replies; 5+ messages in thread
From: Matheus Tavares Bernardino @ 2025-03-18 21:17 UTC (permalink / raw)
  To: quic_mathbern
  Cc: qemu-devel, ovoshcha, farosas, philmd, thuth, bcain, quic_mliebel

On Tue, 18 Mar 2025 14:13:03 -0700 Matheus Tavares Bernardino <quic_mathbern@quicinc.com> wrote:
>
> [...]
> 
> Thanks,
> Matheus

Sorry for the original title, I had some placeholder thrash in my buffer and that
ended up going as the subject :facepalm:


^ permalink raw reply	[flat|nested] 5+ messages in thread

* test_migration.py not working with netcat-traditional
  2025-03-18 21:13 [PATCH] Add files: a Matheus Tavares Bernardino
  2025-03-18 21:17 ` test_migration.py not working with netcat-traditional Matheus Tavares Bernardino
@ 2025-03-19  7:49 ` Thomas Huth
  2025-03-19  8:57   ` Daniel P. Berrangé
  1 sibling, 1 reply; 5+ messages in thread
From: Thomas Huth @ 2025-03-19  7:49 UTC (permalink / raw)
  To: Matheus Tavares Bernardino, qemu-devel
  Cc: ovoshcha, farosas, philmd, bcain, quic_mliebel,
	Daniel P. Berrange

On 18/03/2025 22.13, Matheus Tavares Bernardino wrote:
> Hi,
> 
> tests/functional/test_migration.py says "The test works for both
> netcat-traditional and netcat-openbsd packages." But when I run it for
> qemu-system-aarch64 on an Ubuntu 22.04 container with netcat-traditional
> installed, I get the following error:
> 
> TAP version 13
> Traceback (most recent call last):
>    File "/pwd/tests/functional/test_migration.py", line 97, in test_migration_with_exec
>      self.do_migrate(dest_uri, src_uri)
>    File "/pwd/tests/functional/test_migration.py", line 72, in do_migrate
>      self.assert_migration(source_vm, dest_vm)
>    File "/pwd/tests/functional/test_migration.py", line 40, in assert_migration
>      self.assertEqual(src_vm.cmd('query-migrate')['status'], 'completed')
> AssertionError: 'failed' != 'completed'
> - failed
> + completed
> 
> not ok 1 test_migration.MigrationTest.test_migration_with_exec
> ok 2 test_migration.MigrationTest.test_migration_with_tcp_localhost
> ok 3 test_migration.MigrationTest.test_migration_with_unix
> 1..3
> 
> With netcat-openbsd (the default), it runs fine. Perhaps the test is no
> longer compatible with netcat-traditional?
> 
> QEMU was configured and built with:
> ../configure --without-default-features --target-list=aarch64-softmmu

For me it works with both flavors of "nc", the ncat and the netcat one... 
but I'm also running on Fedora. So no clue, could you maybe check whether 
there is some additional information in one of the logfiles in 
tests/functional/aarch64/test_migration.MigrationTest.test_migration_with_exec/ 
?

  Thomas



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: test_migration.py not working with netcat-traditional
  2025-03-19  7:49 ` Thomas Huth
@ 2025-03-19  8:57   ` Daniel P. Berrangé
  2025-03-19  9:37     ` Thomas Huth
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel P. Berrangé @ 2025-03-19  8:57 UTC (permalink / raw)
  To: Thomas Huth
  Cc: Matheus Tavares Bernardino, qemu-devel, farosas, philmd, bcain,
	quic_mliebel

On Wed, Mar 19, 2025 at 08:49:53AM +0100, Thomas Huth wrote:
> On 18/03/2025 22.13, Matheus Tavares Bernardino wrote:
> > Hi,
> > 
> > tests/functional/test_migration.py says "The test works for both
> > netcat-traditional and netcat-openbsd packages." But when I run it for
> > qemu-system-aarch64 on an Ubuntu 22.04 container with netcat-traditional
> > installed, I get the following error:
> > 
> > TAP version 13
> > Traceback (most recent call last):
> >    File "/pwd/tests/functional/test_migration.py", line 97, in test_migration_with_exec
> >      self.do_migrate(dest_uri, src_uri)
> >    File "/pwd/tests/functional/test_migration.py", line 72, in do_migrate
> >      self.assert_migration(source_vm, dest_vm)
> >    File "/pwd/tests/functional/test_migration.py", line 40, in assert_migration
> >      self.assertEqual(src_vm.cmd('query-migrate')['status'], 'completed')
> > AssertionError: 'failed' != 'completed'
> > - failed
> > + completed
> > 
> > not ok 1 test_migration.MigrationTest.test_migration_with_exec
> > ok 2 test_migration.MigrationTest.test_migration_with_tcp_localhost
> > ok 3 test_migration.MigrationTest.test_migration_with_unix
> > 1..3
> > 
> > With netcat-openbsd (the default), it runs fine. Perhaps the test is no
> > longer compatible with netcat-traditional?
> > 
> > QEMU was configured and built with:
> > ../configure --without-default-features --target-list=aarch64-softmmu
> 
> For me it works with both flavors of "nc", the ncat and the netcat one...
> but I'm also running on Fedora.

There are three flavour os 'nc' - the traditional netcat, openbsd netcat
and nmap netcat.

IMHO rather than debug differences in these, we'd be better off just
rewriting the test to use socat so we have 1 single impl to think about
instead of 3.


With regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: test_migration.py not working with netcat-traditional
  2025-03-19  8:57   ` Daniel P. Berrangé
@ 2025-03-19  9:37     ` Thomas Huth
  0 siblings, 0 replies; 5+ messages in thread
From: Thomas Huth @ 2025-03-19  9:37 UTC (permalink / raw)
  To: Daniel P. Berrangé
  Cc: Matheus Tavares Bernardino, qemu-devel, farosas, philmd, bcain,
	quic_mliebel

On 19/03/2025 09.57, Daniel P. Berrangé wrote:
> On Wed, Mar 19, 2025 at 08:49:53AM +0100, Thomas Huth wrote:
>> On 18/03/2025 22.13, Matheus Tavares Bernardino wrote:
>>> Hi,
>>>
>>> tests/functional/test_migration.py says "The test works for both
>>> netcat-traditional and netcat-openbsd packages." But when I run it for
>>> qemu-system-aarch64 on an Ubuntu 22.04 container with netcat-traditional
>>> installed, I get the following error:
>>>
>>> TAP version 13
>>> Traceback (most recent call last):
>>>     File "/pwd/tests/functional/test_migration.py", line 97, in test_migration_with_exec
>>>       self.do_migrate(dest_uri, src_uri)
>>>     File "/pwd/tests/functional/test_migration.py", line 72, in do_migrate
>>>       self.assert_migration(source_vm, dest_vm)
>>>     File "/pwd/tests/functional/test_migration.py", line 40, in assert_migration
>>>       self.assertEqual(src_vm.cmd('query-migrate')['status'], 'completed')
>>> AssertionError: 'failed' != 'completed'
>>> - failed
>>> + completed
>>>
>>> not ok 1 test_migration.MigrationTest.test_migration_with_exec
>>> ok 2 test_migration.MigrationTest.test_migration_with_tcp_localhost
>>> ok 3 test_migration.MigrationTest.test_migration_with_unix
>>> 1..3
>>>
>>> With netcat-openbsd (the default), it runs fine. Perhaps the test is no
>>> longer compatible with netcat-traditional?
>>>
>>> QEMU was configured and built with:
>>> ../configure --without-default-features --target-list=aarch64-softmmu
>>
>> For me it works with both flavors of "nc", the ncat and the netcat one...
>> but I'm also running on Fedora.
> 
> There are three flavour os 'nc' - the traditional netcat, openbsd netcat
> and nmap netcat.

Oh, there is even a third one? ... TIL, I wasn't aware of that yet.

> IMHO rather than debug differences in these, we'd be better off just
> rewriting the test to use socat so we have 1 single impl to think about
> instead of 3.

That's a good idea. Alternatively we could also limit the test to "ncat", 
AFAICT that name is not used by the other twos, is it?

  Thomas



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-03-19  9:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-18 21:13 [PATCH] Add files: a Matheus Tavares Bernardino
2025-03-18 21:17 ` test_migration.py not working with netcat-traditional Matheus Tavares Bernardino
2025-03-19  7:49 ` Thomas Huth
2025-03-19  8:57   ` Daniel P. Berrangé
2025-03-19  9:37     ` Thomas Huth

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).