cloudmesh_client.comet package

Submodules

cloudmesh_client.comet.authenticate module

exception cloudmesh_client.comet.authenticate.AuthenticationException[source]

Bases: exceptions.Exception

class cloudmesh_client.comet.authenticate.Authenticator(uri=None)[source]

Bases: object

HEADER = {'content-type': 'application/json'}
base_uri = None
classmethod logoff()[source]
classmethod logon(username, password)[source]
classmethod set_auth_base_uri(uri)[source]
classmethod status()[source]
token = None
verify = False
cloudmesh_client.comet.authenticate.hop_get(url, headers=None)[source]
cloudmesh_client.comet.authenticate.main()[source]
cloudmesh_client.comet.authenticate.test_get_cluster_list()[source]

cloudmesh_client.comet.cluster module

class cloudmesh_client.comet.cluster.Cluster[source]

Bases: object

ACTIVE_COMPUTESETS = ['running', 'submitted', 'created']
CLUSTER_HEADER = ['name', 'state', 'kind', 'type', 'mac', 'ip', 'cpus', 'cluster', 'RAM(M)', 'disk(G)', 'computeset', 'allocation', 'admin_state']
CLUSTER_HEADER_TABLE = ['name', 'state', 'computeset', 'allocation', 'admin_state', 'mac', 'ip', 'cluster', 'kind', 'type', 'cpus', 'RAM(M)', 'disk(G)']
CLUSTER_HEADER_TABLE_CONCISE = ['name', 'state', 'computeset', 'allocation', 'admin_state', 'mac', 'ip', 'cluster']
CLUSTER_HEADER_TABLE_STATE = ['name', 'state', 'computeset', 'allocation', 'admin_state']
CLUSTER_ORDER = ['name', 'state', 'kind', 'type', 'mac', 'ip', 'cpus', 'cluster', 'memory', 'disksize', 'active_computeset', 'allocation', 'admin_state']
CLUSTER_ORDER_TABLE = ['name', 'state', 'active_computeset', 'allocation', 'admin_state', 'mac', 'ip', 'cluster', 'kind', 'type', 'cpus', 'memory', 'disksize']
CLUSTER_ORDER_TABLE_CONCISE = ['name', 'state', 'active_computeset', 'allocation', 'admin_state', 'mac', 'ip', 'cluster']
CLUSTER_ORDER_TABLE_STATE = ['name', 'state', 'active_computeset', 'allocation', 'admin_state']
CLUSTER_SORT_KEY = ['name', 'state', 'kind', 'type', 'mac', 'ip', 'cpus', 'cluster', 'ram', 'disk', 'computeset', 'allocation', 'admin_state']
CLUSTER_TABLE_VIEW = {'STATE': {'header': ['name', 'state', 'computeset', 'allocation', 'admin_state'], 'order': ['name', 'state', 'active_computeset', 'allocation', 'admin_state']}, 'FULL': {'header': ['name', 'state', 'computeset', 'allocation', 'admin_state', 'mac', 'ip', 'cluster', 'kind', 'type', 'cpus', 'RAM(M)', 'disk(G)'], 'order': ['name', 'state', 'active_computeset', 'allocation', 'admin_state', 'mac', 'ip', 'cluster', 'kind', 'type', 'cpus', 'memory', 'disksize']}, 'CONCISE': {'header': ['name', 'state', 'computeset', 'allocation', 'admin_state', 'mac', 'ip', 'cluster'], 'order': ['name', 'state', 'active_computeset', 'allocation', 'admin_state', 'mac', 'ip', 'cluster']}}
FINISHED_COMPUTESETS = ['completed', 'failed']
MINS_PER_UNIT = {'h': 60, 'm': 1, 'd': 1440, 'w': 10080}
N_ALLOCATIONS_PER_LINE = 5
PENDING_COMPUTESETS = ['queued', 'submitted', 'created']
SECS_PER_DAY = 86400
STUCK_COMPUTESETS = ['submitted', 'ending']
WALLTIME_MINS = 2880
static add()[source]
static attach_iso(iso_id_name, clusterid, nodeids=None, action='Attaching')[source]
static check_nodes_computesets(clusterid, computenodeids)[source]
static computeset(id=None, cluster=None, state=None, allocation=None)[source]
static computeset_start(clusterid, computenodeids=None, numnodes=None, allocation=None, reservation=None, walltime=None)[source]
static computeset_terminate(computesetid)[source]
static convert_to_mins(s)[source]
static delete()[source]
static detach_iso(clusterid, nodeids=None, action='Detaching')[source]
static display_get_allocation(allocations)[source]
static format_ddd_hh_mm(time_duration_secs)[source]
static info()[source]
static list(id=None, format='table', sort=None, view='FULL')[source]
static node_info(clusterid, nodeid=None, format='table')[source]
static output_computeset(computesetdict, cluster=None, allocation=None)[source]
static power(clusterid, subject, param=None, action=None)[source]
static rename_node(clusterid, old_compute_name, new_compute_name)[source]
static simple_list(id=None, format='table')[source]
static start(id)[source]
static stop(id)[source]

cloudmesh_client.comet.comet module

class cloudmesh_client.comet.comet.Comet[source]

Bases: object

AUTH_HEADER = {'content-type': 'application/json'}
HEADER = {'content-type': 'application/json'}
api_auth = None
api_key = None
api_secret = None
api_version = ''
auth_provider = None
auth_uri = '/rest-auth'
base_uri = ''
static console(clusterid, nodeid=None, linkonly=False)[source]
static console_url(clusterid, nodeid=None)[source]
static docs()[source]
endpoint = ''
static find_tunnel()[source]
static get(url, headers=None, allow_redirects=True, data=None, authuser=None, authpass=None)[source]
static get_apikey(endpoint)[source]
static get_computeset(id=None, state=None)[source]
static get_nonce()[source]
static http(url, action='get', headers=None, data=None, authuser=None, authpass=None, files=None, md5=None, cacert=True, allow_redirects=True)[source]
static is_tunnel()[source]
static kill_tunnel()[source]
static list_iso()[source]
local_auth_uri = 'https://localhost:8443/nucleus/rest-auth'
local_base_uri = 'https://localhost:8443/nucleus'
classmethod logoff()[source]
classmethod logon(endpoint=None, username=None, password=None)[source]
static md5(fname)[source]
static post(url, headers=None, data=None, md5=None, files=None, cacert=True, allow_redirects=True)[source]
static put(url, headers=None, data=None, allow_redirects=True)[source]
static set_api_version(api_version)[source]
classmethod set_auth_provider(auth_provider=None)[source]
static set_base_uri(uri)[source]
static set_endpoint(endpoint)[source]
static state()[source]
classmethod status()[source]
token = None
static tunnel(start)[source]
tunnelled = False
static upload_iso(filename, filepath)[source]
static url(path)[source]
verify = False
cloudmesh_client.comet.comet.main()[source]
cloudmesh_client.comet.comet.test_get_cluster_list()[source]
cloudmesh_client.comet.comet.test_power_nodes(action='on')[source]

Module contents