Skip to content

Commit 2536c77

Browse files
fix jm remote connection 3
1 parent 4a0af10 commit 2536c77

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

simplyblock_core/services/storage_node_monitor.py

-13
Original file line numberDiff line numberDiff line change
@@ -92,23 +92,10 @@ def get_current_cluster_status(cluster_id):
9292
offline_devices = 0
9393

9494
for node in snodes:
95-
if snode.is_secondary_node:
96-
continue
9795

9896
node_online_devices = 0
9997
node_offline_devices = 0
10098

101-
# if node.status == StorageNode.STATUS_REMOVED:
102-
# removed_offline_devices = 0
103-
# for dev in node.nvme_devices:
104-
# if dev.status not in [NVMeDevice.STATUS_FAILED_AND_MIGRATED, NVMeDevice.STATUS_JM]:
105-
# removed_offline_devices += 1
106-
# offline_devices += 1
107-
# if removed_offline_devices > 0:
108-
# offline_devices += 1
109-
# affected_nodes += 1
110-
#
111-
# else:
11299
if node.status == StorageNode.STATUS_ONLINE:
113100
if is_new_migrated_node(cluster_id, node):
114101
continue

0 commit comments

Comments
 (0)