$ virsh detach-disk test-vm --live vdx
error: Failed to detach disk
error: internal error: unable to execute QEMU command 'device_del': Device virtio-disk23 is already in the process of unplug
As expected, the error is reproducible. Now, let's update qemu using the -proposed pocket and check that the new version fixes the bug.
Performing the verification for Jammy.
First, make sure that we can reproduce the problem following the instructions laid out in the Test Plan.
$ apt policy qemu-system-x86 2ubuntu6. 9 2ubuntu6. 9 2ubuntu6. 9 500 (phased 20%) archive. ubuntu. com/ubuntu jammy-updates/main amd64 Packages dpkg/status 6.2+dfsg- 2ubuntu6. 6 500 security. ubuntu. com/ubuntu jammy-security/main amd64 Packages 6.2+dfsg- 2ubuntu6 500 archive. ubuntu. com/ubuntu jammy/main amd64 Packages
qemu-system-x86:
Installed: 1:6.2+dfsg-
Candidate: 1:6.2+dfsg-
Version table:
*** 1:6.2+dfsg-
500 http://
100 /var/lib/
1:
500 http://
1:
500 http://
$ virsh detach-disk test-vm --live vdx
error: Failed to detach disk
error: internal error: unable to execute QEMU command 'device_del': Device virtio-disk23 is already in the process of unplug
As expected, the error is reproducible. Now, let's update qemu using the -proposed pocket and check that the new version fixes the bug.
$ apt policy qemu-system-x86 2ubuntu6. 10 2ubuntu6. 10 2ubuntu6. 10 500 archive. ubuntu. com/ubuntu jammy-proposed/main amd64 Packages dpkg/status 6.2+dfsg- 2ubuntu6. 9 500 (phased 20%) archive. ubuntu. com/ubuntu jammy-updates/main amd64 Packages 6.2+dfsg- 2ubuntu6. 6 500 security. ubuntu. com/ubuntu jammy-security/main amd64 Packages 6.2+dfsg- 2ubuntu6 500 archive. ubuntu. com/ubuntu jammy/main amd64 Packages
qemu-system-x86:
Installed: 1:6.2+dfsg-
Candidate: 1:6.2+dfsg-
Version table:
*** 1:6.2+dfsg-
500 http://
100 /var/lib/
1:
500 http://
1:
500 http://
1:
500 http://
$ virsh detach-disk test-vm --live vdx
Disk detached successfully
$ virsh domblklist test-vm ------- ------- ------- ------- ------- ------- ------- lunar-server- cloudimg- amd64.img
Target Source
-------
vda /home/ubuntu/
As expected, the detach-disk operation now works.
This concludes the verification for Jammy.