Revert "iotests: Stop NBD server in test 162 before starting the next one"
PATCH 1/1 Revert "iotests: Stop NBD server in test 162 before starting the next one"
From: Thomas Huth <[email protected]>
This reverts commit e2668ba1ed44ad56f2f1653ff5f53b277d534fac.
This commit made test 162 fail occasionally with:
162 fail [13:06:40] [13:06:40] 0.2s (last: 0.2s) output mismatch
--- tests/qemu-iotests/162.out
+++ tests/qemu-iotests/scratch/qcow2-file-162/162.out.bad @@ -3,6 +3,7 @@
=== NBD ===
qemu-img: Could not open 'json:{"driver": "nbd", "host": -1}': address
resolution failed for -1:10809: Name or service not known
image: nbd://localhost:PORT
+./common.rc: line 371: kill: (891116) - No such process
image: nbd+unix://?socket=42
The nbd server should normally terminate automatically, so trying to kill it here now seems to cause a race that will cause a test failure when the server terminated before the kill command has been executed.
The "Stop NBD server" patch has originally been written to solve another problem with a hanging nbd server, but since that problem has been properly solved by commit 1453e04c63, we now don't need the "_stop_nbd_server" here anymore.
--- tests/qemu-iotests/162 | 1 - 1 file changed, 1 deletion(-)
tests/qemu-iotests/162 +0 -1
@@ -65,7 +65,6 @@ done $QEMU_IMG info "json:{'driver': 'nbd', 'host': 'localhost', 'port': $port}" \ | grep '^image' | sed -e "s/$port/PORT/" -_stop_nbd_server # This is a test for NBD's bdrv_refresh_filename() implementation: It expects # either host or path to be set, but it must not assume that they are set to
Signature · 1 line
2.49.0
Quoted 17 lines · Thomas Huth
From: Thomas Huth<[email protected]>
This reverts commit
e2668ba1ed44ad56f2f1653ff5f53b277d534fac.This commit made test 162 fail occasionally with:
162 fail [13:06:40] [13:06:40] 0.2s (last: 0.2s) output mismatch
--- tests/qemu-iotests/162.out
+++ tests/qemu-iotests/scratch/qcow2-file-162/162.out.bad @@ -3,6 +3,7 @@
=== NBD ===
qemu-img: Could not open 'json:{"driver": "nbd", "host": -1}': address
resolution failed for -1:10809: Name or service not known
image: nbd://localhost:PORT
+./common.rc: line 371: kill: (891116) - No such process
image: nbd+unix://?socket=42
Quoted 7 lines
The nbd server should normally terminate automatically, so trying to kill it here now seems to cause a race that will cause a test failure when the server terminated before the kill command has been executed.
The "Stop NBD server" patch has originally been written to solve another problem with a hanging nbd server, but since that problem has been properly solved by commit
1453e04c63, we now don't need the "_stop_nbd_server" here
I can’t find that hash; do you mean 3e1683485656?
Quoted 6 lines
anymore.
Signed-off-by Thomas Huth<[email protected]>--- tests/qemu-iotests/162 | 1 - 1 file changed, 1 deletion(-)
With the hash fixed (or explained where I have to look :)):
Quoted 22 lines · Hanna Czenczek
Quoted 21 lines · Thomas Huth
From: Thomas Huth<[email protected]>
This reverts commit
e2668ba1ed44ad56f2f1653ff5f53b277d534fac.This commit made test 162 fail occasionally with:
162 fail [13:06:40] [13:06:40] 0.2s (last: 0.2s) output mismatch
--- tests/qemu-iotests/162.out
+++ tests/qemu-iotests/scratch/qcow2-file-162/162.out.bad @@ -3,6 +3,7 @@
=== NBD ===
qemu-img: Could not open 'json:{"driver": "nbd", "host": -1}': address
resolution failed for -1:10809: Name or service not known
image: nbd://localhost:PORT
+./common.rc: line 371: kill: (891116) - No such process
image: nbd+unix://?socket=42The nbd server should normally terminate automatically, so trying to kill it here now seems to cause a race that will cause a test failure when the server terminated before the kill command has been executed.
Quoted 5 lines
Quoted 3 lines
The "Stop NBD server" patch has originally been written to solve another problem with a hanging nbd server, but since that problem has been properly solved by commit
1453e04c63, we now don't need the "_stop_nbd_server" hereI can’t find that hash; do you mean
3e1683485656?
Drat, copy-n-paste error from my side, it's 3e1683485656 indeed!
Quoted 10 lines
Quoted 6 lines
anymore.
Signed-off-by Thomas Huth<[email protected]>--- tests/qemu-iotests/162 | 1 - 1 file changed, 1 deletion(-)With the hash fixed (or explained where I have to look :)):
Reviewed-by Hanna Czenczek <[email protected]>
Thanks,
Thomas