We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent accdbd6 commit edfc04cCopy full SHA for edfc04c
src/roles/ha_db_hana/tasks/block-network.yml
@@ -70,6 +70,14 @@
70
primary_node_down: "{{ hostvars[cluster_status_pre.primary_node].node_status is failed }}"
71
secondary_node_down: "{{ hostvars[cluster_status_pre.secondary_node].node_status is failed }}"
72
73
+ - name: "Fail if both nodes are unavailable"
74
+ ansible.builtin.fail:
75
+ msg: |
76
+ "Critical error: Both primary and secondary nodes are fenced.
77
+ Please check the cluster status. This typically happens when priority-fencing-delay
78
+ parameter is not set in the cluster configuration."
79
+ when: primary_node_down and secondary_node_down
80
+
81
- name: "Test Execution: Check node status on primary and secondary"
82
when:
83
- not primary_node_down
0 commit comments