scylladb / scylla-ansible-roles

Ansible roles for deploying and managing Scylla, Scylla-Manager and Scylla-Monitoring
42 stars 36 forks source link

[forward compatibility] new ansible version breaks cleanup task #352

Open tarzanek opened 5 months ago

tarzanek commented 5 months ago

with

 ansible --version
ansible [core 2.16.3]

that is installed on Ubuntu 22

https://github.com/scylladb/scylla-ansible-roles/blob/master/ansible-scylla-node/tasks/adjust_keyspace_replication.yml#L46 cleanup task will fail with:

22:25:20  TASK [ansible-scylla-node : Run cleanup] ***************************************
22:25:20  An exception occurred during task execution. To see the full traceback, use -vvv. The error was: KeyError: 'display_ok_hosts'
22:25:20  fatal: [10.2.7.158]: FAILED! => {"msg": "Unexpected failure during module execution: 'display_ok_hosts'", "stdout": ""}
22:25:20  An exception occurred during task execution. To see the full traceback, use -vvv. The error was: KeyError: 'display_ok_hosts'

while with

sudo pip3 install --upgrade ansible==6.7.0

so ansible around 2.13.7 above task works

so our async library needs upgrade for newer ansible

vladzcloudius commented 3 weeks ago

@igorribeiroduarte let's try to understand what latest Ansible is not happy about.