| Trees | Indices | Help |
|
|---|
|
|
Ganeti RAPI client.
|
|||
|
Error Base error class for this module. |
|||
|
CertificateError Raised when a problem is found with the SSL certificate. |
|||
|
GanetiApiError Generic error raised from Ganeti API. |
|||
|
CertAuthorityVerify Certificate verificator for SSL context. |
|||
|
_HTTPSConnectionOpenSSL HTTPS Connection handler that verifies the SSL certificate. |
|||
| _SslSocketWrapper | |||
| _HTTPSHandler | |||
| _RapiRequest | |||
|
GanetiRapiClient Ganeti RAPI client. |
|||
|
|||
|
|||
|
|||
GANETI_RAPI_PORT = 5080
|
|||
GANETI_RAPI_VERSION = 2
|
|||
HTTP_DELETE = "DELETE"
|
|||
HTTP_GET = "GET"
|
|||
HTTP_PUT = "PUT"
|
|||
HTTP_POST = "POST"
|
|||
HTTP_OK = 200
|
|||
HTTP_NOT_FOUND = 404
|
|||
HTTP_APP_JSON = "application/json"
|
|||
REPLACE_DISK_PRI = "replace_on_primary"
|
|||
REPLACE_DISK_SECONDARY = "replace_on_secondary"
|
|||
REPLACE_DISK_CHG = "replace_new_secondary"
|
|||
REPLACE_DISK_AUTO = "replace_auto"
|
|||
NODE_ROLE_DRAINED = "drained"
|
|||
NODE_ROLE_MASTER_CANDIATE = "master-candidate"
|
|||
NODE_ROLE_MASTER = "master"
|
|||
NODE_ROLE_OFFLINE = "offline"
|
|||
NODE_ROLE_REGULAR = "regular"
|
|||
_REQ_DATA_VERSION_FIELD = "__version__"
|
|||
_INST_CREATE_REQV1 = "instance-create-reqv1"
|
|||
_INST_NIC_PARAMS = frozenset(["mac", "ip", "mode", "link", "br
|
|||
_INST_CREATE_V0_DISK_PARAMS = frozenset(["size"])
|
|||
_INST_CREATE_V0_PARAMS = frozenset(["os", "pnode", "snode", "i
|
|||
_INST_CREATE_V0_DPARAMS = frozenset(["beparams", "hvparams"])
|
|||
Imports: sys, httplib, urllib2, logging, simplejson, socket, urllib, OpenSSL, distutils
|
|||
Formats an X509 name.
|
|
|||
_INST_NIC_PARAMS
|
_INST_CREATE_V0_PARAMS
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Thu Dec 9 16:11:42 2010 | http://epydoc.sourceforge.net |