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.
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:
Embargoed:


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.