From 909c83bc625fac1479b281d325e29bb7b2388c3f Mon Sep 17 00:00:00 2001 From: Sandeep Yadav Date: Thu, 24 Nov 2022 18:20:24 +0530 Subject: [PATCH] Do not use --debug for image build Since Ansible was bumped to 2.14, we've observed the container image build process gets stuck in the middle of ansible tasks to generate Docker/Buildah files, because of a bug[1] with ansible-runner. This removes --debug option from the build command to avoid -vvv option in the ansible command, to workaround the above bug. Same workaround is added for content-provider already[2], adding same workaround for build-containers role. [1] https://github.com/ansible/ansible-runner/issues/1164 [2] https://review.opendev.org/c/openstack/tripleo-quickstart-extras/+/864838 Related-Bug: #1996612 Change-Id: I498c9cac7815d3d0682835d2bf943594dad2203c --- roles/build-containers/templates/tripleo-build.sh.j2 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/roles/build-containers/templates/tripleo-build.sh.j2 b/roles/build-containers/templates/tripleo-build.sh.j2 index 78245a7e5..ec32166ee 100644 --- a/roles/build-containers/templates/tripleo-build.sh.j2 +++ b/roles/build-containers/templates/tripleo-build.sh.j2 @@ -95,4 +95,8 @@ openstack tripleo container image build \ {% if (tcib_extra_config is defined) and (release|default(branch) not in ["train", "wallaby"]) %} --extra-config {{ workspace }}/extra_config.yaml \ {% endif %} - --debug +# TODO(tkajinam): With Ansible 2.14, the playbook triggered by the command +# gets stuck if -vvv is set. We temporarily remove --debug +# as a workaround until we find out the appropriate fix. +# https://github.com/ansible/ansible-runner/issues/1164 +# --debug