Revision 7ef40fbe

b/lib/backend.py
584 584
      used_minors = str(err)
585 585
    result[constants.NV_DRBDLIST] = used_minors
586 586

  
587
  if constants.NV_DRBDHELPER in what:
588
    status = True
589
    try:
590
      payload = bdev.BaseDRBD.GetUsermodeHelper()
591
    except errors.BlockDeviceError, err:
592
      logging.error("Can't get DRBD usermode helper: %s", str(err))
593
      status = False
594
      payload = str(err)
595
    result[constants.NV_DRBDHELPER] = (status, payload)
596

  
587 597
  if constants.NV_NODESETUP in what:
588 598
    result[constants.NV_NODESETUP] = tmpr = []
589 599
    if not os.path.isdir("/sys/block") or not os.path.isdir("/sys/class/net"):
b/lib/constants.py
718 718
VERIFY_OPTIONAL_CHECKS = frozenset([VERIFY_NPLUSONE_MEM])
719 719

  
720 720
# Node verify constants
721
NV_DRBDHELPER = "drbd-helper"
721 722
NV_DRBDLIST = "drbd-list"
722 723
NV_FILELIST = "filelist"
723 724
NV_HVINFO = "hvinfo"

Also available in: Unified diff