cloudmesh_client.cloud.iaas.provider.comet package

Submodules

cloudmesh_client.cloud.iaas.provider.comet.CloudProviderCometAPI module

class cloudmesh_client.cloud.iaas.provider.comet.CloudProviderCometAPI.CloudProviderCometAPI(cloud_name, cloud_details, user=None, flat=True)[source]

Bases: cloudmesh_client.cloud.iaas.CloudProviderBase.CloudProviderBase

add_key(name, public_key)[source]
attributes(kind)[source]
boot_vm(name, group=None, image=None, flavor=None, cloud=None, key=None, secgroup=None, meta=None, nics=None, **kwargs)[source]

Spawns a VM instance on the cloud. If image and flavor passed as none, it would consider the defaults specified in cloudmesh.yaml.

Parameters:
  • name – Name of the instance to be started
  • image – Image id to be used for the instance
  • flavor – Flavor to be used for the instance
  • cloud – Cloud on which to spawn the machine. Defaults to ‘India’.
  • key – Key to be used for the instance
  • secgroup – Security group for the instance
  • meta – A dict of arbitrary key/value metadata to store for this server
cloud_type = 'openstack'
delete_key(name)[source]
delete_vm(name, group=None, force=None)[source]

Deletes a machine on the target cloud indicated by the id or name :param name: Name or ID of the instance to be deleted :param group: Security group of the instance to be deleted :param force: Force delete option :return:

get_flavor(**kwargs)[source]
get_image(**kwargs)[source]
get_ip(**kwargs)[source]
get_ips(name, group=None, force=None)[source]

Returns the ip of the instance indicated by name :param name: :param group: :param force: :return: IP address of the instance

get_vm(**kwargs)[source]
initialize(cloudname, user=None)[source]
list_console(name, length=None)[source]
list_flavor(cloudname, **kwargs)[source]
list_image(cloudname, **kwargs)[source]
list_ips(**kwargs)[source]
list_vm(cloudname, **kwargs)[source]
rename_vm(current_name, new_name)[source]
start_vm(name, group=None, force=None)[source]

Starts a suspended machine on the target cloud indicated by the id or name :param name: Name or ID of the instance to be deleted :param group: Security group of the instance to be deleted :param force: Force delete option :return:

stop_vm(name, group=None, force=None)[source]

Stops a machine on the target cloud indicated by the id or name :param name: Name or ID of the instance to be deleted :param group: Security group of the instance to be deleted :param force: Force delete option :return:

Module contents