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
This commit is contained in:
parent
d7d7592dc7
commit
e60ad5dcc6
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue