Package ganeti :: Module _generated_rpc :: Class RpcClientBootstrap
[hide private]
[frames] | no frames]

Class RpcClientBootstrap

source code


Instance Methods [hide private]
 
call_master_info(self, node_list, _def=_CALLS ['master_info'])
Wrapper for RPC call 'master_info'
source code
 
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'
source code
 
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'
source code
 
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'
source code
 
call_node_leave_cluster(self, node, modify_ssh_setup, _def=_CALLS ['node_leave_cluster'])
Wrapper for RPC call 'node_leave_cluster'
source code
 
call_node_start_master_daemons(self, node, no_voting, _def=_CALLS ['node_start_master_daemons'])
Wrapper for RPC call 'node_start_master_daemons'
source code
 
call_node_stop_master(self, node, _def=_CALLS ['node_stop_master'])
Wrapper for RPC call 'node_stop_master'
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  _CALLS = rpc_defs.CALLS ['RpcClientBootstrap']
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

call_master_info(self, node_list, _def=_CALLS ['master_info'])

source code 

Wrapper for RPC call 'master_info'

Query master info

Parameters:
  • node_list (list of string) - List of node names

Note: This is a multi-node call with a timeout of 1m 0s

call_node_activate_master_ip(self, node, master_params, use_external_mip_script, _def=_CALLS ['node_activate_master_ip'])

source code 

Wrapper for RPC call 'node_activate_master_ip'

Activates master IP on a node

Parameters:
  • node (string) - Node name
  • master_params - Network parameters of the master
  • use_external_mip_script - Whether to use the user-provided master IP address setup script

Note: This is a single-node call with a timeout of 5m 0s

call_node_change_master_netmask(self, node, old_netmask, netmask, master_ip, master_netdev, _def=_CALLS ['node_change_master_netmask'])

source code 

Wrapper for RPC call 'node_change_master_netmask'

Change master IP netmask

Parameters:
  • node (string) - Node name
  • old_netmask - The old value of the netmask
  • netmask - The new value of the netmask
  • master_ip - The master IP
  • master_netdev - The master network device

Note: This is a single-node call with a timeout of 5m 0s

call_node_deactivate_master_ip(self, node, master_params, use_external_mip_script, _def=_CALLS ['node_deactivate_master_ip'])

source code 

Wrapper for RPC call 'node_deactivate_master_ip'

Deactivates master IP on a node

Parameters:
  • node (string) - Node name
  • master_params - Network parameters of the master
  • use_external_mip_script - Whether to use the user-provided master IP address setup script

Note: This is a single-node call with a timeout of 5m 0s

call_node_leave_cluster(self, node, modify_ssh_setup, _def=_CALLS ['node_leave_cluster'])

source code 

Wrapper for RPC call 'node_leave_cluster'

Requests a node to clean the cluster information it has

Parameters:
  • node (string) - Node name

Note: This is a single-node call with a timeout of 15m 0s

call_node_start_master_daemons(self, node, no_voting, _def=_CALLS ['node_start_master_daemons'])

source code 

Wrapper for RPC call 'node_start_master_daemons'

Starts master daemons on a node

Parameters:
  • node (string) - Node name

Note: This is a single-node call with a timeout of 5m 0s

call_node_stop_master(self, node, _def=_CALLS ['node_stop_master'])

source code 

Wrapper for RPC call 'node_stop_master'

Deactivates master IP and stops master daemons on a node

Parameters:
  • node (string) - Node name

Note: This is a single-node call with a timeout of 5m 0s