commit 16e800bcf9a9fc2bd97cc05ba0213091352c6130
Author: Lucas Ratusznei Fonseca <email address hidden>
Date: Tue Jan 10 19:19:57 2023 -0300
Semantic check for proper sriov plugin configuration
This commit adds a semantic check to host-unlock to prevent unlocking
if the label "sriovdp=enabled" is present and there are no PCI-SRIOV
interfaces enabled.
Test plan
PASS Unlock system with sriovdp label absent and 0 PCI-SRIOV
interfaces enabled
PASS Unlock system with sriovdp label absent and 1 PCI-SRIOV
interface enabled
PASS Unlock system with sriovdp label present and 0 PCI-SRIOV
interfaces enabled
PASS Try to unlock system with sriovdp label present and 1 PCI-SRIOV
interface enabled (command fails)
Closes-Bug: #2002447
Signed-off-by: Lucas Ratusznei Fonseca <email address hidden>
Change-Id: I8d9cba7354f066ad334af425fe26f57a93f58d3d
Reviewed: https:/ /review. opendev. org/c/starlingx /config/ +/869774 /opendev. org/starlingx/ config/ commit/ 16e800bcf9a9fc2 bd97cc05ba02130 91352c6130
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 16e800bcf9a9fc2 bd97cc05ba02130 91352c6130
Author: Lucas Ratusznei Fonseca <email address hidden>
Date: Tue Jan 10 19:19:57 2023 -0300
Semantic check for proper sriov plugin configuration
This commit adds a semantic check to host-unlock to prevent unlocking
if the label "sriovdp=enabled" is present and there are no PCI-SRIOV
interfaces enabled.
Test plan
PASS Unlock system with sriovdp label absent and 0 PCI-SRIOV
interfaces enabled
PASS Unlock system with sriovdp label absent and 1 PCI-SRIOV
interface enabled
PASS Unlock system with sriovdp label present and 0 PCI-SRIOV
interfaces enabled
PASS Try to unlock system with sriovdp label present and 1 PCI-SRIOV
interface enabled (command fails)
Closes-Bug: #2002447
Signed-off-by: Lucas Ratusznei Fonseca
<email address hidden> ad334af425fe26f 57a93f58d3d
Change-Id: I8d9cba7354f066