infiniband SR-IOV with neutron error

asked 2016-11-24 07:51:22 -0600

yishuizhao gravatar image

updated 2016-12-02 09:09:27 -0600

rbowen gravatar image

in compute host have two mellanox infiniband card,i confige them SR-IOV with neutron,and install neutron sriov nic agent as https://wiki.openstack.org/wiki/SR-IO... but when i complete this configuration,restart this neutron sriov nic agent,it has error as :

WARNING neutron.plugins.ml2.drivers.mech_sriov.agent.pci_lib [-] Cannot find vfs [0, 1, 2, 3, 4, 5, 6, 7] in device ib0,but i use lspci command which can see the vfs:

lspci | grep -i mella
21:00.0 Network controller: Mellanox Technologies MT27500 Family [ConnectX-3]
21:00.1 Network controller: Mellanox Technologies MT27500/MT27520 Family [ConnectX-3/ConnectX-3 Pro Virtual Function]
21:00.2 Network controller: Mellanox Technologies MT27500/MT27520 Family [ConnectX-3/ConnectX-3 Pro Virtual Function]

who has idea,thanks。

edit retag flag offensive close merge delete

Comments

the driver uses ip link show, then looks for lines that start with "vf". Try to make your VFs appear as network interfaces in the ip link output.

Bernd Bausch gravatar imageBernd Bausch ( 2016-11-24 18:23:00 -0600 )edit

i config the mlx4_core.conf as bllow: options mlx4_core num_vfs=8 port_type_array=1,1 probe_vf=0 enable_64b_cqe_eqe=0 log_num_mgm_entry_size=-1 if probe_vf=8,i will cee them with ip link show in the compute os,but this parameter means those vfs used by the host not guest in my awareness,thanks。

yishuizhao gravatar imageyishuizhao ( 2016-11-24 20:05:05 -0600 )edit

I have to admit that I know next to nothing about SRIOV configuration, but on this page https://community.mellanox.com/docs/D... you see what ip link output you should have (scroll down to the comment section). Indeed, each line starts with "vf".

Bernd Bausch gravatar imageBernd Bausch ( 2016-11-25 01:55:21 -0600 )edit

you are right,in my case,when port_type_array=2,2,it works;when port_type_array=1,1,it do not work,i do not know what to do next。

yishuizhao gravatar imageyishuizhao ( 2016-11-25 02:32:15 -0600 )edit

I think you better ask your question on a Mellanox forum as well.

Bernd Bausch gravatar imageBernd Bausch ( 2016-11-25 03:31:18 -0600 )edit