Skip to content

Commit a63ff7b

Browse files
thozzacroissanne
authored andcommitted
schutzbot/deploy.sh: apply podman CNI network workaround on c9s
By updating the terraform ref and using newer c9s ci-runner, we started to hit the issue that podman is falling back to using CNI network backend when it detects existing container images in the local container store. This is the situation for our ci-runner images, because we are embedding container images at build time. The solution is to explicitly set the podman network backend to 'netavark'. Signed-off-by: Tomáš Hozza <[email protected]>
1 parent 3ef1147 commit a63ff7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

schutzbot/deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ fi
175175
# this in osbuild, we explicitly set the network backend to 'netavark'.
176176
# This is relevant only for RHEL-9 / c9s, because Fedora since F40 and el10
177177
# support only `netavark` backend.
178-
if [[ $ID == "rhel" && ${VERSION_ID%.*} == "9" ]]; then
178+
if [[ ($ID == "rhel" || $ID == "centos") && ${VERSION_ID%.*} == "9" ]]; then
179179
greenprint "containers.conf: explicitly setting network_backend to 'netavark'"
180180
sudo mkdir -p /etc/containers/containers.conf.d
181181
sudo tee /etc/containers/containers.conf.d/network_backend.conf > /dev/null << EOF

0 commit comments

Comments
 (0)