Summary: | guest cannot start with a shareable hostdev network iscsi device | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Luyao Huang <lhuang> |
Component: | libvirt | Assignee: | Michal Privoznik <mprivozn> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.1 | CC: | dyuan, mprivozn, mzhan, rbalakri, yisun |
Target Milestone: | rc | Keywords: | Upstream |
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | libvirt-1.2.13-1.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-11-19 05:59:07 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: |
Description
Luyao Huang
2014-12-16 03:16:18 UTC
I've just pushed the patch upstream: commit dddd83273538d0248cc16aecab012169d6552341 Author: Luyao Huang <lhuang> AuthorDate: Tue Dec 16 11:16:58 2014 +0800 Commit: Michal Privoznik <mprivozn> CommitDate: Wed Dec 17 11:23:00 2014 +0100 conf: fix cannot start a guest have a shareable network iscsi hostdev https://bugzilla.redhat.com/show_bug.cgi?id=1174569 There's nothing we need to do for shared iSCSI devices in qemuAddSharedHostdev and qemuRemoveSharedHostdev. The iSCSI layer takes care about that for us. Signed-off-by: Luyao Huang <lhuang> Signed-off-by: Michal Privoznik <mprivozn> v1.2.11-53-gdddd832 VERIFIED Versions: libvirt-1.2.13-1.el7.x86_64 steps: 1. discover a iscsi lun disk # iscsiadm --mode discovery --type sendtargets --portal 10.xx.yy.zz (ip hidden) 10.xx.yy.zz:3260,1 www.lento.com:sunyi1 2. start a vm with above iscsi disk <hostdev mode='subsystem' type='scsi' managed='no'> <source protocol='iscsi' name='www.lento.com:sunyi1/1'> <host name='10.xx.yy.zz' port='3260'/> </source> <readonly/> <shareable/> <alias name='hostdev0'/> <address type='drive' controller='0' bus='0' target='0' unit='0'/> </hostdev> # virsh start rhel7.0 Domain rhel7.0 started 3. in guest os, check the iscsi disk really attached. root@guest # fdisk -l ... Disk /dev/sda: 53.7 GB, 53687091200 bytes, 104857600 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes ... 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. https://rhn.redhat.com/errata/RHBA-2015-2202.html |