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 818876 - streaming to stable iscsi path names (with colons) fails to close backing file
Summary: streaming to stable iscsi path names (with colons) fails to close backing file
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qemu-kvm
Version: 6.3
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Paolo Bonzini
QA Contact: Virtualization Bugs
URL:
Whiteboard:
: 818891 (view as bug list)
Depends On:
Blocks: 582475 806280 818891
TreeView+ depends on / blocked
 
Reported: 2012-05-04 09:03 UTC by Shaolong Hu
Modified: 2012-06-20 11:47 UTC (History)
10 users (show)

Fixed In Version: qemu-kvm-0.12.1.2-2.292.el6
Doc Type: Bug Fix
Doc Text:
No Documentation Needed
Clone Of:
: 819974 (view as bug list)
Environment:
Last Closed: 2012-06-20 11:47:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0746 0 normal SHIPPED_LIVE qemu-kvm bug fix and enhancement update 2012-06-19 19:31:48 UTC

Description Shaolong Hu 2012-05-04 09:03:54 UTC
Description of problem:
------------------------
Streaming fails to close backing file when use iscsi.


Version-Release number of selected component (if applicable):
--------------------------------------------------------------
qemu-kvm-rhev-0.12.1.2-2.288.el6.x86_64


How reproducible:
------------------
100%


Steps to Reproduce:
--------------------
1.boot guest with:

-drive file=/dev/disk/by-path/ip-10.66.9.64\:3260-iscsi-iqn.2001-04.com.example\:storage.disk1.amiens.sys1.xyz-lun-1,cache=none,if=none,rerror=stop,werror=stop,id=drive-virtio-disk0,format=qcow2 -device virtio-blk-pci,drive=drive-virtio-disk0,id=device-virtio-disk0

2.block stream this drive to another iscsi lum:

(qemu) snapshot_blkdev drive-virtio-disk0 /dev/disk/by-path/ip-10.66.9.64:3260-iscsi-iqn.2001-04.com.example:storage.disk1.amiens.sys1.xyz-lun-2 qcow2


3.after block job finishes:

(qemu) info block-jobs
No active jobs 
(qemu) info block
drive-virtio-disk0: removable=0 io-status=ok file=/dev/disk/by-path/ip-10.66.9.64:3260-iscsi-iqn.2001-04.com.example:storage.disk1.amiens.sys1.xyz-lun-2 backing_file=/dev/disk/by-path/ip-10.66.9.64:3260-iscsi-iqn.2001-04.com.example:storage.disk1.amiens.sys1.xyz-lun-1 ro=0 drv=qcow2 encrypted=0

4. /dev/sdb and /dev/sdc is the lun 1 and lun 2

[root@shu ~]# lsof -a -p 31435 | grep dev
qemu-kvm 31435 root  DEL    REG                0,4               234787 /dev/zero
qemu-kvm 31435 root  DEL    REG                0,4               234768 /dev/zero
qemu-kvm 31435 root    0u   CHR              136,0         0t0        3 /dev/pts/0
qemu-kvm 31435 root    1u   CHR              136,0         0t0        3 /dev/pts/0
qemu-kvm 31435 root    2u   CHR              136,0         0t0        3 /dev/pts/0
qemu-kvm 31435 root    7u   CHR             10,232         0t0    11828 /dev/kvm
qemu-kvm 31435 root   11u   CHR             10,200         0t0     9192 /dev/net/tun
qemu-kvm 31435 root   12u   BLK               8,16 0x1c0000000   234302 /dev/sdb
qemu-kvm 31435 root   24u   BLK               8,32 0x1c0000000   234311 /dev/sdc


Additional info:
----------------
if in step 2, streaming to regular file, this won't happen.

Comment 1 Shaolong Hu 2012-05-04 09:06:25 UTC
in step 2, there is one more command:
(qemu) block-stream drive-virtio-disk0

And i have to confirm whether this happens with mirroring.

Comment 3 Shaolong Hu 2012-05-04 10:01:38 UTC
mirroring suffers from the problem, but worse, open a new one to track it:
Bug 818891 - mirroring fails with iscsi

Comment 4 Paolo Bonzini 2012-05-04 12:32:28 UTC
Please retry this with QMP.  It looks like bdrv_change_backing_file failed (see "info block" output), so close_unused_images was not executed.

Comment 11 Ademar Reis 2012-05-07 18:43:30 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
No Documentation Needed

Comment 13 Ademar Reis 2012-05-08 14:26:49 UTC
*** Bug 818891 has been marked as a duplicate of this bug. ***

Comment 17 Shaolong Hu 2012-05-11 05:09:04 UTC
Test with steps in comment 7 and steps in bug Bug 818891, this problem has gone in both streaming and mirroring, fixed.

Verified with qemu-kvm-rhev-0.12.1.2-2.292.el6.x86_64

Comment 19 errata-xmlrpc 2012-06-20 11:47:24 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0746.html


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