Skip to content

Commit

Permalink
Do not use --debug for image build
Browse files Browse the repository at this point in the history
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] ansible/ansible-runner#1164
[2] https://review.opendev.org/c/openstack/tripleo-quickstart-extras/+/864838

Related-Bug: #1996612
Change-Id: I498c9cac7815d3d0682835d2bf943594dad2203c
  • Loading branch information
Sandeepyadav93 authored and kajinamit committed Nov 24, 2022
1 parent 2066a2b commit 909c83b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion roles/build-containers/templates/tripleo-build.sh.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 909c83b

Please sign in to comment.