summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmilien Macchi <emilien@redhat.com>2019-01-29 14:18:25 -0500
committerEmilien Macchi <emilien@redhat.com>2019-01-29 14:18:25 -0500
commite60ad5dcc60d8056e06343cc2c53df7f3414372f (patch)
treecc0a17ab62f03d1ee64982cd69c0ec44e825a769
parentd7d7592dc7d0c219ac621f3eb4f06aaf5681fa1e (diff)
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
Notes
Notes (review): Code-Review+2: Alex Schultz <aschultz@redhat.com> Code-Review+2: Steve Baker <sbaker@redhat.com> Workflow+1: Steve Baker <sbaker@redhat.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Thu, 31 Jan 2019 17:46:09 +0000 Reviewed-on: https://review.openstack.org/633805 Project: openstack/ansible-role-tripleo-modify-image Branch: refs/heads/master
-rw-r--r--tasks/yum_update_buildah.yml4
1 files changed, 4 insertions, 0 deletions
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 @@
47 --net host 47 --net host
48 {{ from_image }} 48 {{ from_image }}
49 /tmp/yum_update.sh "{{ update_repo }}" 49 /tmp/yum_update.sh "{{ update_repo }}"
50 retries: 3
51 delay: 3
52 register: result
53 until: result.rc == 0
50 54
51- name: Remove temporary yum_update.sh script 55- name: Remove temporary yum_update.sh script
52 file: 56 file: