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 818891 - mirroring to stable iscsi path names (with colons) fails
Summary: mirroring to stable iscsi path names (with colons) fails
Keywords:
Status: CLOSED DUPLICATE of bug 818876
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qemu-kvm
Version: 6.3
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Paolo Bonzini
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On: 818876
Blocks: 806280
TreeView+ depends on / blocked
 
Reported: 2012-05-04 09:58 UTC by Shaolong Hu
Modified: 2012-05-11 11:59 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
No Documentation Needed
Clone Of:
Environment:
Last Closed: 2012-05-08 14:26:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Shaolong Hu 2012-05-04 09:58:32 UTC
Description of problem:
-------------------------
after mirroring with iscsi, i/o error, guest stopped.


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


How reproducible:
-----------------
1/1


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

-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

[root@shu ~]# lsof -a -p 31654 | grep dev
qemu-kvm 31654 root  DEL    REG                0,4               235845 /dev/zero
qemu-kvm 31654 root  DEL    REG                0,4               235826 /dev/zero
qemu-kvm 31654 root    0u   CHR              136,0         0t0        3 /dev/pts/0
qemu-kvm 31654 root    1u   CHR              136,0         0t0        3 /dev/pts/0
qemu-kvm 31654 root    2u   CHR              136,0         0t0        3 /dev/pts/0
qemu-kvm 31654 root    7u   CHR             10,232         0t0    11828 /dev/kvm
qemu-kvm 31654 root   11u   CHR             10,200         0t0     9192 /dev/net/tun
qemu-kvm 31654 root   12u   BLK               8,16 0x1c0000000   235632 /dev/sdb


2.create a snapshot to lun 2:

(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

(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

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


3.mirroring to lun 3:

{ "execute" : "__com.redhat_drive-mirror", "arguments" : { "device" : "drive-virtio-disk0", "target" : "/dev/disk/by-path/ip-10.66.9.64:3260-iscsi-iqn.2001-04.com.example:storage.disk1.amiens.sys1.xyz-lun-3", "format": "qcow2", "mode": "absolute-paths", "full" : true } }
{"return": {}}

[root@shu ~]# lsof -a -p 31654 | grep dev
qemu-kvm 31654 root  DEL    REG                0,4               235845 /dev/zero
qemu-kvm 31654 root  DEL    REG                0,4               235826 /dev/zero
qemu-kvm 31654 root    0u   CHR              136,0         0t0        3 /dev/pts/0
qemu-kvm 31654 root    1u   CHR              136,0         0t0        3 /dev/pts/0
qemu-kvm 31654 root    2u   CHR              136,0         0t0        3 /dev/pts/0
qemu-kvm 31654 root    7u   CHR             10,232         0t0    11828 /dev/kvm
qemu-kvm 31654 root   11u   CHR             10,200         0t0     9192 /dev/net/tun
qemu-kvm 31654 root   12u   BLK               8,16 0x1c0000000   235632 /dev/sdb
qemu-kvm 31654 root   23u   BLK               8,32 0x1c0000000   235635 /dev/sdc
qemu-kvm 31654 root   25u   BLK               8,48 0x1c0000000   235639 /dev/sdd


4.after steady state, reopen to lun 3:

{ "execute": "__com.redhat_drive-reopen", "arguments": {"device": "drive-virtio-disk0", "new-image-file": "/dev/disk/by-path/ip-10.66.9.64:3260-iscsi-iqn.2001-04.com.example:storage.disk1.amiens.sys1.xyz-lun-3", "format": "qcow2" } }
{"timestamp": {"seconds": 1336123595, "microseconds": 260749}, "event": "BLOCK_JOB_COMPLETED", "data": {"device": "drive-virtio-disk0", "len": 7516192768, "offset": 7516192768, "speed": 0, "type": "mirror"}}
{"error": {"class": "OpenFileFailed", "desc": "Could not open '/dev/disk/by-path/ip-10.66.9.64:3260-iscsi-iqn.2001-04.com.example:storage.disk1.amiens.sys1.xyz-lun-2'", "data": {"filename": "/dev/disk/by-path/ip-10.66.9.64:3260-iscsi-iqn.2001-04.com.example:storage.disk1.amiens.sys1.xyz-lun-2"}}}
{"timestamp": {"seconds": 1336123608, "microseconds": 86257}, "event": "BLOCK_IO_ERROR", "data": {"device": "drive-virtio-disk0", "__com.redhat_debug_info": {"message": "Input/output error", "errno": 5}, "__com.redhat_reason": "eio", "operation": "write", "action": "stop"}}
{"timestamp": {"seconds": 1336123608, "microseconds": 86567}, "event": "STOP"}

[root@shu ~]# lsof -a -p 31654 | grep dev
qemu-kvm 31654 root  DEL    REG                0,4            235845 /dev/zero
qemu-kvm 31654 root  DEL    REG                0,4            235826 /dev/zero
qemu-kvm 31654 root    0u   CHR              136,0      0t0        3 /dev/pts/0
qemu-kvm 31654 root    1u   CHR              136,0      0t0        3 /dev/pts/0
qemu-kvm 31654 root    2u   CHR              136,0      0t0        3 /dev/pts/0
qemu-kvm 31654 root    7u   CHR             10,232      0t0    11828 /dev/kvm
qemu-kvm 31654 root   11u   CHR             10,200      0t0     9192 /dev/net/tun

[root@shu ~]# ls /dev/disk/by-path/
ip-10.66.9.64:3260-iscsi-iqn.2001-04.com.example:storage.disk1.amiens.sys1.xyz-lun-1  pci-0000:00:1f.2-scsi-0:0:0:0-part1
ip-10.66.9.64:3260-iscsi-iqn.2001-04.com.example:storage.disk1.amiens.sys1.xyz-lun-2  pci-0000:00:1f.2-scsi-0:0:0:0-part2
ip-10.66.9.64:3260-iscsi-iqn.2001-04.com.example:storage.disk1.amiens.sys1.xyz-lun-3  pci-0000:00:1f.2-scsi-2:0:0:0
pci-0000:00:1f.2-scsi-0:0:0:0                                                         



Additional info:
------------------
after the i/o error:

[root@shu ~]# qemu-img info /dev/sdb
image: /dev/sdb
file format: qcow2
virtual size: 7.0G (7516192768 bytes)
disk size: 0
cluster_size: 65536

[root@shu ~]# qemu-img info /dev/sdc
image: /dev/sdc
file format: qcow2
virtual size: 7.0G (7516192768 bytes)
disk size: 0
cluster_size: 65536
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 (actual path: /dev//dev/disk/by-path/ip-10.66.9.64:3260-iscsi-iqn.2001-04.com.example:storage.disk1.amiens.sys1.xyz-lun-1)

[root@shu ~]# qemu-img info /dev/sdd
image: /dev/sdd
file format: qcow2
virtual size: 7.0G (7516192768 bytes)
disk size: 0
cluster_size: 65536

Comment 1 Shaolong Hu 2012-05-04 10:13:35 UTC
test with "true"=false in step 3, the same error.

Comment 2 Paolo Bonzini 2012-05-04 15:26:18 UTC
I could not reproduce this one, but it seems similar enough to bug 818876.  Let's retest it with the same brew build.

Comment 3 Ademar Reis 2012-05-07 18:43:35 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 4 Shaolong Hu 2012-05-08 02:36:35 UTC
Patches in bug 818876 also fix this one.
https://bugzilla.redhat.com/show_bug.cgi?id=818876#c5

Comment 5 Ademar Reis 2012-05-08 14:26:49 UTC
(In reply to comment #4)
> Patches in bug 818876 also fix this one.
> https://bugzilla.redhat.com/show_bug.cgi?id=818876#c5

I'll close as duplicate to speed up the process (even though they're not the exact same use-case, they're very similar and share the same root cause).

*** This bug has been marked as a duplicate of bug 818876 ***


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