Bug 1397120 - os_distro definition does not enable virtio-scsi
os_distro definition does not enable virtio-scsi
Status: NEW
Product: Red Hat OpenStack
Classification: Red Hat
Component: documentation (Show other bugs)
9.0 (Mitaka)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: RHOS Documentation Team
RHOS Documentation Team
: Documentation, Reopened
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-11-21 11:35 EST by Marko Myllynen
Modified: 2016-12-21 08:34 EST (History)
11 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-11-21 11:49:40 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Marko Myllynen 2016-11-21 11:35:00 EST
Description of problem:
Setting os_distro=rhel7.1 or os_distro=fedora22 does not enable virtio-scsi although based on the upstream spec https://specs.openstack.org/openstack/nova-specs/specs/kilo/approved/libvirt-hardware-policy-from-libosinfo.html this would seem expected.

Manually setting hw_scsi_model / hw_disk_bus enables virtio-scsi ok.

Version-Release number of selected component (if applicable):
RH OSP 9
Comment 1 Marko Myllynen 2016-11-21 11:36:03 EST
NB. Contrary to the RH OSP 9 Release Notes, the image property is indeed os_distro, not os_name.

https://access.redhat.com/documentation/en/red-hat-openstack-platform/9/single/release-notes/
Comment 2 Jon Schlueter 2016-11-21 11:43:35 EST
For RH OSP 9 you might want to match rhel installed.  os_distro=rhel7.3 instead of rhel 7.1
Comment 3 Marcos Garcia 2016-11-21 11:45:15 EST
You set this with set the os_name image property to a valid short-id (e.g. rhel7, winxp) or URI for the operating system.
    More specific than previous handling via os_type=’windows’

https://specs.openstack.org/openstack/nova-specs/specs/mitaka/implemented/libvirt-hardware-policy-from-libosinfo.html
Comment 4 Daniel Berrange 2016-11-21 11:46:39 EST
The spec just illustrate the *potential* use cases for libosinfo. As implemented, the nova code only supports picking virtio-blk and virtio-net. There's no support for virtio-scsi selection in nova. Furthermore, the libosinfo database doesn't report support for virtio-scsi against RHEL
Comment 5 Marko Myllynen 2016-11-21 11:53:15 EST
(In reply to Jon Schlueter from comment #2)
> For RH OSP 9 you might want to match rhel installed.  os_distro=rhel7.3
> instead of rhel 7.1

This doesn't work, see https://bugzilla.redhat.com/show_bug.cgi?id=1387449.

(In reply to Marcos Garcia from comment #3)
> You set this with set the os_name image property to a valid short-id (e.g.
> rhel7, winxp) or URI for the operating system.

No, os_name is not recognized, see https://github.com/openstack/nova/blob/stable/newton/nova/objects/image_meta.py.

(In reply to Daniel Berrange from comment #4)
> The spec just illustrate the *potential* use cases for libosinfo. As
> implemented, the nova code only supports picking virtio-blk and virtio-net.
> There's no support for virtio-scsi selection in nova. Furthermore, the
> libosinfo database doesn't report support for virtio-scsi against RHEL

Right, thanks for the clarification.
Comment 6 Daniel Berrange 2016-11-21 12:01:39 EST
FWIW, I think we *should* implement the virtio-scsi support for Nova using libosinfo *and* update osinfo database to have right info for RHEL-7. I'm simply meaning its more of an RFE rather than a bug fix
Comment 7 Marko Myllynen 2016-11-21 12:05:47 EST
(In reply to Marko Myllynen from comment #5)
> (In reply to Jon Schlueter from comment #2)
> > For RH OSP 9 you might want to match rhel installed.  os_distro=rhel7.3
> > instead of rhel 7.1
> 
> This doesn't work [...]

Correcting myself, "rhel7.2" and "rhel7.3" are recognized on RHEL 7.3 hosts.

Thanks.

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