iotests/108: avoid leaking FUSE mount
PATCH 1/1 iotests/108: avoid leaking FUSE mount
The QEMU s390x CI gitlab-runner recently broke because qemu-iotests 108 FUSE mount leaked and prevented the setup of the gitlab-runner environment:
chmod: cannot access '/home/gitlab-runner/builds/P3MFS4LUf/0/qemu-project/qemu/build/scratch/qcow2-file-108/fuse-export': Transport endpoint is not connected
https://gitlab.com/qemu-project/qemu/-/jobs/14796143507#L11
Always umount the FUSE export when cleaning up to prevent the leak.
--- tests/qemu-iotests/108 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tests/qemu-iotests/108 +1 -1
@@ -34,8 +34,8 @@ _cleanup() if [ -f "$TEST_DIR/qsd.pid" ]; then qsd_pid=$(cat "$TEST_DIR/qsd.pid") kill -KILL "$qsd_pid" - fusermount -u "$TEST_DIR/fuse-export" &>/dev/null fi + fusermount -u "$TEST_DIR/fuse-export" &>/dev/null rm -f "$TEST_DIR/fuse-export" } trap "_cleanup; exit \$status" 0 1 2 3 15
Signature · 1 line
2.54.0
Quoted 8 lines · Stefan Hajnoczi
The QEMU s390x CI gitlab-runner recently broke because qemu-iotests 108 FUSE mount leaked and prevented the setup of the gitlab-runner environment:
chmod: cannot access '
/home/gitlab-runner/builds/P3MFS4LUf/0/qemu-project/qemu/build/scratch/qcow2-file-108/fuse-export': Transport endpoint is not connected
Quoted 8 lines
Always umount the FUSE export when cleaning up to prevent the leak.
Cc Hanna Czenczek <[email protected]>Signed-off-by Stefan Hajnoczi <[email protected]>--- tests/qemu-iotests/108 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
With regards,
Daniel
Signature · 3 lines
|: https://berrange.com ~~ https://hachyderm.io/@berrange :| |: https://libvirt.org ~~ https://entangle-photo.org :| |: https://pixelfed.art/berrange ~~ https://fstop138.berrange.com :|
Stefan Hajnoczi
AppliedQuoted 8 lines · Stefan Hajnoczi
The QEMU s390x CI gitlab-runner recently broke because qemu-iotests 108 FUSE mount leaked and prevented the setup of the gitlab-runner environment:
chmod: cannot access '
/home/gitlab-runner/builds/P3MFS4LUf/0/qemu-project/qemu/build/scratch/qcow2-file-108/fuse-export': Transport endpoint is not connected
Quoted 8 lines
Always umount the FUSE export when cleaning up to prevent the leak.
Cc Hanna Czenczek <[email protected]>Signed-off-by Stefan Hajnoczi <[email protected]>--- tests/qemu-iotests/108 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Thanks, applied to my block tree:
https://gitlab.com/stefanha/qemu/commits/block
Stefan