From 08920c541c7b054096432fce374b0f5e5490916a Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Thu, 19 Jan 2023 09:19:04 +0000 Subject: [PATCH] CI: Workaround container image builder power cycle issue While not pretty, this workaround avoids manual intervention after the runner is power cycled. Co-Authored-By: Pierre Riteau --- .github/workflows/stackhpc-container-image-build.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/stackhpc-container-image-build.yml b/.github/workflows/stackhpc-container-image-build.yml index a36e3f12d..d6de1e81e 100644 --- a/.github/workflows/stackhpc-container-image-build.yml +++ b/.github/workflows/stackhpc-container-image-build.yml @@ -66,6 +66,14 @@ jobs: sudo ip l set dummy1 up sudo ip l set dummy1 master breth1 + # FIXME: Without this workaround we see the following issue after the runner is power cycled: + # TASK [MichaelRigart.interfaces : RedHat | ensure network service is started and enabled] *** + # Unable to start service network: Job for network.service failed because the control process exited with error code. + # See \"systemctl status network.service\" and \"journalctl -xe\" for details. + - name: Kill dhclient (workaround) + run: | + (sudo killall dhclient || true) && sudo systemctl restart network + - name: Install Kayobe run: | mkdir -p venvs &&