Skip to contentSkip to conversation

iotests: Fix stuck NBD process on 33

PATCH In review Eric Blake 3 participants 3 messages Mar 12, 2018 – Mar 13, 2018

lore
Share & tools
lore

Eric Blake

author
#0 lore raw

PATCH 1/1 iotests: Fix stuck NBD process on 33

Commit afe35cde6 added additional actions to test 33, but forgot to reset the image between tests. As a result, './check -nbd 33' fails because the qemu-nbd process from the first half is still occupying the port, preventing the second half from starting a new qemu-nbd process. Worse, the failure leaves a rogue qemu-nbd process behind even after the test fails, which causes knock-on failures to later tests that also want to start qemu-nbd.

---

I'll take this through my NBD queue (pull request within the next 16 hours), as obviously I want to test that the other patches on that queue can get past the iotests for NBD :)

 tests/qemu-iotests/033 | 1 +
 1 file changed, 1 insertion(+)
tests/qemu-iotests/033 +1 -0
index a1d8357331d..ee8a1338bbd 100755
@@ -105,6 +105,7 @@ for align in 512 4k; do
 done
 done
 
+_cleanup_test_img
 
 # Trigger truncate that would shrink qcow2 L1 table, which is done by
 #   clearing one entry (8 bytes) with bdrv_co_pwrite_zeroes()
Signature · 1 line
2.14.3
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Eric Blake

Commit afe35cde6 added additional actions to test 33, but forgot to reset the image between tests. As a result, './check -nbd 33' fails because the qemu-nbd process from the first half is still occupying the port, preventing the second half from starting a new qemu-nbd process. Worse, the failure leaves a rogue qemu-nbd process behind even after the test fails, which causes knock-on failures to later tests that also want to start qemu-nbd.

Quoted 8 lines

---

I'll take this through my NBD queue (pull request within the next 16 hours), as obviously I want to test that the other patches on that queue can get past the iotests for NBD :)

 tests/qemu-iotests/033 | 1 +
 1 file changed, 1 insertion(+)
#2 lore raw
Quoted 13 lines · Max Reitz
Quoted 12 lines · Eric Blake

Commit afe35cde6 added additional actions to test 33, but forgot to reset the image between tests. As a result, './check -nbd 33' fails because the qemu-nbd process from the first half is still occupying the port, preventing the second half from starting a new qemu-nbd process. Worse, the failure leaves a rogue qemu-nbd process behind even after the test fails, which causes knock-on failures to later tests that also want to start qemu-nbd.

---

Quoted 9 lines
Quoted 6 lines

I'll take this through my NBD queue (pull request within the next 16 hours), as obviously I want to test that the other patches on that queue can get past the iotests for NBD :)

  tests/qemu-iotests/033 | 1 +
  1 file changed, 1 insertion(+)

ack; thanks!