From: Thomas Huth <thuth@redhat.com>
To: QEMU Developers <qemu-devel@nongnu.org>,
Kevin Wolf <kwolf@redhat.com>,
hreitz@redhat.com
Cc: Maxim Levitsky <mlevitsk@redhat.com>,
Hyman Huang <yong.huang@smartx.com>
Subject: Some iotests are failing with -luks
Date: Wed, 10 Sep 2025 17:16:17 +0200 [thread overview]
Message-ID: <425ef990-85cb-4c02-bb41-2f88f939d147@redhat.com> (raw)
Hi,
when running "./check -luks" in the qemu-iotests directory,
some tests are failing for me:
295 296 inactive-node-nbd luks-detached-header
Is that a known problem already?
FWIW, 295 is failing with the following output:
295 fail [17:03:01] [17:03:17] 15.7s failed, exit status 1
--- /home/thuth/devel/qemu/tests/qemu-iotests/295.out
+++ /home/thuth/tmp/qemu-build/tests/qemu-iotests/scratch/luks-file-295/295.out.bad
@@ -1,40 +1,326 @@
-{"execute": "job-dismiss", "arguments": {"id": "job_add_key"}}
-{"return": {}}
-{"execute": "job-dismiss", "arguments": {"id": "job_add_key"}}
-{"return": {}}
-{"execute": "job-dismiss", "arguments": {"id": "job_erase_key"}}
-{"return": {}}
-.{"execute": "job-dismiss", "arguments": {"id": "job_add_key"}}
-{"return": {}}
-{"execute": "job-dismiss", "arguments": {"id": "job_erase_key"}}
-{"return": {}}
-Job failed: Invalid password, cannot unlock any keyslot
-{"execute": "job-dismiss", "arguments": {"id": "job_add_key"}}
-{"return": {}}
-{"execute": "job-dismiss", "arguments": {"id": "job_add_key"}}
-{"return": {}}
-.{"execute": "job-dismiss", "arguments": {"id": "job_add_key"}}
-{"return": {}}
-{"execute": "job-dismiss", "arguments": {"id": "job_add_key"}}
-{"return": {}}
-Job failed: Refusing to overwrite active keyslot 2 - please erase it first
-{"execute": "job-dismiss", "arguments": {"id": "job_add_key"}}
-{"return": {}}
-{"execute": "job-dismiss", "arguments": {"id": "job_add_key"}}
-{"return": {}}
-{"execute": "job-dismiss", "arguments": {"id": "job_add_key"}}
-{"return": {}}
-{"execute": "job-dismiss", "arguments": {"id": "job_erase_key"}}
-{"return": {}}
-{"execute": "job-dismiss", "arguments": {"id": "job_erase_key"}}
-{"return": {}}
-Job failed: All the active keyslots match the (old) password that was given and erasing them will erase all the data in the image irreversibly - refusing operation
-{"execute": "job-dismiss", "arguments": {"id": "job_erase_key"}}
-{"return": {}}
-{"execute": "job-dismiss", "arguments": {"id": "job_erase_key"}}
-{"return": {}}
-.
+EWARNING:qemu.machine.machine:qemu received signal 6; command: "/home/thuth/tmp/qemu-build/qemu-system-x86_64 -display none -vga none -chardev socket,id=mon,fd=5 -mon chardev=mon,mode=control -chardev socket,id=qtest,fd=3 -qtest chardev:qtest -accel qtest -nodefaults -display none -accel qtest"
+EEWARNING:qemu.machine.machine:qemu received signal 6; command: "/home/thuth/tmp/qemu-build/qemu-system-x86_64 -display none -vga none -chardev socket,id=mon,fd=6 -mon chardev=mon,mode=control -chardev socket,id=qtest,fd=3 -qtest chardev:qtest -accel qtest -nodefaults -display none -accel qtest"
+EEWARNING:qemu.machine.machine:qemu received signal 6; command: "/home/thuth/tmp/qemu-build/qemu-system-x86_64 -display none -vga none -chardev socket,id=mon,fd=10 -mon chardev=mon,mode=control -chardev socket,id=qtest,fd=3 -qtest chardev:qtest -accel qtest -nodefaults -display none -accel qtest"
+E
+======================================================================
+ERROR: testChangeKey (__main__.EncryptionSetupTestCase.testChangeKey)
+----------------------------------------------------------------------
+Traceback (most recent call last):
+ File "/home/thuth/devel/qemu/tests/qemu-iotests/295", line 204, in testChangeKey
+ self.addKeyQmp("testdev", new_secret = self.secrets[1])
+ File "/home/thuth/devel/qemu/tests/qemu-iotests/295", line 159, in addKeyQmp
+ self.vm.cmd('x-blockdev-amend', **args)
+ File "/home/thuth/devel/qemu/python/qemu/machine/machine.py", line 735, in cmd
+ ret = self._qmp.cmd(cmd, **qmp_args)
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/thuth/devel/qemu/python/qemu/qmp/legacy.py", line 214, in cmd
+ return self._sync(
+ ^^^^^^^^^^^
+ File "/home/thuth/devel/qemu/python/qemu/qmp/legacy.py", line 102, in _sync
+ return self._aloop.run_until_complete(
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/usr/lib64/python3.11/asyncio/base_events.py", line 654, in run_until_complete
+ return future.result()
+ ^^^^^^^^^^^^^^^
+ File "/usr/lib64/python3.11/asyncio/tasks.py", line 452, in wait_for
+ return await fut
+ ^^^^^^^^^
+ File "/home/thuth/devel/qemu/python/qemu/qmp/qmp_client.py", line 632, in execute
+ return await self.execute_msg(msg)
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/thuth/devel/qemu/python/qemu/qmp/qmp_client.py", line 574, in execute_msg
+ reply = await self._execute(msg)
+ ^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/thuth/devel/qemu/python/qemu/qmp/qmp_client.py", line 496, in _execute
+ return await self._reply(exec_id)
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/thuth/devel/qemu/python/qemu/qmp/qmp_client.py", line 463, in _reply
+ raise result
+qemu.qmp.qmp_client.ExecInterruptedError: Disconnected
etc.
296 looks very similar (also a "qemu received signal 6" error),
but the others look like this:
inactive-node-nbd fail [17:13:56] [17:14:04] 7.5s failed, exit status 1
--- /home/thuth/devel/qemu/tests/qemu-iotests/tests/inactive-node-nbd.out
+++ /home/thuth/tmp/qemu-build/tests/qemu-iotests/scratch/luks-file-inactive-node-nbd/inactive-node-nbd.out.bad
@@ -1,239 +1,64 @@
Preparing disk...
Launching VM...
-{"execute": "nbd-server-start", "arguments": {"addr": {"data": {"path": "SOCK_DIR/PID-nbd.sock"}, "type": "unix"}}}
-{"return": {}}
+ERROR:qemu.qmp.qmp_client.qemu-223907:Failed to receive Greeting: EOFError
+ERROR:qemu.qmp.qmp_client.qemu-223907:Failed to establish session: EOFError
+Traceback (most recent call last):
+ File "/home/thuth/devel/qemu/python/qemu/qmp/protocol.py", line 425, in _session_guard
+ await coro
+ File "/home/thuth/devel/qemu/python/qemu/qmp/qmp_client.py", line 250, in _establish_session
+ self._greeting = await self._get_greeting()
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/thuth/devel/qemu/python/qemu/qmp/qmp_client.py", line 270, in _get_greeting
+ msg = await self._recv()
+ ^^^^^^^^^^^^^^^^^^
+ File "/home/thuth/devel/qemu/python/qemu/qmp/protocol.py", line 1009, in _recv
+ message = await self._do_recv()
+ ^^^^^^^^^^^^^^^^^^^^^
+ File "/home/thuth/devel/qemu/python/qemu/qmp/qmp_client.py", line 402, in _do_recv
+ msg_bytes = await self._readline()
+ ^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/thuth/devel/qemu/python/qemu/qmp/protocol.py", line 977, in _readline
+ raise EOFError
+EOFError
and:
luks-detached-header fail [17:15:26] [17:15:38] 12.2s failed, exit status 1
--- /home/thuth/devel/qemu/tests/qemu-iotests/tests/luks-detached-header.out
+++ /home/thuth/tmp/qemu-build/tests/qemu-iotests/scratch/luks-file-luks-detached-header/luks-detached-header.out.bad
@@ -1,5 +1,55 @@
-..
+EE
+======================================================================
+ERROR: test_detached_luks_header (__main__.TestDetachedLUKSHeader.test_detached_luks_header)
+----------------------------------------------------------------------
+Traceback (most recent call last):
+ File "/home/thuth/devel/qemu/tests/qemu-iotests/tests/luks-detached-header", line 139, in setUp
+ res = qemu_img_create(
+ ^^^^^^^^^^^^^^^^
+ File "/home/thuth/devel/qemu/tests/qemu-iotests/iotests.py", line 278, in qemu_img_create
+ return qemu_img('create', *args)
+ ^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/thuth/devel/qemu/tests/qemu-iotests/iotests.py", line 261, in qemu_img
+ return qemu_tool(*full_args, check=check, combine_stdio=combine_stdio)
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/home/thuth/devel/qemu/tests/qemu-iotests/iotests.py", line 241, in qemu_tool
+ raise VerboseProcessError(
+qemu.utils.VerboseProcessError: Command '('/home/thuth/tmp/qemu-build/qemu-img', 'create', '-f', 'luks', '-o', 'iter-time=10', '-o', 'key-secret=sec0', '-o', 'detached-header=true', '--object', 'secret,id=sec0,data=foo', '/home/thuth/tmp/qemu-build/tests/qemu-iotests/scratch/luks-file-luks-detached-header/detached_header.img2')' returned non-zero exit status 1.
+ ┏━ output ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
+ ┃ Formatting '/home/thuth/tmp/qemu-build/tests/qemu-iotests/scratch/l
+ ┃ uks-file-luks-detached-header/detached_header.img2', fmt=luks
+ ┃ size=-1 key-secret=sec0 iter-time=10 detached-header=true
+ ┃ qemu-img: /home/thuth/tmp/qemu-build/tests/qemu-iotests/scratch/luk
+ ┃ s-file-luks-detached-header/detached_header.img2: Parameter
+ ┃ 'detached-header' is unexpected
+ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Any ideas?
Thomas
next reply other threads:[~2025-09-10 15:17 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-10 15:16 Thomas Huth [this message]
2025-09-10 16:08 ` Some iotests are failing with -luks Kevin Wolf
2025-09-10 18:38 ` Kevin Wolf
2025-09-11 2:33 ` Yong Huang
2025-09-11 10:04 ` Kevin Wolf
2025-09-11 10:38 ` Daniel P. Berrangé
2025-09-15 13:18 ` Kevin Wolf
2025-09-11 8:43 ` Daniel P. Berrangé
2025-09-11 11:21 ` Thomas Huth
2025-09-11 12:13 ` Kevin Wolf
2025-09-12 14:23 ` Daniel P. Berrangé
2025-09-12 14:53 ` Kevin Wolf
2025-09-12 18:35 ` Daniel P. Berrangé
2025-09-15 12:45 ` Kevin Wolf
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=425ef990-85cb-4c02-bb41-2f88f939d147@redhat.com \
--to=thuth@redhat.com \
--cc=hreitz@redhat.com \
--cc=kwolf@redhat.com \
--cc=mlevitsk@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=yong.huang@smartx.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).