Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Created attachment 1137281[details]
vm xml
Description of problem:
detach disk will fail and vm will be destroyed
Version-Release number of selected component (if applicable):
libvirt-1.3.2-1.el7.ppc64le
qemu-kvm-rhev-2.5.0-2.el7.ppc64le
kernel-3.10.0-327.el7.ppc64le
How reproducible:
always
Steps to Reproduce:
1. start and domain and attach a disk
# virsh start avocado-vt-vm1
Domain avocado-vt-vm1 started
# qemu-img info /tmp/libvirt-rhel-7.3-runtest-ppc64le-function-migration-4/test.img
image: /tmp/libvirt-rhel-7.3-runtest-ppc64le-function-migration-4/test.img
file format: raw
virtual size: 1.0G (1073741824 bytes)
disk size: 0
# virsh attach-disk avocado-vt-vm1 /tmp/libvirt-rhel-7.3-runtest-ppc64le-function-migration-4/test.img vdb
Disk attached successfully
# virsh dumpxml avocado-vt-vm1
...
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='/usr/share/avocado/data/avocado-vt/images/jeos-21-64.qcow2'/>
<backingStore/>
<target dev='vda' bus='virtio'/>
<alias name='virtio-disk0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
</disk>
<disk type='file' device='disk'>
<driver name='qemu' type='raw'/>
<source file='/tmp/libvirt-rhel-7.3-runtest-ppc64le-function-migration-4/test.img'/>
<backingStore/>
<target dev='vdb' bus='virtio'/>
<alias name='virtio-disk1'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
</disk>
...
2. detach disk
# virsh detach-disk avocado-vt-vm1 vdb
error: Failed to detach disk
error: Unable to read from monitor: Connection reset by peer
3.
Actual results:
failed to detach disk
Expected results:
succeed
Additional info:
Retested on x86 with latest qemu-kvm-rhev also failed, turns out bug 1318181 already filed for this, so mark this duplicated to it.
*** This bug has been marked as a duplicate of bug 1318181 ***
Created attachment 1137281 [details] vm xml Description of problem: detach disk will fail and vm will be destroyed Version-Release number of selected component (if applicable): libvirt-1.3.2-1.el7.ppc64le qemu-kvm-rhev-2.5.0-2.el7.ppc64le kernel-3.10.0-327.el7.ppc64le How reproducible: always Steps to Reproduce: 1. start and domain and attach a disk # virsh start avocado-vt-vm1 Domain avocado-vt-vm1 started # qemu-img info /tmp/libvirt-rhel-7.3-runtest-ppc64le-function-migration-4/test.img image: /tmp/libvirt-rhel-7.3-runtest-ppc64le-function-migration-4/test.img file format: raw virtual size: 1.0G (1073741824 bytes) disk size: 0 # virsh attach-disk avocado-vt-vm1 /tmp/libvirt-rhel-7.3-runtest-ppc64le-function-migration-4/test.img vdb Disk attached successfully # virsh dumpxml avocado-vt-vm1 ... <disk type='file' device='disk'> <driver name='qemu' type='qcow2'/> <source file='/usr/share/avocado/data/avocado-vt/images/jeos-21-64.qcow2'/> <backingStore/> <target dev='vda' bus='virtio'/> <alias name='virtio-disk0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </disk> <disk type='file' device='disk'> <driver name='qemu' type='raw'/> <source file='/tmp/libvirt-rhel-7.3-runtest-ppc64le-function-migration-4/test.img'/> <backingStore/> <target dev='vdb' bus='virtio'/> <alias name='virtio-disk1'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/> </disk> ... 2. detach disk # virsh detach-disk avocado-vt-vm1 vdb error: Failed to detach disk error: Unable to read from monitor: Connection reset by peer 3. Actual results: failed to detach disk Expected results: succeed Additional info: