kolla-toolbox: Upgrade openvswitch collection to newer version

Ansible 2.10 includes openvswitch.openvswitch collection in lower version than
2.0.0 - which fixes the bug that state: absent requires value: to be set.

Related change: https://review.opendev.org/c/openstack/kolla-ansible/+/750631

Change-Id: I92dab4394b7eebdcff7f90765cde078c1292312b
This commit is contained in:
Michał Nasiadka 2021-03-25 07:31:58 +01:00 committed by Michal Nasiadka
parent ac4e496eeb
commit 910153f342
2 changed files with 7 additions and 1 deletions

View File

@ -80,10 +80,12 @@ ENV PATH {{ virtualenv_path }}/bin:$PATH
'pyudev',
] %}
COPY requirements.yml /var/lib/ansible/
RUN {{ macros.install_pip(kolla_toolbox_pip_packages | customizable("pip_packages")) }} \
&& mkdir -p /etc/ansible /usr/share/ansible \
&& echo 'localhost ansible_connection=local ansible_python_interpreter={{ virtualenv_path }}/bin/python' > /etc/ansible/hosts \
&& sed -i 's| "identity_api_version": "2.0",| "identity_api_version": "3",|' {{ os_client_config }}
&& sed -i 's| "identity_api_version": "2.0",| "identity_api_version": "3",|' {{ os_client_config }} \
&& ansible-galaxy collection install -p /usr/share/ansible/collections -r /var/lib/ansible/requirements.yml
ENV ANSIBLE_LIBRARY /usr/share/ansible:$ANSIBLE_LIBRARY

View File

@ -0,0 +1,4 @@
---
collections:
- name: openvswitch.openvswitch
version: 2.0.0