iotests: Add (NBD-based) tests for inactive nodes
authorKevin Wolf <kwolf@redhat.com>
Tue, 4 Feb 2025 21:14:07 +0000 (22:14 +0100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 6 Feb 2025 13:47:51 +0000 (14:47 +0100)
commitbbf105ef3cc48fff282789e9bf56b7a81e1407bd
tree53ccadf84587b28e95a1c6836dc18aa9137fcd8e
parent3ea437ab3d561ca79b95a34c5128e370de4738e3
iotests: Add (NBD-based) tests for inactive nodes

This tests different types of operations on inactive block nodes
(including graph changes, block jobs and NBD exports) to make sure that
users manually activating and inactivating nodes doesn't break things.

Support for inactive nodes in other export types will have to come with
separate test cases because they have different dependencies like blkio
or root permissions and we don't want to disable this basic test when
they are not fulfilled.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Acked-by: Fabiano Rosas <farosas@suse.de>
Message-ID: <20250204211407.381505-17-kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/iotests.py
tests/qemu-iotests/tests/inactive-node-nbd [new file with mode: 0755]
tests/qemu-iotests/tests/inactive-node-nbd.out [new file with mode: 0644]