From e1ee85a560ceca1a4e5eb6052df0335d3dff4765 Mon Sep 17 00:00:00 2001 From: Alex Schultz Date: Thu, 17 Jan 2019 13:31:18 -0700 Subject: [PATCH] Increase gather_facts timeout Bifrost containers are failing to build occassionally due to udevadm timeouts. This is likely related to an ansible issue, https://github.com/ansible/ansible/issues/43884, which can be worked around by increasing the gather facts timeout value. This change updates it to 30 seconds from the default 10. Change-Id: If252e41a012a24f31cf2f1414657ac18c819228f Closes-Bug: #1812259 Depends-On: https://review.openstack.org/632078 --- docker/bifrost/bifrost-base/Dockerfile.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker/bifrost/bifrost-base/Dockerfile.j2 b/docker/bifrost/bifrost-base/Dockerfile.j2 index 4bd96f9771..8e2fb47f5e 100644 --- a/docker/bifrost/bifrost-base/Dockerfile.j2 +++ b/docker/bifrost/bifrost-base/Dockerfile.j2 @@ -35,6 +35,9 @@ RUN sed -e "s/.*mariadb.*//Ig" -e "s/.*rabbitmq.*//Ig" -i /etc/apt/sources.list && apt-get purge -y mariadb* mysql* {% endif %} +{# ANSIBLE_GATHER_TIMEOUT is a workaround for https://github.com/ansible/ansible/issues/43884 #} +ENV ANSIBLE_GATHER_TIMEOUT=30 + {% block bifrost_ansible_install %} {% if base_distro in ['debian', 'ubuntu'] %} RUN apt-get update && \