Skip to content

Commit

Permalink
print scylla server status in case it fails
Browse files Browse the repository at this point in the history
  • Loading branch information
tarzanek committed Feb 28, 2024
1 parent 0b717cb commit 9baabd4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ansible-scylla-node/tasks/start_one_node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@
become: true
delegate_to: "{{ item }}"

- name: check scylla-server status
command: systemctl status scylla-server
become: true
register: scylla_status

- name: show Scylla status in case service didn't start
debug:
var: scylla_status
when: ansible_facts.services['scylla-server.service'] is defined and (ansible_facts.services['scylla-server.service']["status"] != "started")

# By default waits at most 7 hours for a node to start - bootstrapping and the corresponding streaming can take quite long
- name: Wait for CQL port on {{ hostvars[item]['rpc_address'] }}
wait_for:
Expand Down

0 comments on commit 9baabd4

Please sign in to comment.