From e60ad5dcc60d8056e06343cc2c53df7f3414372f Mon Sep 17 00:00:00 2001 From: Emilien Macchi Date: Tue, 29 Jan 2019 14:18:25 -0500 Subject: [PATCH] yum_update_buildah: add retry x3 The "buildah run" randomly fails on centos7 kernel, with: standard_init_linux.go:203: exec user process caused "no such file or directory" We think it's related to: https://github.com/containers/libpod/issues/1844 To workaround this issue, we'll retry 3 times with a delay of 3 seconds between each "buildah run" command which would fail to produce an exit code of 0. Change-Id: Ic50fd359c9bf50a6e0247d7743b26191d2f3dcb5 --- tasks/yum_update_buildah.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tasks/yum_update_buildah.yml b/tasks/yum_update_buildah.yml index d2e9edb..3318df3 100644 --- a/tasks/yum_update_buildah.yml +++ b/tasks/yum_update_buildah.yml @@ -47,6 +47,10 @@ --net host {{ from_image }} /tmp/yum_update.sh "{{ update_repo }}" + retries: 3 + delay: 3 + register: result + until: result.rc == 0 - name: Remove temporary yum_update.sh script file: