From: Grant Slater Date: Sat, 28 Oct 2023 22:01:58 +0000 (+0100) Subject: podman: workaround ubuntu 22.04 crun bug X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/a5da0ffea6e87b6154543e46dcca79a191672265 podman: workaround ubuntu 22.04 crun bug --- diff --git a/cookbooks/podman/resources/service.rb b/cookbooks/podman/resources/service.rb index 6052b7fb2..b48e04ce1 100644 --- a/cookbooks/podman/resources/service.rb +++ b/cookbooks/podman/resources/service.rb @@ -42,9 +42,12 @@ action :create do end # No action :start here to avoid a start and then immediate :restart, due to subscribe, on first run + # FIXME: Ubuntu 22.04 podman/crun bug workaround "retries" service new_resource.service do action :enable subscribes :restart, "systemd_service[#{new_resource.service}]", :immediately + retries 4 # Workaround https://github.com/containers/podman/issues/9752 + retry_delay 5 end # Ensure the service is started if not running, replies on status of service resource