Bug 1318490 - detach disk failed and vm destroyed
Summary: detach disk failed and vm destroyed
Keywords:
Status: CLOSED DUPLICATE of bug 1318181
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libvirt
Version: 7.3
Hardware: ppc64le
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Libvirt Maintainers
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-17 04:03 UTC by Wayne Sun
Modified: 2016-03-17 07:16 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-03-17 07:16:14 UTC
Target Upstream Version:


Attachments (Terms of Use)
vm xml (2.23 KB, text/plain)
2016-03-17 04:03 UTC, Wayne Sun
no flags Details
libvirtd log (52.54 KB, text/plain)
2016-03-17 04:05 UTC, Wayne Sun
no flags Details
vm qemu log (5.26 KB, text/plain)
2016-03-17 04:05 UTC, Wayne Sun
no flags Details

Description Wayne Sun 2016-03-17 04:03:59 UTC
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:

Comment 2 Wayne Sun 2016-03-17 04:05:00 UTC
Created attachment 1137282 [details]
libvirtd log

Comment 3 Wayne Sun 2016-03-17 04:05:33 UTC
Created attachment 1137283 [details]
vm qemu log

Comment 4 Wayne Sun 2016-03-17 07:16:14 UTC
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 ***


Note You need to log in before you can comment on or make changes to this bug.