Revision 9e33896b

b/lib/config.py
1420 1420
    self._WriteConfig()
1421 1421

  
1422 1422
  @locking.ssynchronized(_config_lock, shared=1)
1423
  def GetDRBDHelper(self):
1424
    """Return DRBD usermode helper.
1425

  
1426
    """
1427
    return self._config_data.cluster.drbd_usermode_helper
1428

  
1429
  @locking.ssynchronized(_config_lock)
1430
  def SetDRBDHelper(self, drbd_helper):
1431
    """Set DRBD usermode helper.
1432

  
1433
    """
1434
    self._config_data.cluster.drbd_usermode_helper = drbd_helper
1435
    self._config_data.cluster.serial_no += 1
1436
    self._WriteConfig()
1437

  
1438
  @locking.ssynchronized(_config_lock, shared=1)
1423 1439
  def GetMACPrefix(self):
1424 1440
    """Return the mac prefix.
1425 1441

  
b/lib/objects.py
862 862
    "tcpudp_port_pool",
863 863
    "mac_prefix",
864 864
    "volume_group_name",
865
    "drbd_usermode_helper",
865 866
    "default_bridge",
866 867
    "default_hypervisor",
867 868
    "master_node",
b/test/ganeti.config_unittest.py
68 68
      highest_used_port=(constants.FIRST_DRBD_PORT - 1),
69 69
      mac_prefix="aa:00:00",
70 70
      volume_group_name="xenvg",
71
      drbd_usermode_helper="/bin/true",
71 72
      nicparams={constants.PP_DEFAULT: constants.NICC_DEFAULTS},
72 73
      tcpudp_port_pool=set(),
73 74
      enabled_hypervisors=[constants.HT_FAKE],

Also available in: Unified diff