Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion weka_upgrade_checker/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.9.5
1.9.6
Binary file modified weka_upgrade_checker/weka_upgrade_checker
Binary file not shown.
20 changes: 19 additions & 1 deletion weka_upgrade_checker/weka_upgrade_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

parse = V

pg_version = "1.9.5"
pg_version = "1.9.6"
known_issues_file = "known_issues.json"

log_file_path = os.path.abspath("./weka_upgrade_checker.log")
Expand Down Expand Up @@ -900,6 +900,24 @@ def __init__(self, machine_json):
WARN2(f"The following drives are not active\n")
printlist(bad_drive, 5)

INFO("CHECKING FOR ACTIVE UNWRITABLE DRIVES")
active_unwritable_drives = []
for drive in weka_drives:
if drive["status"] == "ACTIVE" and drive["writable"] == "Unwritable":
active_unwritable_drives += [
drive["disk_id"],
drive["node_id"],
drive["status"],
drive["hostname"],
drive["writable"]
]

if not active_unwritable_drives:
GOOD(f"All drives are in active and writable status")
else:
WARN(f"The following drives are active but not writable\n")
printlist(active_unwritable_drives, 5)

if V("4.0") <= V(weka_version) < V("4.2.1"):
INFO("VERIFYING DRIVES CONFIGURATION")
weka_drives = json.loads(
Expand Down