MiCADO Master¶
Higher-level methods to manage the MiCADO master
-
class
micado.models.master.
MicadoMaster
(**kwargs)¶ Bases:
micado.models.base.Model
-
api
¶
-
attach
(master_id)¶ Configure the master object to handle the instance created by the def:create()
Parameters: master_id (string) – master ID returned by def:create()
-
create
(**kwargs)¶ Creates a new MiCADO master VM and deploy MiCADO service on it.
Parameters: - auth_url (string) – Authentication URL for the NOVA resource.
- image (string) – Name or ID of the image resource.
- flavor (string) – Name or ID of the flavor resource.
- network (string) – Name or ID of the network resource.
- keypair (string) – Name or ID of the keypair resource.
- security_group (string, optional) – name or ID of the security_group resource. Defaults to ‘all’.
- region (string, optional) – Name of the region resource. Defaults to None.
- user_domain_name (string, optional) – Define the user_domain_name. Defaults to ‘Default’
- project_id (string, optional) – ID of the project resource. Defaults to None.
- micado_user (string, optional) – MiCADO username. Defaults to admin.
- micado_password (string, optional) – MiCADO password. Defaults to admin.
Usage:
>>> client.master.create( ... auth_url='yourendpoint', ... project_id='project_id', ... image='image_name or image_id', ... flavor='flavor_name or flavor_id', ... network='network_name or network_id', ... keypair='keypair_name or keypair_id', ... security_group='security_group_name or security_group_id' ... )
Returns: ID of MiCADO master Return type: string
-
destroy
()¶ Destroy running applications and the existing MiCADO master VM.
Usage:
>>> client.master.destroy()
-
init_api
()¶ Configure Submitter API
Returns: return SubmitterClient Return type: SubmitterClient
-
launcher
¶
-
master_id
¶
-