Bug 1325485
Summary: | [3.6 only] SCSI pass through [via hook] does not work | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Roman Hodain <rhodain> | ||||||
Component: | vdsm | Assignee: | Martin Polednik <mpoledni> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Nisim Simsolo <nsimsolo> | ||||||
Severity: | high | Docs Contact: | |||||||
Priority: | urgent | ||||||||
Version: | 3.6.4 | CC: | acanan, amarchuk, bazulay, gklein, jcoscia, lsurette, mgoldboi, michal.skrivanek, mkalinin, mpoledni, nsimsolo, rbalakri, Rhev-m-bugs, rhodain, srevivo, ycui, ykaul | ||||||
Target Milestone: | ovirt-3.6.6 | Keywords: | Regression, ZStream | ||||||
Target Release: | 3.6.6 | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2016-05-30 09:16:18 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | Virt | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Roman Hodain
2016-04-09 06:19:40 UTC
Once fixed, please consider backport to 3.6.z, depending on the complexity of the fix. SCSI passthrough is not supported in 3.6. You should pass the whole controller as a PCI device. though the 3.6 code broke any scsi device passed through unintentionally. We should trivially fix this asap note: 4.0 code change is not needed as that is superseded by bug 1270581 already in progress and partially in I just looked at this bug and I feel like I am missing something here. I verified bug #1291930 which talks about running VM with direct lun and virtio-scsi + passthrough - it worked fine with versions below. rhevm-3.6.5.1-0.1.el6.noarch vdsm-4.17.25-0.el7ev.noarch We also have it in our automation but it seems like we have some problems with RestAPI which we are opening bugs for. there is also engine side problem that host devices are being send regardless the managed/unmanaged status. That must be fixed as well, in addition to gerrit 55957. postponing to 3.6.6 (In reply to Aharon Canan from comment #7) > I just looked at this bug and I feel like I am missing something here. > > I verified bug #1291930 which talks about running VM with direct lun and > virtio-scsi + passthrough - it worked fine with versions below. this bug is not about direct luns/disks, but non-disk devices(e.g. a tape drive) Created attachment 1157848 [details]
Hook file example
Verified: rhevm-3.6.6.2-0.1.el6 qemu-kvm-rhev-2.3.0-31.el7_2.11.x86_64 vdsm-4.17.28-0.el7ev.noarch libvirt-client-1.2.17-13.el7_2.4.x86_64 Verification scenario: 1. Add hook file under /usr/libexec/vdsm/hooks/before_vm_start/ (see attached hook for an example). 2. Chown scsi device to qemu:qemu (/dev/sg[device_id]). 3. Run VM 4. Observe vdsm.log for VM XML file and verify device attached to VM. 5. Open VM console and verify it can see attached device. 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-2016-1112.html Created attachment 1235391 [details]
hook example without sudo=True
|