Public bug reported: In general we want the host OS and hypervisor specific handling to be hidden behind the virt driver in the nova-compute service. So that the service could run on a Window host with a HyperV driver while also running on a Linux host with the libvirt virt driver.
However today there is a list of calls[1] from the nova.network.neutron module to sysfs via the pci_utils nova.pci.utils module. Also the nova.network.neutron module is used outside of the virt drivers. So today the nova-compute service could fail on a Windows host where sysfs is not a thing. It probably does not fail today as the HyperV virt driver does not support SRIOV today and the current sysfs dependency is used for SRIOV ports. However architecturally it is not good that the neutron interface code depends on hypervisor specific filesystem calls. [1] https://github.com/openstack/nova/blob/0c31561792e0e13a9f8267e71fa484ab79957f04/nova/network/neutron.py#L1572-L1584 ** Affects: nova Importance: Undecided Status: New -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Compute (nova). https://bugs.launchpad.net/bugs/1961587 Title: Nova-compute depends on having sysfs on the compute host outside of the virt driver Status in OpenStack Compute (nova): New Bug description: In general we want the host OS and hypervisor specific handling to be hidden behind the virt driver in the nova-compute service. So that the service could run on a Window host with a HyperV driver while also running on a Linux host with the libvirt virt driver. However today there is a list of calls[1] from the nova.network.neutron module to sysfs via the pci_utils nova.pci.utils module. Also the nova.network.neutron module is used outside of the virt drivers. So today the nova-compute service could fail on a Windows host where sysfs is not a thing. It probably does not fail today as the HyperV virt driver does not support SRIOV today and the current sysfs dependency is used for SRIOV ports. However architecturally it is not good that the neutron interface code depends on hypervisor specific filesystem calls. [1] https://github.com/openstack/nova/blob/0c31561792e0e13a9f8267e71fa484ab79957f04/nova/network/neutron.py#L1572-L1584 To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1961587/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

