config/sysinv/sysinv/sysinv/sysinv/tests/puppet
Steven Webster ff1be48bf0 Fix N3000 FPGA SR-IOV config for split NICs
This commit fixes an issue that can occur if a user
creates an SR-IOV interface of type VF with a parent
SR-IOV interface that belongs to a NIC on an Intel
N3000 FPGA.

The FPGA is reset on every worker node bootup (if present),
clearing all SR-IOV config.  Because of this, the current
puppet code waits for the reset to be completed before
restarting the interface via the sysconfig network interface
scripts.  Because the VF interface is a separate hieradata
entry than the parent interface, this can cause a race
condition where the device is re-initialized after one of
the child/parent interfaces has already bound a driver to the
interface.

Since the whole point of the VF interfaces is to 'split'
a NIC to allow multiple SR-IOV VF drivers on one physical NIC,
this commit makes a single hieradata entry for the parent
interface, rather than individual entries for the parent and
child(ren). The information to bind the child interfaces
appropriately is embedded in the vf_config dict of the parent
interface.

Change-Id: Iad34de8ae1b913a1c188e5473e0c92cdf8007ba2
Partial-Bug: #1885229
Signed-off-by: Steven Webster <steven.webster@windriver.com>
2020-06-27 12:22:26 -04:00
..
__init__.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
base.py Update sysinv to use sysinv as registry user 2020-06-23 16:59:01 -04:00
test_interface.py Fix N3000 FPGA SR-IOV config for split NICs 2020-06-27 12:22:26 -04:00
test_kubernetes.py SR-IOV device plugin support for FPGA FEC devices 2020-06-16 15:37:40 -04:00
test_platform.py Initial framework and unit tests for puppet plugins 2019-07-24 09:08:52 -04:00
test_puppet.py Adding pylint checking to the sysinv unit tests 2020-01-14 08:32:12 -06:00