Module Import alias ImportFrom alias ImportFrom alias identifier ImportFrom alias identifier ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore ListLoad FunctionDef arguments args NameParam defaults body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str ListLoad body Assign SubscriptStore SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Index Str ListLoad For NameStore Call NameLoad NameLoad body Assign NameStore TupleLoad NameLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore NameLoad If CompareNotIn SubscriptLoad NameLoad Index Str NameLoad body Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr Dict Str Str NameLoad Call AttributeLoad NameLoad attr Str Dict Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Str attr Expr Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad NameLoad ListLoad Expr Call AttributeLoad NameLoad attr TupleLoad SubscriptLoad NameLoad Index Str NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore ListLoad With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body For NameStore SubscriptLoad NameLoad Index Str body Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Index Str For NameStore NameLoad body For NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore SubscriptLoad NameLoad Index Str If CompareNotIn SubscriptLoad NameLoad Index Str NameLoad body Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr Dict Str Str NameLoad Call AttributeLoad NameLoad attr Str Dict Expr Call AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad Call AttributeLoad SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Str attr SubscriptLoad NameLoad Index Str NameLoad Index Num Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body For NameStore SubscriptLoad NameLoad Index Str body Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Index Str For NameStore SubscriptLoad NameLoad Slice body Assign NameStore TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore NameLoad Assign NameStore SubscriptLoad NameLoad Index Str If CompareNotIn SubscriptLoad NameLoad Index Str NameLoad body Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr Dict Str Str NameLoad Call AttributeLoad NameLoad attr Str Dict Expr Call AttributeLoad SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Str attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body For NameStore SubscriptLoad NameLoad Index Str body Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Index Str For NameStore NameLoad body For NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Slice body Assign NameStore TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore NameLoad Assign NameStore SubscriptLoad NameLoad Index Str If CompareNotIn SubscriptLoad NameLoad Index Str NameLoad body Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr Dict Str Str NameLoad Call AttributeLoad NameLoad attr Str Dict Expr Call AttributeLoad SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Str attr SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list decorator_list
N/A N/A tempfile rally.common broker rally.common utils rutils rally.plugins.openstack.scenarios.swift utils swift_utils SwiftObjectMixin N/A object N/A N/A Mix-in method for Swift Object Context. _create_containers N/A N/A self context containers_per_tenant threads N/A N/A N/A Create containers and store results in Rally context.

        :param context: dict, Rally context environment
        :param containers_per_tenant: int, number of containers to create
                                      per tenant
        :param threads: int, number of threads to use for broker pattern

        :returns: list of tuples containing (account, container)
         N/A containers N/A publish N/A N/A queue N/A N/A N/A N/A user tenant_id N/A N/A rutils iterate_per_tenants N/A N/A context get users N/A N/A N/A N/A N/A N/A context N/A tenants N/A tenant_id N/A containers N/A N/A i N/A range containers_per_tenant N/A N/A args N/A user N/A N/A N/A context N/A tenants N/A tenant_id N/A containers N/A N/A N/A queue append args N/A consume N/A N/A cache args N/A N/A N/A N/A user tenant_containers args N/A N/A N/A user N/A id cache N/A N/A N/A cache N/A N/A user N/A id N/A N/A swift_utils SwiftScenario N/A user task user N/A N/A context get task N/A N/A container_name N/A N/A N/A cache N/A N/A user N/A id _create_container N/A N/A N/A tenant_containers append N/A user container objects user container_name N/A N/A N/A N/A containers append N/A N/A user N/A tenant_id container_name N/A N/A N/A N/A broker run publish consume threads N/A containers N/A _create_objects N/A N/A self context objects_per_container object_size threads N/A N/A N/A Create objects and store results in Rally context.

        :param context: dict, Rally context environment
        :param objects_per_container: int, number of objects to create
                                      per container
        :param object_size: int, size of created swift objects in byte
        :param threads: int, number of threads to use for broker pattern

        :returns: list of tuples containing (account, container, object)
         N/A objects N/A N/A N/A N/A tempfile TemporaryFile dummy_file N/A N/A N/A N/A dummy_file truncate object_size publish N/A N/A queue N/A N/A N/A tenant_id N/A context N/A tenants N/A N/A containers N/A N/A N/A context N/A tenants N/A tenant_id N/A containers N/A container containers N/A N/A i N/A range objects_per_container N/A N/A N/A N/A queue append container N/A consume N/A N/A cache container N/A N/A N/A user N/A container N/A user N/A N/A N/A user N/A id cache N/A N/A N/A cache N/A N/A user N/A id N/A N/A swift_utils SwiftScenario N/A user task user N/A N/A context get task N/A N/A N/A N/A dummy_file seek 0 N/A object_name N/A N/A N/A N/A cache N/A N/A user N/A id _upload_object N/A container N/A container dummy_file N/A 1 N/A N/A N/A N/A container N/A objects append object_name N/A N/A N/A objects append N/A N/A user N/A tenant_id N/A container N/A container object_name N/A N/A N/A N/A broker run publish consume threads N/A objects N/A _delete_containers N/A N/A self context threads N/A N/A N/A Delete containers created by Swift context and update Rally context.

        :param context: dict, Rally context environment
        :param threads: int, number of threads to use for broker pattern
         publish N/A N/A queue N/A N/A N/A tenant_id N/A context N/A tenants N/A N/A containers N/A N/A N/A context N/A tenants N/A tenant_id N/A containers N/A container N/A containers N/A N/A N/A args N/A container containers N/A N/A N/A queue append args N/A consume N/A N/A cache args N/A N/A N/A N/A container tenant_containers args N/A user N/A container N/A user N/A N/A N/A user N/A id cache N/A N/A N/A cache N/A N/A user N/A id N/A N/A swift_utils SwiftScenario N/A user task user N/A N/A context get task N/A N/A N/A N/A N/A cache N/A N/A user N/A id _delete_container N/A container N/A container N/A N/A N/A tenant_containers remove container N/A N/A N/A N/A broker run publish consume threads N/A _delete_objects N/A N/A self context threads N/A N/A N/A Delete objects created by Swift context and update Rally context.

        :param context: dict, Rally context environment
        :param threads: int, number of threads to use for broker pattern
         publish N/A N/A queue N/A N/A N/A tenant_id N/A context N/A tenants N/A N/A containers N/A N/A N/A context N/A tenants N/A tenant_id N/A containers N/A container containers N/A N/A object_name N/A N/A container N/A objects N/A N/A N/A args N/A object_name container N/A N/A N/A queue append args N/A consume N/A N/A cache args N/A N/A N/A N/A object_name container args N/A user N/A container N/A user N/A N/A N/A user N/A id cache N/A N/A N/A cache N/A N/A user N/A id N/A N/A swift_utils SwiftScenario N/A user task user N/A N/A context get task N/A N/A N/A N/A N/A cache N/A N/A user N/A id _delete_object N/A container N/A container object_name N/A N/A N/A N/A container N/A objects remove object_name N/A N/A N/A N/A broker run publish consume threads N/A N/A