Bug 2075731

Summary: [OSP16.2] nova.pci.utils logs "WARNING No net device was found for VF" whenever a vf is bound to vfio-pci driver
Product: Red Hat OpenStack Reporter: melanie witt <mwitt>
Component: openstack-novaAssignee: melanie witt <mwitt>
Status: CLOSED ERRATA QA Contact: OSP DFG:Compute <osp-dfg-compute>
Severity: medium Docs Contact:
Priority: medium    
Version: 16.2 (Train)CC: cfields, cmuresan, dasmith, eglynn, jhakimra, kchamart, mwitt, nova-maint, sbauza, sgordon, vromanso
Target Milestone: z4Keywords: Patch, Triaged
Target Release: 16.2 (Train on RHEL 8.4)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-nova-20.6.2-2.20220509174846.a5da31e.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1948647 Environment:
Last Closed: 2022-12-07 19:22:27 UTC Type: ---
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:    
Bug Blocks: 1948647    

Description melanie witt 2022-04-15 02:39:27 UTC
+++ This bug was initially created as a clone of Bug #1948647 +++

Description of problem:
Whenever nova binds an instance to a VF, as in an SR-IOV deployment, then you get this message in nova-compute.log:

2021-04-07 15:13:21.762 6 WARNING nova.pci.utils [req-29028659-fc7a-414b-8e57-31c23e894c22 - - - - -] No net device was found for VF 0000:3b:02.1: nova.exception.PciDeviceNotFoundById: PCI device 0000:3b:02.1 not found

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

How reproducible:
100%

See the launchpad bug: https://bugs.launchpad.net/nova/+bug/1808738

This WARNING message is a source of confusion for customers and support. Some are presuming that this message explains other issues they are experiencing.  See support case 02821308, 02465751, 02183767, 02518517

Can we change the log level of that message to DEBUG?

--- Additional comment from melanie witt on 2021-04-14 17:12:39 UTC ---

We discussed this bug on the triage call today and agreed to change the location of this message from the periodic task to init_host so that it's only emitted once at startup. We'll also add more text to the message to explain what an operator should check and under what circumstance they should check it.

And depending on feedback during code review, we might change the log level of the message to INFO -- we will start with keeping it at WARNING with the additional text so operators know when to be concerned about it, but if review consensus is that WARNING level would cause unnecessary alarm, we might go with INFO. We think we don't want to use DEBUG because it would most likely be completely hidden in a production deployment and operators would miss the warning about a potential problem in the deployment.

Comment 12 errata-xmlrpc 2022-12-07 19:22:27 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 (Release of components for Red Hat OpenStack Platform 16.2.4), 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/RHBA-2022:8794