cloudmesh_client package¶
Subpackages¶
- cloudmesh_client.api package
- cloudmesh_client.cloud package
- Subpackages
- cloudmesh_client.cloud.hpc package
- cloudmesh_client.cloud.iaas package
- Subpackages
- cloudmesh_client.cloud.iaas.provider package
- Submodules
- cloudmesh_client.cloud.iaas.CloudProvider module
- cloudmesh_client.cloud.iaas.CloudProviderBase module
- Module contents
- Subpackages
- Submodules
- cloudmesh_client.cloud.ListResource module
- cloudmesh_client.cloud.attributes module
- cloudmesh_client.cloud.counter module
- cloudmesh_client.cloud.experiment module
- cloudmesh_client.cloud.flavor module
- cloudmesh_client.cloud.group module
- cloudmesh_client.cloud.hpc module
- cloudmesh_client.cloud.image module
- cloudmesh_client.cloud.inventory module
- cloudmesh_client.cloud.ip module
- cloudmesh_client.cloud.key module
- cloudmesh_client.cloud.launcher module
- cloudmesh_client.cloud.limits module
- cloudmesh_client.cloud.list module
- cloudmesh_client.cloud.network module
- cloudmesh_client.cloud.nova module
- cloudmesh_client.cloud.quota module
- cloudmesh_client.cloud.register module
- cloudmesh_client.cloud.reservation module
- cloudmesh_client.cloud.secgroup module
- cloudmesh_client.cloud.stack module
- cloudmesh_client.cloud.sync module
- cloudmesh_client.cloud.usage module
- cloudmesh_client.cloud.vc module
- cloudmesh_client.cloud.vm module
- cloudmesh_client.cloud.workflow module
- Module contents
- Subpackages
- cloudmesh_client.comet package
- cloudmesh_client.common package
- Subpackages
- Submodules
- cloudmesh_client.common.BaseConfigDict module
- cloudmesh_client.common.ConfigDict module
- cloudmesh_client.common.DictDB module
- cloudmesh_client.common.DynamicClass module
- cloudmesh_client.common.Error module
- cloudmesh_client.common.FlatDict module
- cloudmesh_client.common.FlatDict2 module
- cloudmesh_client.common.GitInfo module
- cloudmesh_client.common.LibcloudDict module
- cloudmesh_client.common.LogUtil module
- cloudmesh_client.common.Printer module
- cloudmesh_client.common.SSHkey module
- cloudmesh_client.common.Shell module
- cloudmesh_client.common.StopWatch module
- cloudmesh_client.common.TableParser module
- cloudmesh_client.common.borg module
- cloudmesh_client.common.dotdict module
- cloudmesh_client.common.hostlist module
- cloudmesh_client.common.menu module
- cloudmesh_client.common.ssh_config module
- cloudmesh_client.common.todo module
- cloudmesh_client.common.type module
- cloudmesh_client.common.util module
- cloudmesh_client.common.vmname module
- Module contents
- cloudmesh_client.db package
- cloudmesh_client.deployer package
- cloudmesh_client.etc package
- cloudmesh_client.extend package
- cloudmesh_client.platform package
- cloudmesh_client.provider package
- cloudmesh_client.shell package
- Subpackages
- cloudmesh_client.shell.plugins package
- Submodules
- cloudmesh_client.shell.plugins.AkeyCommand module
- cloudmesh_client.shell.plugins.Bar module
- cloudmesh_client.shell.plugins.CheckCommand module
- cloudmesh_client.shell.plugins.CloudCommand module
- cloudmesh_client.shell.plugins.ClusterCommand module
- cloudmesh_client.shell.plugins.ClusterCommand2 module
- cloudmesh_client.shell.plugins.ColorCommand module
- cloudmesh_client.shell.plugins.CometCommand module
- cloudmesh_client.shell.plugins.DebugCommand module
- cloudmesh_client.shell.plugins.DefaultCommand module
- cloudmesh_client.shell.plugins.DeployCommand module
- cloudmesh_client.shell.plugins.FlavorCommand module
- cloudmesh_client.shell.plugins.GroupCommand module
- cloudmesh_client.shell.plugins.HadoopCommand module
- cloudmesh_client.shell.plugins.HpcCommand module
- cloudmesh_client.shell.plugins.ImageCommand module
- cloudmesh_client.shell.plugins.InfoCommand module
- cloudmesh_client.shell.plugins.InventoryCommand module
- cloudmesh_client.shell.plugins.KeyCommand module
- cloudmesh_client.shell.plugins.LauncherCommand module
- cloudmesh_client.shell.plugins.LimitsCommand module
- cloudmesh_client.shell.plugins.ListCommand module
- cloudmesh_client.shell.plugins.LoadCommand module
- cloudmesh_client.shell.plugins.LogLevelCommand module
- cloudmesh_client.shell.plugins.ManCommand module
- cloudmesh_client.shell.plugins.NetworkCommand module
- cloudmesh_client.shell.plugins.NistCommand module
- cloudmesh_client.shell.plugins.NovaCommand module
- cloudmesh_client.shell.plugins.OpenCommand module
- cloudmesh_client.shell.plugins.PortalCommand module
- cloudmesh_client.shell.plugins.PyCommand module
- cloudmesh_client.shell.plugins.QuotaCommand module
- cloudmesh_client.shell.plugins.RefreshCommand module
- cloudmesh_client.shell.plugins.RegisterCommand module
- cloudmesh_client.shell.plugins.ReservationCommand module
- cloudmesh_client.shell.plugins.ResetCommand module
- cloudmesh_client.shell.plugins.SecgroupCommand module
- cloudmesh_client.shell.plugins.SecureShellCommand module
- cloudmesh_client.shell.plugins.SelectCommand module
- cloudmesh_client.shell.plugins.ServerCommand module
- cloudmesh_client.shell.plugins.SetupCommand module
- cloudmesh_client.shell.plugins.StackCommand module
- cloudmesh_client.shell.plugins.SubmitCommands module
- cloudmesh_client.shell.plugins.SyncCommand module
- cloudmesh_client.shell.plugins.TerminalCommands module
- cloudmesh_client.shell.plugins.TestCommand module
- cloudmesh_client.shell.plugins.TimerCommand module
- cloudmesh_client.shell.plugins.UsageCommand module
- cloudmesh_client.shell.plugins.VcCommand module
- cloudmesh_client.shell.plugins.VmCommand module
- cloudmesh_client.shell.plugins.WhoCommand module
- cloudmesh_client.shell.plugins.WorkflowCommand module
- Module contents
- cloudmesh_client.shell.plugins package
- Submodules
- cloudmesh_client.shell.cm module
- cloudmesh_client.shell.cm_shell_status module
- cloudmesh_client.shell.command module
- cloudmesh_client.shell.console module
- Module contents
- Subpackages
- cloudmesh_client.system package
Submodules¶
cloudmesh_client.default module¶
-
class
cloudmesh_client.default.
Default
[source]¶ Bases:
object
Cloudmesh contains the concept of defaults. Defaults can have categories (we will rename cloud to categories). A category can be a cloud name or the name ‘general’. The category general is a ‘global’ name space and contains defaults of global value (in future we will rename the value to global).
-
active_cluster
¶
-
active_specification
= None¶
-
active_stack
= None¶
-
cloud
= u'kilo'¶
-
cluster
= None¶
-
cluster_counter
= None¶
-
cm
= <cloudmesh_client.db.CloudmeshDatabase.CloudmeshDatabase object>¶
-
debug
= True¶
-
flavor
= u'm1.small'¶
-
classmethod
generate_name
(counter_name, display_name=None, prefix=None, fill=3)[source]¶ Generate a name based on a counter
Parameters: - counter_name (str) – name of the counter in the database
- display_name (str) – pretty name to show user (defaults to
counter_name
) - prefix (str) – prefix the generated name with this
- fill (int) – number of zeros to fill with
Returns: a generated name
Return type: str
-
classmethod
get_counter
(name='index')[source]¶ Function that returns the prefix username and count for vm naming. If it is not present in db, it creates a new entry. :return:
-
classmethod
get_flavor
(category=None)[source]¶ gets ths flavor default for a category :param category: the category :return:
-
classmethod
get_image
(category=None)[source]¶ returns the image for a particular category :param category: the category :return:
-
group
= u'default'¶
-
image
= u'Ubuntu-16.04-64'¶
-
index
= None¶
-
interactive
= None¶
-
key
= None¶
-
classmethod
list
(category=None, order=None, header=None, output=None)[source]¶ lists the default values in the specified format. TODO: This method has a bug as it uses format and output, only one should be used.
Parameters: - category – the category of the default value. If general is used it is a special category that is used for global values.
- format – json, table, yaml, dict, csv
- order – The order in which the attributes are returned
- output – The output format.
Returns:
-
loglevel
= None¶
-
output
= None¶
-
purge
= None¶
-
refresh
= None¶
-
secgroup
= u'default'¶
-
classmethod
set
(key, value, category='general', user=None, type='str')[source]¶ sets the default value for a given category :param key: the dictionary key of the value to store it at. :param value: the value :param user: the username to store this default value at. :return:
-
classmethod
set_cloud
(value)[source]¶ sets the cloud in the category general :param value: the cloud as defined in cloudmesh.yaml :return:
-
classmethod
set_cluster_counter
(value)[source]¶ sets the default cluster :param value: the cluster name as defined in the cloudmesh yaml file. :return:
-
classmethod
set_counter
(name, value)[source]¶ Special function to update vm prefix count.
Parameters: - name –
- value –
- user –
Returns:
-
classmethod
set_flavor
(value, category)[source]¶ sets the default flavor for a particular category :param value: the flavor name or uuid :param category: the category :return:
-
classmethod
set_image
(value, category)[source]¶ sets the default image for a specific category. :param value: the image uuid or name :param category: the category :return:
-
classmethod
set_interactive
(value)[source]¶ sets the default for all clouds to refresh :param value: :return:
-
classmethod
set_purge
(value)[source]¶ sets the default for all clouds to refresh :param value: :return:
-
classmethod
set_refresh
(value)[source]¶ sets the default for all clouds to refresh :param value: :return:
-
classmethod
set_secgroup
(value)[source]¶ sets the default group :param value: the group name :return:
-
classmethod
set_specification
(value)[source]¶ Sets the default specification
Parameters: - cls –
- value –
Returns: Return type:
-
classmethod
set_timer
(value)[source]¶ sets the default for all clouds to timer :param value: :return:
-
classmethod
set_user
(value)[source]¶ sets the cloud in the category general :param value: the cloud as defined in cloudmesh.yaml :return:
-
classmethod
set_vm
(value)[source]¶ sets the cloud in the category general :param value: the cloud as defined in cloudmesh.yaml :return:
-
timer
= None¶
-
user
= u'fuwang'¶
-
vm
= u'fuwang-001'¶
-
cloudmesh_client.exc module¶
This module contains the exceptions
-
exception
cloudmesh_client.exc.
ClusterNameClashException
(tablename, name)[source]¶ Bases:
exceptions.Exception
Occurs when a cluster is created with a preexisting name
cloudmesh_client.locations module¶
-
cloudmesh_client.locations.
config_file
(filename)[source]¶ The location of the config file: ~/.cloudmesh/filename. ~ will be expanded :param filename: the filename
cloudmesh_client.logger module¶
-
cloudmesh_client.logger.
LOGGER
(filename)[source]¶ creates a logger with the given name.
You can use it as follows:
log = cloudmesh.util.LOGGER(__file__) log.error("this is an error") log.info("this is an info") log.warning("this is a warning")
cloudmesh_client.main module¶
cloudmesh_client.setup module¶
cloudmesh_client.shell_commad module¶
cloudmesh_client.var module¶
-
class
cloudmesh_client.var.
Var
[source]¶ Bases:
object
Cloudmesh contains the concept of defaults. Defaults can have categories (we will rename cloud to categories). A category can be a cloud name or the name ‘general’. The category general is a ‘global’ name space and contains defaults of global value (in future we will rename the value to global).
-
cm
= <cloudmesh_client.db.CloudmeshDatabase.CloudmeshDatabase object>¶ cm is a static variable so that db is used uniformly.
-
classmethod
get
(name=None, output='dict', scope='first')[source]¶ returns the value of the first objects matching the key with the given category.
Parameters: - key – The dictionary key
- category – The category
Returns:
-
classmethod
list
(order=None, header=None, output='table')[source]¶ lists the default values in the specified format. TODO: This method has a bug as it uses format and output, only one should be used.
Parameters: - category – the category of the default value. If general is used it is a special category that is used for global values.
- format – json, table, yaml, dict, csv
- order – The order in which the attributes are returned
- output – The output format.
Returns:
-