Skip to content

iotests: Allow 147 to be run concurrently

Max Reitz qemu-devel 1 version Applied

Status from this message: Applied to my block branch.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 15 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3iotests.py: Add qemu_nbd_pipe()tests/qemu-iotests/iotests.py+14 -03 replies
2/3iotests: Bind qemu-nbd to localhost in 147tests/qemu-iotests/147+1 -11 reply
3/3iotests: Allow 147 to be run concurrentlytests/qemu-iotests/147+68 -3010 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchEric Blake
1/3R-b
2/3R-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/3] iotests: Allow 147 to be run concurrently

147 currently cannot be run concurrently for two reasons:

(1) It creates TCP/IP NBD servers on a fixed port.

(2) It uses a mix of "0.0.0.0", "localhost", and "::1" as host addresses to bind to. As explained in the commit messages of patches 2 and 3, this results in it potentially actually being able to set up two servers on the same port at the same time -- but connecting to one will always lead to the IPv6 server (regardless of whether you use "localhost" or "::1"). Therefore, even if you get two servers running concurrently, one of the tests will still break because it connects to the wrong one.

This series fixes these issues.

Note that even if you do not care about concurrency, it still is a good idea to make 147 not use a fixed port to create NBD servers on, as it may always be already in use by a totally different application.

Max Reitz (3):
iotests.py: Add qemu_nbd_pipe()
iotests: Bind qemu-nbd to localhost in 147
iotests: Allow 147 to be run concurrently

 tests/qemu-iotests/147        | 98 ++++++++++++++++++++++++-----------
 tests/qemu-iotests/iotests.py | 14 +++++
 2 files changed, 82 insertions(+), 30 deletions(-)
Signature · 1 line
2.19.2