cloudmesh_client.cloud.iaas.provider.libcloud package

Submodules

cloudmesh_client.cloud.iaas.provider.libcloud.CloudProviderLibcloud module

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

Bases: cloudmesh_client.cloud.iaas.CloudProviderBase.CloudProviderBase

add_key_to_cloud(name, public_key)[source]

Method to add key to libcloud based clouds, typically a keypair for AWS EC2. :param name: Name of the keypair. :param public_key: public key string. :return:

attributes(kind)[source]
boot_vm(name, 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
  • nics – TODO: fixme
  • meta – A dict of arbitrary key/value metadata to store for this server
create_sec_group(cloud, secgroup_name='default')[source]
debug = True
delete_vm(name, group=None, force=None)[source]
Delete a VM instance whose instance name is given by name
Parameters:
  • name
  • group
  • force
Returns:

enable_ssh(cloud, secgroup_name='default')[source]
get_image_by_id(image_id)[source]
get_size_by_id(size_id)[source]
list_flavor(cloudname, **kwargs)[source]
list_image(cloudname, **kwargs)[source]
list_key(cloudname, **kwargs)[source]
list_size(cloudname, **kwargs)[source]
list_vm(cloudname, **kwargs)[source]

cloudmesh_client.cloud.iaas.provider.libcloud.CloudProviderLibcloudEC2 module

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

Bases: cloudmesh_client.cloud.iaas.provider.libcloud.CloudProviderLibcloud.CloudProviderLibcloud

create_node(**kwargs)[source]

Create a VM instance.

Reference: https://libcloud.readthedocs.io/en/latest/_modules/libcloud/compute/drivers/ec2.html#BaseEC2NodeDriver.create_node

Parameters:
  • name (str) – the name of VM
  • image – the name of vm image
  • size (NodeSize) – the size of vm instance
  • ex_keyname – the keyname
get_ips(name)[source]
initialize(cloudname, user=None)[source]

cloudmesh_client.cloud.iaas.provider.libcloud.CloudProviderLibcloudOpenStack module

Module contents