class documentation

class RpcClientBootstrap(object):

Known subclasses: ganeti.rpc.node.BootstrapRunner, ganeti.rpc.node.RpcRunner

View In Hierarchy

Undocumented

Method call_master_node_name Wrapper for RPC call 'master_node_name'
Method call_node_activate_master_ip Wrapper for RPC call 'node_activate_master_ip'
Method call_node_change_master_netmask Wrapper for RPC call 'node_change_master_netmask'
Method call_node_deactivate_master_ip Wrapper for RPC call 'node_deactivate_master_ip'
Method call_node_leave_cluster Wrapper for RPC call 'node_leave_cluster'
Method call_node_start_master_daemons Wrapper for RPC call 'node_start_master_daemons'
Method call_node_stop_master Wrapper for RPC call 'node_stop_master'
Constant _CALLS Undocumented
def call_master_node_name(self, node_list, _def=_CALLS['master_node_name']):

Wrapper for RPC call 'master_node_name'

Returns the master node name

Parameters
node_list:list of stringList of node names
_defUndocumented
Note
This is a multi-node call with a timeout of 1m 0s
def call_node_activate_master_ip(self, node, master_params, use_external_mip_script, _def=_CALLS['node_activate_master_ip']):

Wrapper for RPC call 'node_activate_master_ip'

Activates master IP on a node

Parameters
node:stringNode name
master_paramsNetwork parameters of the master
use_external_mip_scriptWhether to use the user-provided master IP address setup script
_defUndocumented
Note
This is a single-node call with a timeout of 5m 0s
def call_node_change_master_netmask(self, node, old_netmask, netmask, master_ip, master_netdev, _def=_CALLS['node_change_master_netmask']):

Wrapper for RPC call 'node_change_master_netmask'

Change master IP netmask

Parameters
node:stringNode name
old_netmaskThe old value of the netmask
netmaskThe new value of the netmask
master_ipThe master IP
master_netdevThe master network device
_defUndocumented
Note
This is a single-node call with a timeout of 5m 0s
def call_node_deactivate_master_ip(self, node, master_params, use_external_mip_script, _def=_CALLS['node_deactivate_master_ip']):

Wrapper for RPC call 'node_deactivate_master_ip'

Deactivates master IP on a node

Parameters
node:stringNode name
master_paramsNetwork parameters of the master
use_external_mip_scriptWhether to use the user-provided master IP address setup script
_defUndocumented
Note
This is a single-node call with a timeout of 5m 0s
def call_node_leave_cluster(self, node, modify_ssh_setup, _def=_CALLS['node_leave_cluster']):

Wrapper for RPC call 'node_leave_cluster'

Requests a node to clean the cluster information it has

Parameters
node:stringNode name
modify_ssh_setupUndocumented
_defUndocumented
Note
This is a single-node call with a timeout of 15m 0s
def call_node_start_master_daemons(self, node, no_voting, _def=_CALLS['node_start_master_daemons']):

Wrapper for RPC call 'node_start_master_daemons'

Starts master daemons on a node

Parameters
node:stringNode name
no_votingUndocumented
_defUndocumented
Note
This is a single-node call with a timeout of 5m 0s
def call_node_stop_master(self, node, _def=_CALLS['node_stop_master']):

Wrapper for RPC call 'node_stop_master'

Deactivates master IP and stops master daemons on a node

Parameters
node:stringNode name
_defUndocumented
Note
This is a single-node call with a timeout of 5m 0s
_CALLS =

Undocumented

Value
rpc_defs.CALLS['RpcClientBootstrap']