Bug 1721433 - [OSP13] 'hw_vif_model' image metadata property should be ignored for SR-IOV-based VIFs
Summary: [OSP13] 'hw_vif_model' image metadata property should be ignored for SR-IOV-b...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-nova
Version: 13.0 (Queens)
Hardware: x86_64
OS: Linux
high
high
Target Milestone: z8
: 13.0 (Queens)
Assignee: Stephen Finucane
QA Contact: Yariv
URL:
Whiteboard:
Depends On: 1724124
Blocks: 1724122
TreeView+ depends on / blocked
 
Reported: 2019-06-18 09:46 UTC by Sandeep Yadav
Modified: 2022-07-09 11:59 UTC (History)
12 users (show)

Fixed In Version: openstack-nova-17.0.10-3.el7ost
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 1724122 (view as bug list)
Environment:
Last Closed: 2019-09-03 16:53:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1797146 0 None None None 2019-06-19 13:44:11 UTC
OpenStack gerrit 609460 0 None MERGED Ignore hw_vif_type for direct, direct-physical vNIC types 2020-09-17 21:20:16 UTC
Red Hat Issue Tracker OSP-17292 0 None None None 2022-07-09 11:59:06 UTC
Red Hat Product Errata RHSA-2019:2622 0 None None None 2019-09-03 16:53:47 UTC

Description Sandeep Yadav 2019-06-18 09:46:24 UTC
Description of problem: 

Sriov instance's spawn fails if additional properties "hw_vif_model & hw_disk_bus" in image

If we add the below metadata properties to image, and any VM launched with this image is moving to ERROR state due to failure of SRIOV port binding

~~~  
  hw_vif_model  = virtio
  hw_disk_bus = virtio
~~~


Error Message:-

u'message': u"unsupported configuration: Unknown PCI device <driver name='vhost'/> has been specified", u'code': 500, u'details': u'  File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1862, in _do_build_and_run_instance\n    filter_properties, request_spec)\n  File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2142, in _build_and_run_instance\n    instance_uuid=instance.uuid, reason=six.text_type(e))\n


The above is strange as why would a Sriov instance have 'vhost' as a driver? A sriov interface should be seen as vfio device in libvirt.

Version-Release number of selected component (if applicable):

RedHat OpenStack Version 13.0


How reproducible: 


Steps to Reproduce:
1. Add additional property to image:-

~~~  
  hw_vif_model  = virtio
  hw_disk_bus = virtio
~~~

2. Spawn a sriov instance


Actual results:

Instance spawn is failing:-
~~~
u'message': u"unsupported configuration: Unknown PCI device <driver name='vhost'/> has been specified", u'code': 500, u'details': u'  File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1862, in _do_build_and_run_instance\n    filter_properties, request_spec)\n  File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2142, in _build_and_run_instance\n    instance_uuid=instance.uuid, reason=six.text_type(e))\
~~~


Expected results:

Instance spawn should not fail.

Additional info:

Comment 13 errata-xmlrpc 2019-09-03 16:53:35 UTC
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://access.redhat.com/errata/RHSA-2019:2622


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