Skip to content

Commit eea3701

Browse files
Check snode health (#254)
* feat: add topology-aware multicluster provisioning support * rebased branch with master * activate cluster when all snode health is true --------- Co-authored-by: Manohar Reddy <manohar@simplyblock.io>
1 parent b3ca8f8 commit eea3701

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

charts/spdk-csi/latest/spdk-csi/templates/mgmt-api-config-map.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ data:
3939
retries = total_value * 60
4040
while retries > 0:
4141
node_statuses = get_node_statuses(cluster_ip, cluster_uuid, cluster_secret)
42-
online_nodes = [node for node in node_statuses if node.get('status') == 'online' and len(node.get('nvme_devices'))>0]
42+
online_nodes = [node for node in node_statuses if node.get('status') == 'online' and node.get('health_check') == True and len(node.get('nvme_devices'))>0]
4343
4444
if len(online_nodes) >= total_nodes and len(online_nodes) >= total_value :
4545
print("Proceeding with cluster activation.")

0 commit comments

Comments
 (0)