

@atomic.action_timer('cinder.restore_backup')
def _restore_backup(self, backup_id, volume_id=None):
    'Restore the given backup.\n\n        :param backup_id: The ID of the backup to restore.\n        :param volume_id: The ID of the volume to restore the backup to.\n        '
    restore = self.clients('cinder').restores.restore(backup_id, volume_id)
    restored_volume = self.clients('cinder').volumes.get(self.volume_id)
    return bench_utils.wait_for(restored_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._restore_backup/VarMisuse@57/150 `restore`->`self`