mcvirt.cluster package¶
Submodules¶
mcvirt.cluster.cluster module¶
Provide cluster classes
-
class
mcvirt.cluster.cluster.
Cluster
[source]¶ Bases:
mcvirt.rpc.pyro_object.PyroObject
Class to perform node management within the MCVirt cluster
-
add_node
(*args, **kwargs)¶
-
add_node_configuration
(*args, **kwargs)¶
-
check_ip_configuration
()[source]¶ Perform various checks to ensure that the IP configuration is such that is suitable to be part of a cluster
-
check_node_versions
()[source]¶ Ensure that all nodes in the cluster are connected and checks the node Status
-
check_remote_machine
(remote_connection)[source]¶ Perform checks on the remote node to ensure that there will be no object conflicts when syncing the Network and VM configurations
-
generate_connection_info
()[source]¶ Generate required information to connect to this node from a remote node
-
get_remote_node
(node, ignore_cluster_master=False)[source]¶ Obtain a Remote object for a node, caching the object
-
remove_node
(*args, **kwargs)¶
-
remove_node_configuration
(node_name)[source]¶ Remove an MCVirt node from the configuration and regenerates authorized_keys file
-
run_remote_command
(callback_method, nodes=None, args=[], kwargs={})[source]¶ Run a remote command on all (or a given list of) remote nodes
-
mcvirt.cluster.remote module¶
Provide interface for RPC to cluster nodes
-
class
mcvirt.cluster.remote.
Node
(name, node_config)[source]¶ Bases:
mcvirt.client.rpc.Connection
A class to perform remote commands on MCVirt nodes