Skip to contentSkip to conversation

iotest 041 is failing with -qed

PATCH Thomas Huth 2 participants 2 messages Jun 17, 2020

lore
Share & tools
lore
#0 lore raw

Hi!

I just noticed that iotest 041 is failing with -qed:

$ ./check -qed 041
QEMU          --
"tests/qemu-iotests/../../x86_64-softmmu/qemu-system-x86_64" -nodefaults
-display none -accel qtest
QEMU_IMG      -- "tests/qemu-iotests/../../qemu-img"
QEMU_IO       -- "tests/qemu-iotests/../../qemu-io"  --cache writeback
--aio threads -f qed
QEMU_NBD      -- "tests/qemu-iotests/../../qemu-nbd"
IMGFMT        -- qed
IMGPROTO      -- file
PLATFORM      -- Linux/x86_64 thuth 4.18.0-80.11.2.el8_0.x86_64
TEST_DIR      -- tests/qemu-iotests/scratch
SOCK_DIR      -- /tmp/tmp.Fgwzwl4EoG
SOCKET_SCM_HELPER -- tests/qemu-iotests/socket_scm_helper

041 fail [08:12:36] [08:13:09] (last: 31s) output
mismatch (see 041.out.bad)

qemu-iotests/041.out.bad renamed from qemu-iotests/041.out +14 -1
@@ -1,5 +1,33 @@
-........................................................................................................
+........................................F............F..................................................
+======================================================================
+FAIL: test_small_target (__main__.TestSingleBlockdev)
+----------------------------------------------------------------------
+Traceback (most recent call last):
+  File "041", line 281, in test_small_target
+    self.do_test_target_size(self.image_len // 2)
+  File "041", line 270, in do_test_target_size
+    self.assert_qmp(result, 'return', {})
+  File "tests/qemu-iotests/iotests.py", line 848, in assert_qmp
+    result = self.dictpath(d, path)
+  File "tests/qemu-iotests/iotests.py", line 822, in dictpath
+    self.fail(f'failed path traversal for "{path}" in "{d}"')
+AssertionError: failed path traversal for "return" in "{'error':

{'class': 'GenericError', 'desc': 'Shrinking images is currently not supported'}}"
+
+======================================================================
+FAIL: test_small_target (__main__.TestSingleBlockdevUnalignedLength)
+----------------------------------------------------------------------
+Traceback (most recent call last):
+ File "041", line 281, in test_small_target
+ self.do_test_target_size(self.image_len // 2)
+ File "041", line 270, in do_test_target_size
+ self.assert_qmp(result, 'return', {})
+ File "tests/qemu-iotests/iotests.py", line 848, in assert_qmp
+ result = self.dictpath(d, path)
+ File "tests/qemu-iotests/iotests.py", line 822, in dictpath
+ self.fail(f'failed path traversal for "{path}" in "{d}"')
+AssertionError: failed path traversal for "return" in "{'error':
{'class': 'GenericError', 'desc': 'Shrinking images is currently not supported'}}"
+
----------------------------------------------------------------------
Ran 104 tests

-OK
+FAILED (failures=2)
Failures: 041
Failed 1 of 1 iotests

Is it a known problem already?

Thomas

#1 lore raw
Quoted 67 lines · Thomas Huth

Hi!

I just noticed that iotest 041 is failing with -qed:

$ ./check -qed 041
QEMU          --
"tests/qemu-iotests/../../x86_64-softmmu/qemu-system-x86_64" -nodefaults
-display none -accel qtest
QEMU_IMG      -- "tests/qemu-iotests/../../qemu-img"
QEMU_IO       -- "tests/qemu-iotests/../../qemu-io"  --cache writeback
--aio threads -f qed
QEMU_NBD      -- "tests/qemu-iotests/../../qemu-nbd"
IMGFMT        -- qed
IMGPROTO      -- file
PLATFORM      -- Linux/x86_64 thuth 4.18.0-80.11.2.el8_0.x86_64
TEST_DIR      -- tests/qemu-iotests/scratch
SOCK_DIR      -- /tmp/tmp.Fgwzwl4EoG
SOCKET_SCM_HELPER -- tests/qemu-iotests/socket_scm_helper

041 fail [08:12:36] [08:13:09] (last: 31s) output
mismatch (see 041.out.bad)

qemu-iotests/041.out.bad renamed from qemu-iotests/041.out +14 -1
@@ -1,5 +1,33 @@
-........................................................................................................
+........................................F............F..................................................
+======================================================================
+FAIL: test_small_target (__main__.TestSingleBlockdev)
+----------------------------------------------------------------------
+Traceback (most recent call last):
+  File "041", line 281, in test_small_target
+    self.do_test_target_size(self.image_len // 2)
+  File "041", line 270, in do_test_target_size
+    self.assert_qmp(result, 'return', {})
+  File "tests/qemu-iotests/iotests.py", line 848, in assert_qmp
+    result = self.dictpath(d, path)
+  File "tests/qemu-iotests/iotests.py", line 822, in dictpath
+    self.fail(f'failed path traversal for "{path}" in "{d}"')
+AssertionError: failed path traversal for "return" in "{'error':

{'class': 'GenericError', 'desc': 'Shrinking images is currently not supported'}}"

qemu-iotests/041.out.bad renamed from qemu-iotests/041.out +14 -0
+
+======================================================================
+FAIL: test_small_target (__main__.TestSingleBlockdevUnalignedLength)
+----------------------------------------------------------------------
+Traceback (most recent call last):
+  File "041", line 281, in test_small_target
+    self.do_test_target_size(self.image_len // 2)
+  File "041", line 270, in do_test_target_size
+    self.assert_qmp(result, 'return', {})
+  File "tests/qemu-iotests/iotests.py", line 848, in assert_qmp
+    result = self.dictpath(d, path)
+  File "tests/qemu-iotests/iotests.py", line 822, in dictpath
+    self.fail(f'failed path traversal for "{path}" in "{d}"')
+AssertionError: failed path traversal for "return" in "{'error':

{'class': 'GenericError', 'desc': 'Shrinking images is currently not supported'}}"

qemu-iotests/041.out.bad renamed from qemu-iotests/041.out +2 -1
+
 ----------------------------------------------------------------------
 Ran 104 tests
 
-OK
+FAILED (failures=2)

Failures: 041
Failed 1 of 1 iotests

Quoted 1 line

Is it a known problem already?

Well, FWIW, I knew of it, but didn’t get around to doing anything about it yet.

Thanks for reporting it anyway, now I have better justification to do something about it. :) (And of course in case I would have missed it.)

Max