diff --git a/ansible/roles/kolla-build/templates/kolla-build.conf.j2 b/ansible/roles/kolla-build/templates/kolla-build.conf.j2 index 18a79be3c..5603bf787 100644 --- a/ansible/roles/kolla-build/templates/kolla-build.conf.j2 +++ b/ansible/roles/kolla-build/templates/kolla-build.conf.j2 @@ -11,6 +11,10 @@ install_type={{ kolla_install_type }} # Docker namespace to use for Kolla images. namespace={{ kolla_docker_namespace }} +# Use host networking by default, in line with Kolla Ansible's default Docker +# engine configuration. +network_mode=host + # Docker image tag to apply. tag={{ kolla_tag }} diff --git a/releasenotes/notes/kolla-build-network-mode-ba92e36d52e70d99.yaml b/releasenotes/notes/kolla-build-network-mode-ba92e36d52e70d99.yaml new file mode 100644 index 000000000..4a55b8d36 --- /dev/null +++ b/releasenotes/notes/kolla-build-network-mode-ba92e36d52e70d99.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + Fixes an issue with container image builds by using ``host`` as the default + ``network_mode`` for ``kolla-build``. See `story 2008942 + `__ for details.