Skip to content

Commit 10e9773

Browse files
authored
Merge pull request bn222#268 from SalDaniele/enable_physical_connect
ipu: run python script to ensure acc connectivity
2 parents 43f35bb + 47c0b9e commit 10e9773

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

ipu.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,18 @@ def _prepare_imc(self, server_with_key: str) -> None:
314314
update-ca-trust
315315
sleep 10 # wait for ip address so that redfish starts with that in place
316316
systemctl restart redfish
317+
# workaround to ensure acc has connectivity https://issues.redhat.com/browse/IIC-266
318+
nohup sh -c '
319+
while true; do
320+
sleep 30
321+
python /usr/bin/scripts/cfg_acc_apf_x2.py
322+
ping -c 1 192.168.0.2
323+
if [ $? -eq 0 ]; then
324+
break
325+
fi
326+
done
327+
' &
328+
317329
"""
318330
server = host.RemoteHost(server_with_key)
319331
server.ssh_connect("root", "redhat")

0 commit comments

Comments
 (0)