qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tests/qemu-iotests: Mark the 'inactive-node-nbd' as unsupported with -luks
@ 2025-09-11 14:29 Thomas Huth
  2025-09-11 14:32 ` Daniel P. Berrangé
  2025-09-11 14:34 ` Kevin Wolf
  0 siblings, 2 replies; 3+ messages in thread
From: Thomas Huth @ 2025-09-11 14:29 UTC (permalink / raw)
  To: qemu-block, Kevin Wolf
  Cc: qemu-devel, Hanna Czenczek, Vladimir Sementsov-Ogievskiy,
	Eric Blake

From: Thomas Huth <thuth@redhat.com>

When running "./check -luks inactive-node-nbd", the test currently fails
because QEMU terminates immediately. The reason can be seen with the
"-p" parameter of the "check" script:

 qemu-system-x86_64: -blockdev luks,file=disk-file,node-name=disk-fmt,active=off:
  Parameter 'key-secret' is required for cipher

Quoting Kevin: "The test case just isn't made for luks. iotests.py has
special code for luks in VM.add_drive(), but not in VM.add_blockdev()."

Thus let's mark it as unsupported on luks to avoid the failure.

Suggested-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 tests/qemu-iotests/tests/inactive-node-nbd | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/qemu-iotests/tests/inactive-node-nbd b/tests/qemu-iotests/tests/inactive-node-nbd
index a95b37e7962..664157bfd04 100755
--- a/tests/qemu-iotests/tests/inactive-node-nbd
+++ b/tests/qemu-iotests/tests/inactive-node-nbd
@@ -24,6 +24,7 @@ from iotests import QemuIoInteractive
 from iotests import filter_qemu_io, filter_qtest, filter_qmp_testfiles
 
 iotests.script_initialize(supported_fmts=['generic'],
+                          unsupported_fmts=['luks'],
                           supported_protocols=['file'],
                           supported_platforms=['linux'])
 
-- 
2.51.0



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

* Re: [PATCH] tests/qemu-iotests: Mark the 'inactive-node-nbd' as unsupported with -luks
  2025-09-11 14:29 [PATCH] tests/qemu-iotests: Mark the 'inactive-node-nbd' as unsupported with -luks Thomas Huth
@ 2025-09-11 14:32 ` Daniel P. Berrangé
  2025-09-11 14:34 ` Kevin Wolf
  1 sibling, 0 replies; 3+ messages in thread
From: Daniel P. Berrangé @ 2025-09-11 14:32 UTC (permalink / raw)
  To: Thomas Huth
  Cc: qemu-block, Kevin Wolf, qemu-devel, Hanna Czenczek,
	Vladimir Sementsov-Ogievskiy, Eric Blake

On Thu, Sep 11, 2025 at 04:29:22PM +0200, Thomas Huth wrote:
> From: Thomas Huth <thuth@redhat.com>
> 
> When running "./check -luks inactive-node-nbd", the test currently fails
> because QEMU terminates immediately. The reason can be seen with the
> "-p" parameter of the "check" script:
> 
>  qemu-system-x86_64: -blockdev luks,file=disk-file,node-name=disk-fmt,active=off:
>   Parameter 'key-secret' is required for cipher
> 
> Quoting Kevin: "The test case just isn't made for luks. iotests.py has
> special code for luks in VM.add_drive(), but not in VM.add_blockdev()."
> 
> Thus let's mark it as unsupported on luks to avoid the failure.
> 
> Suggested-by: Kevin Wolf <kwolf@redhat.com>
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
>  tests/qemu-iotests/tests/inactive-node-nbd | 1 +
>  1 file changed, 1 insertion(+)

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>

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] 3+ messages in thread

* Re: [PATCH] tests/qemu-iotests: Mark the 'inactive-node-nbd' as unsupported with -luks
  2025-09-11 14:29 [PATCH] tests/qemu-iotests: Mark the 'inactive-node-nbd' as unsupported with -luks Thomas Huth
  2025-09-11 14:32 ` Daniel P. Berrangé
@ 2025-09-11 14:34 ` Kevin Wolf
  1 sibling, 0 replies; 3+ messages in thread
From: Kevin Wolf @ 2025-09-11 14:34 UTC (permalink / raw)
  To: Thomas Huth
  Cc: qemu-block, qemu-devel, Hanna Czenczek,
	Vladimir Sementsov-Ogievskiy, Eric Blake

Am 11.09.2025 um 16:29 hat Thomas Huth geschrieben:
> From: Thomas Huth <thuth@redhat.com>
> 
> When running "./check -luks inactive-node-nbd", the test currently fails
> because QEMU terminates immediately. The reason can be seen with the
> "-p" parameter of the "check" script:
> 
>  qemu-system-x86_64: -blockdev luks,file=disk-file,node-name=disk-fmt,active=off:
>   Parameter 'key-secret' is required for cipher
> 
> Quoting Kevin: "The test case just isn't made for luks. iotests.py has
> special code for luks in VM.add_drive(), but not in VM.add_blockdev()."
> 
> Thus let's mark it as unsupported on luks to avoid the failure.
> 
> Suggested-by: Kevin Wolf <kwolf@redhat.com>
> Signed-off-by: Thomas Huth <thuth@redhat.com>

Thanks, applied to the block branch.

Kevin



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

end of thread, other threads:[~2025-09-11 14:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-11 14:29 [PATCH] tests/qemu-iotests: Mark the 'inactive-node-nbd' as unsupported with -luks Thomas Huth
2025-09-11 14:32 ` Daniel P. Berrangé
2025-09-11 14:34 ` Kevin Wolf

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