Make sure network interfaces on an N3000 FPGA are enabled for SR-IOV only after the device is reset
During backup/restore it was found that multiple unlock attempts failed with the following error message: "Expecting number of interface sriov_numvfs=8. Please wait a few minutes for inventory update and retry host-unlock" This happens because the FPGA reset affects the NIC ports attached to it removing the SR-IOV configuration done before. This commit adds a sriov-enable dependency to N3000 FPGA reset to make sure that SR-IOV is re-configured after the reset. Test Plan: PASS: AIO-SX: change numvfs, unlock and check puppet logs Closes-Bug: 2027618 Change-Id: I96a05af7436956e40734070cc13da86a5fbf0863 Signed-off-by: Caio Bruchert <caio.bruchert@windriver.com>
This commit is contained in:
@@ -164,6 +164,7 @@ class platform::devices::fpga::n3000::reset
|
||||
inherits ::platform::devices::fpga::fec::params {
|
||||
# To reset N3000 FPGA
|
||||
Class[$name] -> Class['::platform::devices::fpga::fec::pf']
|
||||
Class[$name] -> Class['::platform::network::interfaces::sriov::enable']
|
||||
exec { 'Reset n3000 fpgas':
|
||||
command => 'sysinv-reset-n3000-fpgas',
|
||||
path => ['/usr/bin/', '/usr/sbin/'],
|
||||
@@ -178,6 +179,7 @@ class platform::devices::fpga::fec::config
|
||||
inherits ::platform::devices::fpga::fec::params {
|
||||
notice('Looking for N3000 device to reset...')
|
||||
if $::is_n3000_present {
|
||||
include platform::network::interfaces::sriov::enable
|
||||
include platform::devices::fpga::n3000::reset
|
||||
}
|
||||
include platform::devices::fpga::fec::pf
|
||||
|
||||
Reference in New Issue
Block a user