From 1299b7aa4d9e2d23ab0612101ec834f34bc7386d Mon Sep 17 00:00:00 2001 From: Luca Miccini Date: Mon, 14 Apr 2025 11:40:15 +0200 Subject: [PATCH] Pin collections to latest ansible 2.15 compatible versions ansible.utils just released a new version that is incompatible with ansible-2.15 (ansible-collections/ansible.utils@7059201) and this results in: ``` TASK [common : Show networks data for debugging (common role)] ***************** task path: /home/dev-scripts/metal3-dev-env/vm-setup/roles/common/tasks/main.yml:42 [WARNING]: Collection ansible.netcommon does not support Ansible version 2.15.12 [WARNING]: Collection ansible.utils does not support Ansible version 2.15.12 redirecting (type: filter) ansible.builtin.nthhost to ansible.netcommon.nthhost redirecting (type: filter) ansible.builtin.nthhost to ansible.netcommon.nthhost ``` this is a proposal to pin these collections until we can upgrade to 2.16. Signed-off-by: Luca Miccini --- 01_install_requirements.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/01_install_requirements.sh b/01_install_requirements.sh index 4ac0b3157..3c9ca4e9c 100755 --- a/01_install_requirements.sh +++ b/01_install_requirements.sh @@ -135,7 +135,9 @@ sudo python -m pip install ansible=="${ANSIBLE_VERSION}" pushd ${METAL3_DEV_ENV_PATH} ansible-galaxy install -r vm-setup/requirements.yml -ansible-galaxy collection install --upgrade ansible.netcommon ansible.posix ansible.utils community.general +# Let's temporarily pin these collections to the latest compatible with ansible-2.15 +#ansible-galaxy collection install --upgrade ansible.netcommon ansible.posix ansible.utils community.general +ansible-galaxy collection install 'ansible.netcommon<=7.2.0' ansible.posix 'ansible.utils<=5.1.2' community.general ANSIBLE_FORCE_COLOR=true ansible-playbook \ -e "working_dir=$WORKING_DIR" \ -e "virthost=$HOSTNAME" \