Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
igorribeiroduarte committed Apr 1, 2024
1 parent b79335c commit 00562a2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ansible-scylla-node/tasks/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,12 @@
set_fact:
broadcast_address: "{{ scylla_broadcast_address }}"

# This will be used later to validate the output of nodetool status
- name: Create a list with the broadcast addresses of the nodes in play_hosts
broadcast_address_list: "{{ broadcast_address_list | default([]) + [hostvars[item]['broadcast_address']] }}"
loop: "{{ play_hosts }}"
run_once: true

- name: start_scylla_service dependent tasks
block:
- name: Generate tokens for the new nodes
Expand Down Expand Up @@ -347,7 +353,7 @@

- name: wait for the cluster to become healthy
shell: |
nodetool status|grep -E '^UN|^UJ|^DN'| grep -Ew "{{ play_hosts | join('|') }}" | wc -l
nodetool status|grep -E '^UN|^UJ|^DN'| grep -Ew "{{ broadcast_address_list | join('|') }}" | wc -l
register: node_count
until: node_count.stdout|int == play_hosts|length
retries: "{{ scylla_bootstrap_wait_time_sec|int }}"
Expand Down

0 comments on commit 00562a2

Please sign in to comment.