Trees | Indices | Help |
|
---|
|
Inter-node RPC library.
|
|||
RpcResult RPC Result class. |
|||
_StaticResolver | |||
_RpcProcessor | |||
_RpcClientBase | |||
RpcRunner RPC runner class. |
|||
JobQueueRunner RPC wrappers for job queue. |
|||
BootstrapRunner RPC wrappers for bootstrapping. |
|||
DnsOnlyRunner RPC wrappers for calls using only DNS. |
|||
ConfigRunner RPC wrappers for config. |
|
|||
|
|||
|
|||
|
|||
|
|||
tuple |
|
||
list of tuple; (string, string) |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
None |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
list of tuples (string, string, list) |
|
||
dict |
|
||
dict |
|
|
|||
_RPC_CLIENT_HEADERS = ["Content-type: %s" % http.HTTP_APP_JSON
|
|||
_OFFLINE = object() Special value to describe an offline host |
|||
_ENCODERS = {rpc_defs.ED_OBJECT_DICT: _ObjectToDict, rpc_defs. Generic encoders |
Imports: logging, zlib, base64, pycurl, threading, copy, os, utils, objects, http, serializer, constants, errors, netutils, ssconf, runtime, compat, rpc_defs, pathutils, vcluster, _generated_rpc, ganeti
|
Initializes the module-global HTTP client manager. Must be called before using any RPC function and while exactly one thread is running. |
Stops the module-global HTTP client manager. Must be called before quitting the program and while exactly one thread is running. |
RPC-wrapper decorator. When applied to a function, it runs it with the RPC system initialized, and it shutsdown the system afterwards. This means the function must be called without RPC being initialized. |
Compresses a string for transport over RPC. Small amounts of data are not compressed.
|
Return addresses for given node names.
|
Checks if a node is online.
|
Calculate node addresses using configuration. Note that strings in node_uuids are treated as node names if the UUID is not found in the configuration. |
Converts an object to a dictionary. Note: See objects. |
Extracts the spindle information from the space info and adds it to the result dictionary.
|
Extracts the storage space information of the disk template from the space info and adds it to the result dictionary. See Also:
|
Formats the data returned by call_node_info. Converts the data into a single dictionary. This is fine for most use cases, but some require information from more than one volume group or hypervisor. |
Annotates the disk objects with the disk parameters.
|
Adds the exclusive storage flag to lvm units. This function creates a copy of the storage_units lists, with the es_flag being added to all lvm storage units.
|
Return the exclusive storage flag for all the given nodes.
|
Return the lvm storage unit for all the given nodes. Main purpose of this function is to map the exclusive storage flag, which can be different for each node, to the default LVM storage unit.
|
|
_RPC_CLIENT_HEADERS
|
_ENCODERSGeneric encoders
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Apr 4 13:43:46 2016 | http://epydoc.sourceforge.net |