Signed-off-by: Luca Bigliardi <[email protected]>
---
 lib/backend.py   |    7 +++++++
 lib/constants.py |    1 +
 2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/lib/backend.py b/lib/backend.py
index 0e3c2e2..36eb2a4 100644
--- a/lib/backend.py
+++ b/lib/backend.py
@@ -584,6 +584,13 @@ def VerifyNode(what, cluster_name):
       used_minors = str(err)
     result[constants.NV_DRBDLIST] = used_minors
 
+  if constants.NV_DRBDHELPER in what:
+    try:
+      result[constants.NV_DRBDHELPER] = bdev.BaseDRBD.GetUsermodeHelper()
+    except errors.BlockDeviceError, err:
+      logging.info("Can't get DRBD usermode helper")
+      result[constants.NV_DRBDHELPER] = str(err)
+
   if constants.NV_NODESETUP in what:
     result[constants.NV_NODESETUP] = tmpr = []
     if not os.path.isdir("/sys/block") or not os.path.isdir("/sys/class/net"):
diff --git a/lib/constants.py b/lib/constants.py
index 672a2c0..58354aa 100644
--- a/lib/constants.py
+++ b/lib/constants.py
@@ -710,6 +710,7 @@ VERIFY_NPLUSONE_MEM = 'nplusone_mem'
 VERIFY_OPTIONAL_CHECKS = frozenset([VERIFY_NPLUSONE_MEM])
 
 # Node verify constants
+NV_DRBDHELPER = "drbd-helper"
 NV_DRBDLIST = "drbd-list"
 NV_FILELIST = "filelist"
 NV_HVINFO = "hvinfo"
-- 
1.7.1

Reply via email to