scylladb / scylla-ansible-roles

Ansible roles for deploying and managing Scylla, Scylla-Manager and Scylla-Monitoring
44 stars 38 forks source link

[ansible compatibility] ansible 2.16 errors out with role #408

Open tarzanek opened 1 month ago

tarzanek commented 1 month ago

TASK [ansible-scylla-node : Start seeders serially] *********************************************************************************************************************************************
task path: /home/scyllaadm/azure-test/scylla-ansible-roles/ansible-scylla-node/tasks/common.yml:349
fatal: [10.0.2.4]: FAILED! => {"msg": "The conditional check 'hostvars[item]['broadcast_address'] in scylla_seeds or item in scylla_seeds' failed. The error was: error while evaluating conditional (hostvars[item]['broadcast_address'] in scylla_seeds or item in scylla_seeds): 'ansible.vars.hostvars.HostVarsVars object' has no attribute 'broadcast_address'. 'ansible.vars.hostvars.HostVarsVars object' has no attribute 'broadcast_address'\n\nThe error appears to be in '/home/scyllaadm/azure-test/scylla-ansible-roles/ansible-scylla-node/tasks/common.yml': line 349, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n    - name: Start seeders serially\n      ^ here\n"}

this is how it starts failing

when I downgrade similar to https://github.com/scylladb/scylla-ansible-roles/issues/352

sudo pip3 install --upgrade ansible==6.7.0

it starts working ...

tarzanek commented 1 month ago

fwiw above was on Ubuntu 24 and ansible in the repos of Ubuntu 24.0.4.1

ansible-core/noble 2.16.3-0ubuntu2 all
ansible/noble 9.2.0+dfsg-0ubuntu5 all