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
This commit is contained in:
Pierre Riteau 2023-11-30 14:14:51 +01:00
parent 409d85758a
commit 5e39e08587

View File

@ -69,11 +69,13 @@
virtualenv: "{{ kolla_venv }}" virtualenv: "{{ kolla_venv }}"
extra_args: "{% if kolla_upper_constraints_file %}-c {{ kolla_upper_constraints_file }}{% endif %}" extra_args: "{% if kolla_upper_constraints_file %}-c {{ kolla_upper_constraints_file }}{% endif %}"
with_items: with_items:
# Intall Kolla from source. # Install Kolla from source.
- name: "{{ kolla_source_path }}" - name: "{{ kolla_source_path }}"
install: "{{ kolla_ctl_install_type == 'source' }}" install: "{{ kolla_ctl_install_type == 'source' }}"
# Intall Kolla from PyPI. # Install Kolla from PyPI.
- name: "kolla" - name: "kolla"
version: "{{ kolla_openstack_release }}" version: "{{ kolla_openstack_release }}"
install: "{{ kolla_ctl_install_type == 'binary' }}" 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 when: item.install | default(True) | bool