Skip to content

Commit f32620c

Browse files
committed
extraConfigBfb: fix race condition before coldboot
When cold booting BF-2 host to apply nic mode config, we need to make sure the systemd file to switch is first in place. Signed-off-by: Salvatore Daniele <[email protected]>
1 parent 081734a commit f32620c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

extraConfigBFB.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ def helper(h: host.HostWithBF2) -> Optional[host.Result]:
7979

8080
client.oc("delete -f manifests/nicmode/switch.yaml")
8181
client.oc("create -f manifests/nicmode/switch.yaml")
82+
83+
logger.info("Waiting for mcp to update")
84+
client.wait_for_mcp("sriov", "switch.yaml")
8285
# Workaround for https://issues.redhat.com/browse/OCPBUGS-29882 caused by the BF-2 firmware failing to update without cold boot
8386

8487
logger.info("Cold booting.....")
@@ -89,5 +92,5 @@ def helper(h: host.HostWithBF2) -> Optional[host.Result]:
8992
f = executor.submit(helper, h)
9093
futures[e.name] = f
9194

92-
logger.info("Waiting for mcp to update")
95+
logger.info("Waiting for nodes to recover from cold boot")
9396
client.wait_for_mcp("sriov", "switch.yaml")

0 commit comments

Comments
 (0)