Skip to content

Commit e50933b

Browse files
authored
Merge pull request #69 from weka/vince/2025-03-26
Vince/2025 03 26
2 parents e95cb16 + 52abb17 commit e50933b

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

collector.py

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -446,12 +446,15 @@ def gather(self):
446446
#
447447
#
448448

449-
node_maps = {"FRONTEND": {}, "COMPUTE": {}, "DRIVES": {}, "MANAGEMENT": {}} # initial state of maps
449+
#node_maps = {"FRONTEND": {}, "COMPUTE": {}, "DRIVES": {}, "MANAGEMENT": {}} # initial state of maps
450+
node_maps = dict()
450451

451452
# log.debug(f'{weka_maps["node-role"]}')
452453

453454
for node in node_role_map: # node == "NodeId<xx>"
454455
for role in node_role_map[node]:
456+
if role not in node_maps:
457+
node_maps[role] = dict()
455458
nid = int(node.split('<')[1].split('>')[0]) # make nodeid numeric
456459
hostname = node_host_map[node]
457460
if hostname not in node_maps[role]:
@@ -460,15 +463,16 @@ def gather(self):
460463

461464
# log.debug(f"{str(self.cluster)} {json.dumps(node_maps, indent=4)}")
462465

466+
# no longer used
463467
# find a better place to define this... for now here is good (vince)
464-
category_nodetypes = {
465-
'cpu': ['FRONTEND', 'COMPUTE', 'DRIVES'],
466-
'ops': ['FRONTEND'],
467-
'ops_driver': ['FRONTEND'],
468-
'ops_nfs': ['COMPUTE'], # not sure about this one
469-
'ssd': ['DRIVES'],
470-
'network': ['FRONTEND', 'COMPUTE', 'DRIVES']
471-
}
468+
#category_nodetypes = {
469+
# 'cpu': ['FRONTEND', 'COMPUTE', 'DRIVES'],
470+
# 'ops': ['FRONTEND'],
471+
# 'ops_driver': ['FRONTEND'],
472+
# 'ops_nfs': ['COMPUTE'], # not sure about this one
473+
# 'ssd': ['DRIVES'],
474+
# 'network': ['FRONTEND', 'COMPUTE', 'DRIVES']
475+
#}
472476

473477
# new impl
474478
# up_list is a list of all the good hosts (ie: not down)

export.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
from wekalib.wekacluster import WekaCluster
3030
import wekalib.exceptions
3131

32-
VERSION = "1.8.2"
32+
VERSION = "20250326"
3333

3434
#VERSION = "experimental"
3535

0 commit comments

Comments
 (0)