From 5e39e08587e04d59b8fb0b1bc827f92fed8a642c Mon Sep 17 00:00:00 2001 From: Pierre Riteau Date: Thu, 30 Nov 2023 14:14:51 +0100 Subject: [PATCH] Install docker Python package in kolla venv The docker Python package was dropped from kolla requirements [1], but we still need to install it to build container images. [1] https://review.opendev.org/c/openstack/kolla/+/896644 Change-Id: I241884497f4fb707385eb12d5fcc187ed839f754 --- ansible/roles/kolla/tasks/install.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ansible/roles/kolla/tasks/install.yml b/ansible/roles/kolla/tasks/install.yml index a6a03bf56..09cbeb9ef 100644 --- a/ansible/roles/kolla/tasks/install.yml +++ b/ansible/roles/kolla/tasks/install.yml @@ -69,11 +69,13 @@ virtualenv: "{{ kolla_venv }}" extra_args: "{% if kolla_upper_constraints_file %}-c {{ kolla_upper_constraints_file }}{% endif %}" with_items: - # Intall Kolla from source. + # Install Kolla from source. - name: "{{ kolla_source_path }}" install: "{{ kolla_ctl_install_type == 'source' }}" - # Intall Kolla from PyPI. + # Install Kolla from PyPI. - name: "kolla" version: "{{ kolla_openstack_release }}" install: "{{ kolla_ctl_install_type == 'binary' }}" + # Install docker from PyPI since it was dropped from kolla requirements. + - name: "docker" when: item.install | default(True) | bool