Closed DmytroLinkin closed 4 years ago
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
pkg/sriov/sriov.go | 14 | 24 | 58.33% | ||
<!-- | Total: | 14 | 24 | 58.33% | --> |
Totals | |
---|---|
Change from base Build 161: | 0.5% |
Covered Lines: | 241 |
Relevant Lines: | 543 |
Due to kernel driver constraints, on cmdDel the plugin is required to rebind the VF in order to restore the VF's GUID value. During VF rebind the kernel may assign the VF netdev a new name from predefined scheme, which can differs from its initial name that the plugin caches. This may cause conflicts with other VFs that are currently cached and processed by plugin. For example: Two pods were created:
ib0
.ib1
.If pod B is deleted first, then after GUID value is restored (driver rebind occurs) it will get the netdev name
ib0
. This causes the plugin to fail on Pod A pod deletion, when, onCmdDel
, it tries to move