Browse Source

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
changes/05/633805/1
Emilien Macchi 3 months ago
parent
commit
e60ad5dcc6
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      tasks/yum_update_buildah.yml

+ 4
- 0
tasks/yum_update_buildah.yml View File

@@ -47,6 +47,10 @@
47 47
       --net host
48 48
       {{ from_image }}
49 49
       /tmp/yum_update.sh "{{ update_repo }}"
50
+  retries: 3
51
+  delay: 3
52
+  register: result
53
+  until: result.rc == 0
50 54
 
51 55
 - name: Remove temporary yum_update.sh script
52 56
   file:

Loading…
Cancel
Save