Module Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam defaults Str body Return Call AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body If Call NameLoad NameLoad Str body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If CompareIn Str AttributeLoad NameLoad attr body Return Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Call NameLoad Str Dict Str Str SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Raise Call AttributeLoad NameLoad attr keyword Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Str FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If CompareIsNot NameLoad NameLoad body Assign NameStore NameLoad If UnaryOpNot Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore TupleLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Str Dict Str SubscriptLoad AttributeLoad NameLoad attr Index Str keyword NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str If CompareIn NameLoad TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr orelse If CompareEq NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr orelse If CompareEq NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Str
N/A N/A abc N/A jsonschema N/A six rally.common.i18n _ rally.common logging rally.common.plugin plugin rally consts rally.deployment.serverprovider provider rally exceptions N/A LOG N/A N/A logging getLogger __name__ configure N/A N/A name namespace N/A default N/A N/A N/A N/A plugin configure name namespace namespace N/A Engine N/A N/A plugin Plugin N/A N/A Base class of all deployment engines.

    It's a base class with self-discovery of subclasses. Each subclass
    has to implement deploy() and cleanup() methods. By default, each engine
    located as a submodule of the package rally.deployment.engines is
    auto-discovered.

    Example of usage with a simple engine:

    # Add new engine with __name__ == "A"
    class A(Engine):
        def __init__(self, deployment):
            # do something

        def deploy(self):
            # Make a deployment and return OpenStack credentials.
            # The credentials may have either admin or ordinary users
            # permissions (depending on how the deploy engine has been
            # initialized).
            return [credential_1, credential_2, ...]

        def cleanup(self):
            # Destroy OpenStack deployment and free resource

    An instance of this class used as a context manager on any unsafe
    operations to a deployment. Any unhandled exceptions bring a status
    of the deployment to the inconsistent state.

    with Engine.get_engine("A", deployment) as deploy:
        # deploy is an instance of the A engine
        # perform all usage operations on your cloud
     __init__ N/A N/A self deployment N/A N/A N/A N/A self deployment deployment N/A N/A self config N/A deployment N/A config N/A validate N/A N/A self N/A N/A N/A N/A hasattr self CONFIG_SCHEMA N/A N/A N/A N/A jsonschema validate N/A self config N/A self CONFIG_SCHEMA N/A get_provider N/A N/A self N/A N/A N/A N/A provider N/A self config N/A N/A N/A N/A N/A provider ProviderFactory get_provider N/A N/A self config N/A provider N/A self deployment N/A get_engine N/A N/A name deployment N/A N/A N/A Returns instance of a deploy engine with corresponding name. N/A N/A N/A engine_cls N/A N/A Engine get name N/A N/A engine_cls deployment N/A N/A N/A N/A exceptions PluginNotFound N/A e N/A N/A N/A N/A LOG error N/A N/A _ Deployment %(uuid)s: Deploy engine for %(name)s does not exist. N/A uuid name N/A deployment N/A uuid name N/A N/A N/A deployment update_status N/A N/A consts DeployStatus DEPLOY_FAILED N/A N/A N/A exceptions PluginNotFound namespace N/A N/A N/A e kwargs get namespace name name N/A staticmethod deploy N/A N/A self N/A N/A N/A Deploy OpenStack cloud and return credentials. N/A N/A abc abstractmethod cleanup N/A N/A self N/A N/A N/A Cleanup OpenStack deployment. N/A N/A abc abstractmethod make_deploy N/A N/A self N/A N/A N/A N/A N/A N/A self deployment set_started N/A credentials N/A N/A self deploy N/A N/A N/A N/A self deployment set_completed N/A credentials N/A N/A N/A logging log_deploy_wrapper N/A LOG info N/A _ OpenStack cloud deployment. make_cleanup N/A N/A self N/A N/A N/A N/A N/A N/A self deployment update_status N/A N/A consts DeployStatus CLEANUP_STARTED N/A N/A N/A self cleanup N/A provider N/A N/A self get_provider N/A provider N/A N/A N/A N/A provider destroy_servers N/A N/A N/A N/A self deployment update_status N/A N/A consts DeployStatus CLEANUP_FINISHED N/A N/A N/A logging log_deploy_wrapper N/A LOG info N/A _ Destroy cloud and free allocated resources. __enter__ N/A N/A self N/A N/A N/A self N/A __exit__ N/A N/A self exc_type exc_value exc_traceback N/A N/A N/A N/A exc_type None N/A N/A exc_info None N/A N/A N/A issubclass exc_type N/A exceptions InvalidArgumentsException N/A N/A exc_info N/A exc_type exc_value exc_traceback N/A N/A N/A LOG error N/A _ Deployment %(uuid)s: Error has occurred into context of the deployment N/A uuid N/A N/A self deployment N/A uuid exc_info exc_info N/A status N/A N/A self deployment N/A status N/A N/A status N/A N/A N/A consts DeployStatus DEPLOY_INIT N/A N/A consts DeployStatus DEPLOY_STARTED N/A N/A N/A N/A N/A self deployment update_status N/A N/A consts DeployStatus DEPLOY_FAILED N/A N/A N/A status N/A N/A consts DeployStatus DEPLOY_FINISHED N/A N/A N/A N/A N/A self deployment update_status N/A N/A consts DeployStatus DEPLOY_INCONSISTENT N/A N/A N/A status N/A N/A consts DeployStatus CLEANUP_STARTED N/A N/A N/A N/A N/A self deployment update_status N/A N/A consts DeployStatus CLEANUP_FAILED N/A N/A N/A N/A six add_metaclass N/A abc ABCMeta N/A configure base_engine