Bug 1067173
Summary: | libvirt iscsi targets no longer connect | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Alex Williamson <alex.williamson> |
Component: | libvirt | Assignee: | Ján Tomko <jtomko> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.0 | CC: | acathrow, agrover, bili, chhu, dyuan, jtomko, lsu, mzhan, shyu |
Target Milestone: | rc | Keywords: | Regression |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libvirt-1.1.1-24.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-06-13 10:05:27 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Alex Williamson
2014-02-19 21:44:18 UTC
This is caused by a string change included as part of bug 1007388 where extra information has been appended to the end of 'iscsiadm -m session' output. The libvirt iSCSI backend has a strict regex that parse session information that is no longer matching. We either need to back this out of iscsi-initiator utils or change libvirt to ignore additional information added to the end of the output line. I have proposed an upstream patch loosening the regex: https://www.redhat.com/archives/libvir-list/2014-February/msg01279.html Fixed upstream by: commit 57e17a74b76fd8f93012d6d0407106e9a2d5c5e3 Author: Ján Tomko <jtomko> CommitDate: 2014-02-21 10:35:57 +0100 Ignore additional fields in iscsiadm output git describe: v1.2.1-290-g57e17a7 I can reproduce this bug with packages: libvirt-1.1.1-23.el7.x86_64 iscsi-initiator-utils-6.2.0.873-18.el7.x86_64 Steps: 1. define a iscsi pool and start it. 2. then update iscsi-initiator-utils-6.2.0.873-18.el7.x86_64 to iscsi-initiator-utils-6.2.0.873-19.el7.x86_64 3. # dmesg ... [587244.144864] sd 18:0:0:0: [sdb] 62914560 512-byte logical blocks: (32.2 GB/30.0 GiB) [587244.145440] sd 18:0:0:0: [sdb] Write Protect is off [587244.145448] sd 18:0:0:0: [sdb] Mode Sense: 91 00 00 00 [587244.145840] sd 18:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA [587244.149571] sd 18:0:0:0: Attached scsi generic sg2 type 0 [587244.164337] sd 18:0:0:0: [sdb] 62914560 512-byte logical blocks: (32.2 GB/30.0 GiB) [587244.164912] sd 18:0:0:0: [sdb] Write Protect is off [587244.164915] sd 18:0:0:0: [sdb] Mode Sense: 91 00 00 00 [587244.165315] sd 18:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA [587244.199675] sdb: unknown partition table [587244.227161] sd 18:0:0:0: [sdb] Attached SCSI disk ... 4. # virsh pool-list --all Name State Autostart ----------------------------------------- default active yes test-iscsi active no # virsh pool-refresh test-iscsi error: Failed to refresh pool test-iscsi error: internal error: cannot find session # iscsiadm -m session iscsiadm: No active sessions. ---------------------------------------------------------------- Tested for scratch build: 1. download iscsi-initiator-utils to 18, and upgrade libvirt to https://brewweb.devel.redhat.com/taskinfo?taskID=7089659 2. redo the above steps, dmesg got nothing 3. # virsh pool-refresh test-iscsi Pool test-iscsi refreshed # virsh pool-list --all Name State Autostart ----------------------------------------- default active yes test-iscsi active no # iscsiadm -m session tcp: [12] 10.66.90.100:3260,1 iqn.2001-05.com.equallogic:0-8a0906-9951f7d03-34cf49b25f04f94b-libvirt-2-150313 (non-flash) Works fine, I think the patch fixed problem well. Verified pass with libvirt-1.1.1-24.el7, steps as comment #8. This request was resolved in Red Hat Enterprise Linux 7.0. Contact your manager or support representative in case you have further questions about the request. |