SR-IOV VFs aren't created after rebooting RHOSP 10 compute node

Latest response

Hi,

I've deployed RHOSP 10 with support for SR-IOV according to the following guide.
https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/10/html-single/network_functions_virtualization_configuration_guide/#part-sriov-nfv-configuration

Everything works fine but after I reboot the compute nodes VFs aren't created!!!

Regards,
Samuel

Responses

After digging a bit more I found out that the following scripts have been created during deployment

[heat-admin@compute-0 ~]$ cat /sbin/ifup-local 
#!/bin/bash
/etc/sysconfig/allocate_vfs $1
[heat-admin@compute-0 ~]$ cat /etc/sysconfig/allocate_vfs 
#!/bin/bash
[ "p1p3" == "$1" ] && echo 16 > /sys/class/net/p1p3/device/sriov_numvfs
[ "p1p4" == "$1" ] && echo 16 > /sys/class/net/p1p4/device/sriov_numvfs
[heat-admin@compute-0 ~]$ 

in the i/sbin/ifup script there is the following calls

OTHERSCRIPT="/etc/sysconfig/network-scripts/ifup-${DEVICETYPE}"

if [ ! -x ${OTHERSCRIPT} ]; then
    OTHERSCRIPT="/etc/sysconfig/network-scripts/ifup-${TYPE}"
fi

if [ ! -x ${OTHERSCRIPT} ]; then
    OTHERSCRIPT="/etc/sysconfig/network-scripts/ifup-eth"
fi

but no ifcfg files have been created for SR-IO ports

Hi folks,

Have been working with Sam offline and I think we discovered a documentation bug.

There's an example in the appendix of the OSP10 NFV Guide (link). However, the example doesn't contain the modifications to the Compute NIC templates (link).

I've filed a bug for this issue: BZ#1462771

Note that this shouldn't affect OSP11. The example in the OSP11 Guide contains the SR-IOV devices (link). However, the OSP11 devices have different names to the OSP10 devices so don't use the OSP11 example for OSP10.