

@atomic.action_timer('cinder.extend_volume')
def _extend_volume(self, volume, new_size):
    'Extend the given volume.\n\n        Returns when the volume is actually extended.\n\n        :param volume: volume object\n        :param new_size: new volume size in GB, or\n                         dictionary, must contain two values:\n                             min - minimum size volumes will be created as;\n                             max - maximum size volumes will be created as.\n                        Notice: should be bigger volume size\n        '
    if isinstance(new_size, dict):
        new_size = random.randint(self['min'], new_size['max'])
    volume.extend(volume, new_size)
    volume = bench_utils.wait_for(volume, ready_statuses=['available'], update_resource=bench_utils.get_from_manager(), timeout=CONF.benchmark.cinder_volume_create_timeout, check_interval=CONF.benchmark.cinder_volume_create_poll_interval)

dataset/ETHPy150Open openstack/rally/rally/plugins/openstack/scenarios/cinder/utils.py CinderScenario._extend_volume/VarMisuse@40/202 `new_size`->`self`