Revision ee2f0ed4
b/lib/constants.py | ||
---|---|---|
441 | 441 |
TCP_PING_TIMEOUT = 10 |
442 | 442 |
GANETI_RUNAS = "root" |
443 | 443 |
DEFAULT_VG = "xenvg" |
444 |
DEFAULT_DRBD_HELPER = "/bin/true" |
|
444 | 445 |
MIN_VG_SIZE = 20480 |
445 | 446 |
DEFAULT_MAC_PREFIX = "aa:00:00" |
446 | 447 |
LVM_STRIPECOUNT = _autoconf.LVM_STRIPECOUNT |
b/lib/objects.py | ||
---|---|---|
364 | 364 |
node.UpgradeConfig() |
365 | 365 |
for instance in self.instances.values(): |
366 | 366 |
instance.UpgradeConfig() |
367 |
if self.cluster.drbd_usermode_helper is None: |
|
368 |
# To decide if we set an helper let's check if at least one instance has |
|
369 |
# a DRBD disk. This does not cover all the possible scenarios but it |
|
370 |
# gives a good approximation. |
|
371 |
if self.HasAnyDiskOfType(constants.LD_DRBD8): |
|
372 |
self.cluster.drbd_usermode_helper = constants.DEFAULT_DRBD_HELPER |
|
367 | 373 |
|
368 | 374 |
|
369 | 375 |
class NIC(ConfigObject): |
Also available in: Unified diff