Update link to toolset-min and quick fix for orphaned ceph hardware nodes
Related-PROD: PROD-37028
Change-Id: Ibc7090a705476e76e027fe30fa5bf5c27e4aee01
diff --git a/cfg_checker/common/settings.py b/cfg_checker/common/settings.py
index 72e809b..08d4163 100644
--- a/cfg_checker/common/settings.py
+++ b/cfg_checker/common/settings.py
@@ -408,7 +408,8 @@
self.env_name = env_name
def __init__(self, args):
- """Base configuration class. Only values that are common for all scripts
+ """Base configuration class.
+ Only values that are common for all scripts
"""
self.ssh_uses_sudo = args.sudo
self.ssh_direct = args.ssh_direct
diff --git a/cfg_checker/modules/ceph/info.py b/cfg_checker/modules/ceph/info.py
index ce115ff..2c62018 100644
--- a/cfg_checker/modules/ceph/info.py
+++ b/cfg_checker/modules/ceph/info.py
@@ -576,9 +576,10 @@
_index = 1
for device in _devices:
_t = device.split()
- _osd = _t[2]
- _node = _t[1]
_dev = _t[0]
+ _node = _t[1] if len(_t) > 1 else "unknown"
+ _osd = _t[2] if len(_t) > 2 else "unknown"
+
if _dev == "DEVICE":
continue
_metric = _cj("ceph device get-health-metrics {}".format(_dev))