Podman. preparation failed, sometimes
I know Podman is not supported yet and running in a rhel 8 infrastructure so doing it anyway.
Managed to get podman working with gitlab runner using the default docker executor and it works most of the times.
Using the feature flag FF_NETWORK_PER_BUILD and podman-docker to get it working. Running as root and will try to get it working with rootless as next step.
$ podman --version
podman version 3.4.2
$ cat /etc/redhat-release
Red Hat Enterprise Linux release 8.5 (Ootpa)
Every once in a while builds fails with the following setup and a network is left in the podman.
Running with gitlab-runner 14.8.2 (c6e7e194)
on gitlab-ext jBiM6Az3
feature flags: FF_NETWORK_PER_BUILD:true
Resolving secrets
00:00
Preparing the "docker" executor
00:10
Using Docker executor with image registry.gitlab.com/gitlab-org/terraform-images/stable:latest ...
ERROR: Preparation failed: Error response from daemon: container ad2bab8704c8fd13df9f48538c3015932a43e1b9d62ac47286dd16fdb33b946f does not exist in database: no such container (manager.go:65:0s)
Will be retried in 3s ...
Using Docker executor with image registry.gitlab.com/gitlab-org/terraform-images/stable:latest ...
ERROR: Preparation failed: Error response from daemon: the network name runner-jbim6az3-project-32203525-concurrent-3-job-2246597560-network is already used (manager.go:65:0s)
Will be retried in 3s ...
Using Docker executor with image registry.gitlab.com/gitlab-org/terraform-images/stable:latest ...
ERROR: Preparation failed: Error response from daemon: the network name runner-jbim6az3-project-32203525-concurrent-3-job-2246597560-network is already used (manager.go:65:0s)
Will be retried in 3s ...
ERROR: Job failed (system failure): Error response from daemon: the network name runner-jbim6az3-project-32203525-concurrent-3-job-2246597560-network is already used (manager.go:65:0s)
Workaround so far is just retrying the jobs and it works.