Module Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias identifier Assign NameStore ListLoad Call AttributeLoad NameLoad attr Str keyword Num keyword Str Call AttributeLoad NameLoad attr Str keyword Num keyword Str Call AttributeLoad NameLoad attr Str keyword Num keyword Str Call AttributeLoad NameLoad attr Str keyword Num keyword Str Call AttributeLoad NameLoad attr Str keyword Num keyword Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Return Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr Str attr attr NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Return Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr Str attr attr NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num Num body Expr Str Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad With Call AttributeLoad NameLoad attr NameLoad NameLoad body Assign NameStore ListLoad For NameStore Call NameLoad NameLoad body Assign NameStore Dict For NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr Str attr attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Num Num body Expr Str If CompareLt Call NameLoad NameLoad BinOpMult NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr BinOpMod Str Dict Str Str Call NameLoad NameLoad BinOpMult NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad With Call AttributeLoad NameLoad attr NameLoad NameLoad body For NameStore Call NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Slice BinOpMult NameLoad NameLoad BinOpMult BinOpAdd NameLoad Num NameLoad Expr Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr Str attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword ListLoad Str keyword Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad keyword ListLoad Str keyword NameLoad keyword Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword ListLoad Str keyword Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad Str Str body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword ListLoad Str keyword Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr Str attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword ListLoad Str keyword Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad kwarg body Expr Str Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword ListLoad Str keyword Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad keyword ListLoad Str keyword NameLoad keyword Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Assign NameStore Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr Str attr attr NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad keyword ListLoad Str keyword Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad keyword ListLoad Str keyword NameLoad keyword Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr Str attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr Str attr attr AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad keyword ListLoad Str keyword Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Return Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr Str attr attr NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Return Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr Str attr attr NameLoad decorator_list decorator_list
N/A N/A random N/A time oslo_config cfg rally exceptions rally.plugins.openstack scenario rally.plugins.openstack.wrappers cinder cinder_wrapper rally.task atomic rally.task utils bench_utils N/A CINDER_BENCHMARK_OPTS N/A N/A N/A cfg FloatOpt cinder_volume_create_prepoll_delay default 2.0 help Time to sleep after creating a resource before polling for it status N/A N/A cfg FloatOpt cinder_volume_create_timeout default 600.0 help Time to wait for cinder volume to be created. N/A N/A cfg FloatOpt cinder_volume_create_poll_interval default 2.0 help Interval between checks when waiting for volume creation. N/A N/A cfg FloatOpt cinder_volume_delete_timeout default 600.0 help Time to wait for cinder volume to be deleted. N/A N/A cfg FloatOpt cinder_volume_delete_poll_interval default 2.0 help Interval between checks when waiting for volume deletion. N/A CONF N/A cfg CONF N/A benchmark_group N/A N/A cfg OptGroup name benchmark title benchmark options N/A N/A N/A CONF register_opts CINDER_BENCHMARK_OPTS group benchmark_group CinderScenario N/A N/A scenario OpenStackScenario N/A N/A Base class for Cinder scenarios with basic atomic actions. _list_volumes N/A N/A self detailed N/A True N/A N/A Returns user volumes list. N/A N/A N/A N/A N/A N/A self clients cinder volumes list detailed N/A N/A N/A atomic action_timer cinder.list_volumes _list_snapshots N/A N/A self detailed N/A True N/A N/A Returns user snapshots list. N/A N/A N/A N/A N/A N/A self clients cinder volume_snapshots list detailed N/A N/A N/A atomic action_timer cinder.list_snapshots _set_metadata N/A N/A self volume sets set_size N/A 10 3 N/A N/A Set volume metadata.

        :param volume: The volume to set metadata on
        :param sets: how many operations to perform
        :param set_size: number of metadata keys to set in each operation
        :returns: A list of keys that were set
         N/A key N/A cinder.set_%s_metadatas_%s_times N/A set_size sets N/A N/A N/A atomic ActionTimer self key N/A N/A keys N/A N/A i N/A range sets N/A N/A metadata N/A N/A j N/A range set_size N/A N/A key N/A N/A self generate_random_name N/A N/A N/A keys append key N/A N/A metadata N/A key N/A N/A self generate_random_name N/A N/A N/A N/A N/A N/A self clients cinder volumes set_metadata volume metadata N/A keys N/A _delete_metadata N/A N/A self volume keys deletes delete_size N/A 10 3 N/A N/A Delete volume metadata keys.

        Note that ``len(keys)`` must be greater than or equal to
        ``deletes * delete_size``.

        :param volume: The volume to delete metadata from
        :param deletes: how many operations to perform
        :param delete_size: number of metadata keys to delete in each operation
        :param keys: a list of keys to choose deletion candidates from
         N/A N/A N/A len keys N/A deletes delete_size N/A N/A N/A N/A exceptions InvalidArgumentsException N/A Not enough metadata keys to delete: %(num_keys)s keys, but asked to delete %(num_deletes)s N/A num_keys num_deletes N/A len keys N/A deletes delete_size N/A keys N/A list keys N/A N/A N/A random shuffle keys N/A action_name N/A cinder.delete_%s_metadatas_%s_times N/A delete_size deletes N/A N/A N/A atomic ActionTimer self action_name N/A N/A i N/A range deletes N/A N/A to_del N/A keys N/A N/A i delete_size N/A N/A i 1 delete_size N/A N/A N/A N/A N/A N/A self clients cinder volumes delete_metadata volume to_del N/A _create_volume N/A N/A self size N/A kwargs N/A N/A Create one volume.

        Returns when the volume is actually created and is in the "Available"
        state.

        :param size: int be size of volume in GB, or
                     dictionary, must contain two values:
                         min - minimum size volumes will be created as;
                         max - maximum size volumes will be created as.
        :param kwargs: Other optional parameters to initialize the volume
        :returns: Created volume object
         N/A N/A isinstance size dict N/A N/A size N/A N/A random randint N/A size N/A min N/A size N/A max N/A client N/A N/A cinder_wrapper wrap N/A N/A self _clients cinder self N/A volume N/A N/A client create_volume size kwargs N/A N/A N/A time sleep N/A N/A CONF benchmark cinder_volume_create_prepoll_delay N/A volume N/A N/A bench_utils wait_for volume ready_statuses N/A available update_resource N/A N/A bench_utils get_from_manager timeout N/A N/A CONF benchmark cinder_volume_create_timeout check_interval N/A N/A CONF benchmark cinder_volume_create_poll_interval N/A volume N/A N/A N/A atomic action_timer cinder.create_volume _update_volume N/A N/A self volume N/A update_volume_args N/A N/A Update name and description for this volume

        This atomic function updates volume information. The volume
        display name is always changed, and additional update
        arguments may also be specified.

        :param volume: volume object
        :param update_volume_args: dict, contains values to be updated.
         N/A client N/A N/A cinder_wrapper wrap N/A N/A self _clients cinder self N/A N/A N/A client update_volume volume update_volume_args N/A N/A N/A atomic action_timer cinder.update_volume _delete_volume N/A N/A self volume N/A N/A N/A Delete the given volume.

        Returns when the volume is actually deleted.

        :param volume: volume object
         N/A N/A N/A volume delete N/A N/A N/A bench_utils wait_for_status volume ready_statuses N/A deleted check_deletion True update_resource N/A N/A bench_utils get_from_manager timeout N/A N/A CONF benchmark cinder_volume_delete_timeout check_interval N/A N/A CONF benchmark cinder_volume_delete_poll_interval N/A N/A N/A atomic action_timer cinder.delete_volume _extend_volume N/A N/A self volume new_size N/A N/A N/A Extend the given volume.

        Returns when the volume is actually extended.

        :param volume: volume object
        :param new_size: new volume size in GB, or
                         dictionary, must contain two values:
                             min - minimum size volumes will be created as;
                             max - maximum size volumes will be created as.
                        Notice: should be bigger volume size
         N/A N/A isinstance new_size dict N/A N/A new_size N/A N/A random randint N/A new_size N/A min N/A new_size N/A max N/A N/A N/A volume extend volume new_size N/A volume N/A N/A bench_utils wait_for volume ready_statuses N/A available update_resource N/A N/A bench_utils get_from_manager timeout N/A N/A CONF benchmark cinder_volume_create_timeout check_interval N/A N/A CONF benchmark cinder_volume_create_poll_interval N/A N/A N/A atomic action_timer cinder.extend_volume _upload_volume_to_image N/A N/A self volume force container_format disk_format N/A False bare raw N/A N/A Upload the given volume to image.

        Returns created image.

        :param volume: volume object
        :param force: flag to indicate whether to snapshot a volume even if
                      it's attached to an instance
        :param container_format: container format of image. Acceptable
                                 formats: ami, ari, aki, bare, and ovf
        :param disk_format: disk format of image. Acceptable formats:
                            ami, ari, aki, vhd, vmdk, raw, qcow2, vdi and iso
        :returns: Returns created image object
         N/A N/A resp img N/A N/A volume upload_to_image force N/A N/A self generate_random_name container_format disk_format N/A volume N/A N/A bench_utils wait_for volume ready_statuses N/A available update_resource N/A N/A bench_utils get_from_manager timeout N/A N/A CONF benchmark cinder_volume_create_timeout check_interval N/A N/A CONF benchmark cinder_volume_create_poll_interval N/A image_id N/A N/A img N/A os-volume_upload_image N/A image_id N/A image N/A N/A N/A N/A N/A self clients glance images get image_id N/A image N/A N/A bench_utils wait_for image ready_statuses N/A active update_resource N/A N/A bench_utils get_from_manager timeout N/A N/A CONF benchmark glance_image_create_timeout check_interval N/A N/A CONF benchmark glance_image_create_poll_interval N/A image N/A N/A N/A atomic action_timer cinder.upload_volume_to_image _create_snapshot N/A N/A self volume_id force N/A False kwargs N/A N/A Create one snapshot.

        Returns when the snapshot is actually created and is in the "Available"
        state.

        :param volume_id: volume uuid for creating snapshot
        :param force: flag to indicate whether to snapshot a volume even if
                      it's attached to an instance
        :param kwargs: Other optional parameters to initialize the volume
        :returns: Created snapshot object
         N/A N/A kwargs N/A force force N/A client N/A N/A cinder_wrapper wrap N/A N/A self _clients cinder self N/A snapshot N/A N/A client create_snapshot volume_id kwargs N/A N/A N/A time sleep N/A N/A CONF benchmark cinder_volume_create_prepoll_delay N/A snapshot N/A N/A bench_utils wait_for snapshot ready_statuses N/A available update_resource N/A N/A bench_utils get_from_manager timeout N/A N/A CONF benchmark cinder_volume_create_timeout check_interval N/A N/A CONF benchmark cinder_volume_create_poll_interval N/A snapshot N/A N/A N/A atomic action_timer cinder.create_snapshot _delete_snapshot N/A N/A self snapshot N/A N/A N/A Delete the given snapshot.

        Returns when the snapshot is actually deleted.

        :param snapshot: snapshot object
         N/A N/A N/A snapshot delete N/A N/A N/A bench_utils wait_for_status snapshot ready_statuses N/A deleted check_deletion True update_resource N/A N/A bench_utils get_from_manager timeout N/A N/A CONF benchmark cinder_volume_delete_timeout check_interval N/A N/A CONF benchmark cinder_volume_delete_poll_interval N/A N/A N/A atomic action_timer cinder.delete_snapshot _create_backup N/A N/A self volume_id N/A kwargs N/A N/A Create a volume backup of the given volume.

        :param volume_id: The ID of the volume to backup.
        :param kwargs: Other optional parameters
         N/A backup N/A N/A N/A N/A N/A self clients cinder backups create volume_id kwargs N/A N/A N/A bench_utils wait_for backup ready_statuses N/A available update_resource N/A N/A bench_utils get_from_manager timeout N/A N/A CONF benchmark cinder_volume_create_timeout check_interval N/A N/A CONF benchmark cinder_volume_create_poll_interval N/A N/A N/A atomic action_timer cinder.create_backup _delete_backup N/A N/A self backup N/A N/A N/A Delete the given backup.

        Returns when the backup is actually deleted.

        :param backup: backup instance
         N/A N/A N/A backup delete N/A N/A N/A bench_utils wait_for_status backup ready_statuses N/A deleted check_deletion True update_resource N/A N/A bench_utils get_from_manager timeout N/A N/A CONF benchmark cinder_volume_delete_timeout check_interval N/A N/A CONF benchmark cinder_volume_delete_poll_interval N/A N/A N/A atomic action_timer cinder.delete_backup _restore_backup N/A N/A self backup_id volume_id N/A None N/A N/A Restore the given backup.

        :param backup_id: The ID of the backup to restore.
        :param volume_id: The ID of the volume to restore the backup to.
         N/A restore N/A N/A N/A N/A N/A self clients cinder restores restore backup_id volume_id N/A restored_volume N/A N/A N/A N/A N/A self clients cinder volumes get N/A restore volume_id N/A N/A N/A bench_utils wait_for restored_volume ready_statuses N/A available update_resource N/A N/A bench_utils get_from_manager timeout N/A N/A CONF benchmark cinder_volume_create_timeout check_interval N/A N/A CONF benchmark cinder_volume_create_poll_interval N/A N/A N/A atomic action_timer cinder.restore_backup _list_backups N/A N/A self detailed N/A True N/A N/A Return user volume backups list.

        :param detailed: True if detailed information about backup
                         should be listed
         N/A N/A N/A N/A N/A N/A self clients cinder backups list detailed N/A N/A N/A atomic action_timer cinder.list_backups get_random_server N/A N/A self N/A N/A N/A server_id N/A N/A random choice N/A N/A N/A self context N/A tenant N/A servers N/A N/A N/A N/A N/A N/A self clients nova servers get server_id N/A N/A