Bug 1131316
Summary: | fail to specify wwn for virtual IDE CD-ROM | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Sibiao Luo <sluo> | |
Component: | qemu-kvm | Assignee: | John Snow <jsnow> | |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> | |
Severity: | medium | Docs Contact: | ||
Priority: | medium | |||
Version: | 7.0 | CC: | bsarathy, chayang, famz, hhuang, juli, juzhang, kwolf, mazhang, michen, mkenneth, mrezanin, pbonzini, qzhang, rbalakri, virt-bugs, virt-maint, xigao | |
Target Milestone: | rc | |||
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | qemu-kvm-1.5.3-74.el7 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | 1130475 | |||
: | 1150820 (view as bug list) | Environment: | ||
Last Closed: | 2015-03-05 08:11:11 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: | ||||
Bug Depends On: | 1130475 | |||
Bug Blocks: | 1150820 |
Comment 1
Sibiao Luo
2014-08-19 02:53:54 UTC
I tried tracing QEMU, it seems that IDENTIFY command is never called by guest. Maybe something is different from sr.ko and sd.ko. (In reply to Fam Zheng from comment #3) > I tried tracing QEMU, it seems that IDENTIFY command is never called by > guest. Maybe something is different from sr.ko and sd.ko. I missed the WIN_PIDENTIFY command. This patch works for me: https://lists.gnu.org/archive/html/qemu-devel/2014-08/msg03295.html Fixed in qemu-kvm-1.5.3-74.el7 Reproduce this bz: Version of components: qemu-kvm-1.5.3-68.el7.x86_64 Steps as comment 0, 1.boot guest with setting <wwn> to ide-dirve for virtual IDE CD-ROM/disk. e.g: # /usr/libexec/qemu-kvm -m 2G -M pc -smp 2 -monitor stdio -spice port=5931,disable-ticketing -qmp tcp::8888,server,nowait -boot menu=on -drive file=/home/RHEL-Server-7.0-64-virtio.qcow2,if=none,id=drive-virtio-disk,format=qcow2,cache=none,aio=native,werror=stop,rerror=stop -device ide-drive,bus=ide.0,unit=0,wwn=0x5000c50015ea71bb,drive=drive-virtio-disk,id=virtio-disk,bootindex=1 -netdev tap,id=tap0,script=/etc/qemu-ifup,vhost=on -device virtio-net-pci,netdev=tap0,id=net0,mac=24:be:05:14:11:11,mq=on -drive file=/home/kernel-3.10.0-184.el7.iso,if=none,id=hd,format=raw,media=cdrom,readonly=on,cache=none,werror=stop,rerror=stop -device ide-drive,bus=ide.0,unit=1,wwn=0x5000c50015ea71ad,drive=hd,id=cdrom 2.check the device identification. # ls -l /dev/disk/by-id/wwn* # sg_inq -p 0x83 /dev/srX (or sg_vpd) Actual results: after step 2, it fail to specify wwn for virtual IDE CD-ROM. # ls /dev/disk/by-id/wwn* -l lrwxrwxrwx. 1 root root 9 Oct 13 05:16 /dev/disk/by-id/wwn-0x5000c50015ea71bb -> ../../sda lrwxrwxrwx. 1 root root 10 Oct 13 05:16 /dev/disk/by-id/wwn-0x5000c50015ea71bb-part1 -> ../../sda1 lrwxrwxrwx. 1 root root 10 Oct 13 05:16 /dev/disk/by-id/wwn-0x5000c50015ea71bb-part2 -> ../../sda2 # ls -lh /dev/cdrom lrwxrwxrwx. 1 root root 3 Oct 13 05:16 /dev/cdrom -> sr0 # sg_inq -p 0x83 /dev/sr0 VPD INQUIRY: Device Identification page invalid VPD response; probably a STANDARD INQUIRY response As above show, this bz has been reproduced. =============== Verify this bz: Version of components: qemu-kvm-1.5.3-75.el7.x86_64 Steps as comment 0, 1.boot guest with setting <wwn> to ide-dirve for virtual IDE CD-ROM/disk. e.g: # /usr/libexec/qemu-kvm -m 2G -M pc -smp 2 -monitor stdio -spice port=5931,disable-ticketing -qmp tcp::8888,server,nowait -boot menu=on -drive file=/home/RHEL-Server-7.0-64-virtio.qcow2,if=none,id=drive-virtio-disk,format=qcow2,cache=none,aio=native,werror=stop,rerror=stop -device ide-drive,bus=ide.0,unit=0,wwn=0x5000c50015ea71bb,drive=drive-virtio-disk,id=virtio-disk,bootindex=1 -netdev tap,id=tap0,script=/etc/qemu-ifup,vhost=on -device virtio-net-pci,netdev=tap0,id=net0,mac=24:be:05:14:11:11,mq=on -drive file=/home/kernel-3.10.0-184.el7.iso,if=none,id=hd,format=raw,media=cdrom,readonly=on,cache=none,werror=stop,rerror=stop -device ide-drive,bus=ide.0,unit=1,wwn=0x5000c50015ea71ad,drive=hd,id=cdrom 2.check the device identification. # ls -l /dev/disk/by-id/wwn* # sg_inq -p 0x83 /dev/srX (or sg_vpd) Actual results: # ls /dev/disk/by-id/wwn* -l lrwxrwxrwx. 1 root root 9 Oct 13 05:24 /dev/disk/by-id/wwn-0x5000c50015ea71ad -> ../../sr0 lrwxrwxrwx. 1 root root 9 Oct 13 05:24 /dev/disk/by-id/wwn-0x5000c50015ea71bb -> ../../sda lrwxrwxrwx. 1 root root 10 Oct 13 05:24 /dev/disk/by-id/wwn-0x5000c50015ea71bb-part1 -> ../../sda1 lrwxrwxrwx. 1 root root 10 Oct 13 05:24 /dev/disk/by-id/wwn-0x5000c50015ea71bb-part2 -> ../../sda2 Based on above testing, this bz has been verified. -------------------- Verify this bz on qemu-kvm-rhev. Version of components: qemu-kvm-rhev-2.1.2-3.el7.x86_64 Verification on qemu-kvm-rhev is blocked by bz1150820. 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/RHSA-2015-0349.html |