Libvirt中的Openstack PCI passthrough接口名称错误

时间:2018-01-28 20:52:26

标签: openstack libvirt

我想在启用了 SRIOV 的网卡的 openstack pike上启动实例。但是,我收到有关节点名称的Libvirt错误。由于节点名称与主机或配置文件中的接口名称不匹配,因此该错误看起来很奇怪。

  

2018-01-28 20:40:11.416 2953 ERROR nova.compute.manager [req-caa92f1d-5ac1-402d-a8bc-b08ab350a21f - - - - - ]更新节点jupiter的资源时出错:libvirtError:节点设备找不到:没有匹配名称为'net_enp129s2_b2_87_6e_13_a1_5e'的节点设备   2018-01-28 20:40:11.416 2953 ERROR nova.compute.manager Traceback(最近一次调用最后一次):   2018-01-28 20:40:11.416 2953 ERROR nova.compute.manager文件“/usr/lib/python2.7/dist-packages/nova/compute/manager.py”,第6696行,在update_available_resource_for_node中   2018-01-28 20:40:11.416 2953 ERROR nova.compute.manager rt.update_available_resource(context,nodename)   2018-01-28 20:40:11.416 2953 ERROR nova.compute.manager文件“/usr/lib/python2.7/dist-packages/nova/compute/resource_tracker.py”,第641行,在update_available_resource中   2018-01-28 20:40:11.416 2953 ERROR nova.compute.manager resources = self.driver.get_available_resource(nodename)   2018-01-28 20:40:11.416 2953 ERROR nova.compute.manager文件“/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py”,第5857行,在get_available_resource中   2018-01-28 20:40:11.416 2953 ERROR nova.compute.manager   2018-01-28 20:40:11.416 2953 ERROR nova.compute.manager文件“/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py”,第5621行,位于_get_pci_passthrough_devices   2018-01-28 20:40:11.416 2953错误nova.compute.manager在dev_names中的名称:   2018-01-28 20:40:11.416 2953 ERROR nova.compute.manager文件“/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py”,第5582行,位于_get_pcidev_info   2018-01-28 20:40:11.416 2953 ERROR nova.compute.manager device ['label'] ='label _%(vendor_id)s _%(product_id)s'%device   2018-01-28 20:40:11.416 2953 ERROR nova.compute.manager在_get_device_capabilities中的文件“/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py”,第5553行   2018-01-28 20:40:11.416 2953 ERROR nova.compute.manager pcinet_info = self._get_pcinet_info(address)   2018-01-28 20:40:11.416 2953 ERROR nova.compute.manager文件“/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py”,第5496行,在_get_pcinet_info中   2018-01-28 20:40:11.416 2953 ERROR nova.compute.manager virtdev = self._host.device_lookup_by_name(devname)   2018-01-28 20:40:11.416 2953 ERROR nova.compute.manager文件“/usr/lib/python2.7/dist-packages/nova/virt/libvirt/host.py”,第845行,在device_lookup_by_name中   2018-01-28 20:40:11.416 2953 ERROR nova.compute.manager返回self.get_connection()。nodeDeviceLookupByName(name)   2018-01-28 20:40:11.416 2953 ERROR nova.compute.manager文件“/usr/lib/python2.7/dist-packages/eventlet/tpool.py”,第186行,在doit   2018-01-28 20:40:11.416 2953 ERROR nova.compute.manager result = proxy_call(self._autowrap,f,* args,** kwargs)   2018-01-28 20:40:11.416 2953 ERROR nova.compute.manager文件“/usr/lib/python2.7/dist-packages/eventlet/tpool.py”,第144行,在proxy_call中   2018-01-28 20:40:11.416 2953 ERROR nova.compute.manager rv = execute(f,* args,** kwargs)   2018-01-28 20:40:11.416 2953 ERROR nova.compute.manager文件“/usr/lib/python2.7/dist-packages/eventlet/tpool.py”,第125行,执行   2018-01-28 20:40:11.416 2953 ERROR nova.compute.manager six.reraise(c,e,tb)   2018-01-28 20:40:11.416 2953 ERROR nova.compute.manager文件“/usr/lib/python2.7/dist-packages/eventlet/tpool.py”,第83行,在tworker中   2018-01-28 20:40:11.416 2953 ERROR nova.compute.manager rv = meth(* args,** kwargs)   2018-01-28 20:40:11.416 2953 ERROR nova.compute.manager文件“/usr/lib/python2.7/dist-packages/libvirt.py”,第4177行,nodeDeviceLookupByName   2018-01-28 20:40:11.416 2953 ERROR nova.compute.manager如果ret为None:raise libvirtError('virNodeDeviceLookupByName()failed',conn = self)   2018-01-28 20:40:11.416 2953 ERROR nova.compute.manager libvirtError:找不到节点设备:没有匹配名称为'net_enp129s2_b2_87_6e_13_a1_5e'的节点设备   2018-01-28 20:40:11.416 2953 ERROR nova.compute.manager

正确的接口名称是enp129s0f0。但是,我得到的节点名称为net_enp129s2_b2_87_6e_13_a1_5e',我认为这是在openstack上创建vm失败的原因。如果有人可以帮我理解如何从openstack将节点名称传递给Libvirt,或者我该如何解决这个问题。

0 个答案:

没有答案