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
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/
For RH OSP 9 you might want to match rhel installed. os_distro=rhel7.3 instead of rhel 7.1
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
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
(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.
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
(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.
This needs to be documented as a doc text known issue. 9 is EOL, but this still applies to OSP10+.
Updated content available on the Customer Portal: https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/16.1/html/instances_and_images_guide/ch-image-service#section-create-images https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/13/html/instances_and_images_guide/ch-image-service#section-create-images