mcvirt.node package¶
Subpackages¶
Submodules¶
mcvirt.node.drbd module¶
Provides interface to mange the DRBD installation.
-
class
mcvirt.node.drbd.Drbd[source]¶ Bases:
mcvirt.rpc.pyro_object.PyroObjectPerforms configuration of DRBD on the node
-
CLUSTER_SIZE= 2¶
-
CONFIG_DIRECTORY= '/etc/drbd.d'¶
-
DrbdADM= '/sbin/drbdadm'¶
-
GLOBAL_CONFIG= '/etc/drbd.d/global_common.conf'¶
-
GLOBAL_CONFIG_TEMPLATE= '/usr/lib/mcvirt/templates/drbd_global.conf'¶
-
adjust_drbd_config(resource='all')[source]¶ Perform a Drbd adjust, which updates the Drbd running configuration
-
enable(*args, **kwargs)¶
-
get_all_drbd_hard_drive_object(include_remote=False)[source]¶ Obtain all hard drive objects that are backed by DRBD
-
mcvirt.node.libvirt_config module¶
Provide class to configure libvirtd
-
class
mcvirt.node.libvirt_config.LibvirtConfig[source]¶ Bases:
mcvirt.rpc.pyro_object.PyroObjectProvides configuration for libvirtd
-
CONFIG_FILE= '/etc/libvirt/libvirtd.conf'¶
-
CONFIG_TEMPLATE= '/usr/lib/mcvirt/templates/libvirtd.conf'¶
-
DEFAULT_CONFIG= '\n# Defaults for libvirtd initscript (/etc/init.d/libvirtd)\n# This is a POSIX shell fragment\n\n# Start libvirtd to handle qemu/kvm:\nstart_libvirtd="yes"\n\n# options passed to libvirtd, add "-l" to listen on tcp\nlibvirtd_opts=" --listen --verbose %s"\n'¶
-
DEFAULT_FILE= '/etc/default/%s'¶
-
mcvirt.node.node module¶
Perform configurations for local node.
-
class
mcvirt.node.node.Node[source]¶ Bases:
mcvirt.rpc.pyro_object.PyroObjectProvides methods to configure the local node.
-
set_cluster_ip_address(*args, **kwargs)¶
-
set_storage_volume_group(*args, **kwargs)¶
-