def schedule_create_volumes(self, context, request_spec,
                                availability_zone=None, *_args, **_kwargs):

        num_volumes = request_spec.get('num_volumes')
        LOG.debug(_("Attempting to spawn %(num_volumes)d volume(s)") %
                locals())

        vsa_id = request_spec.get('vsa_id')
        volume_params = request_spec.get('volumes')

        host = self._check_host_enforcement(context, availability_zone)

        try:
            self._print_capabilities_info()

            self._assign_hosts_to_volumes(context, volume_params, host)

            for vol in volume_params:
                self._provision_volume(context, vol, vsa_id, availability_zone)
        except:
            if vsa_id:
                db.vsa_update(context, vsa_id, dict(status=VsaState.FAILED))

            for vol in volume_params:
                if 'capabilities' in vol:
                    self._consume_resource(vol['capabilities'],
                                           vol['size'], 1)
            raise

        return None
file-like filter output: supress #{up} when ignoring colors
dataset/ETHPy150Open nii-cloud/dodai-compute/nova/scheduler/vsa.py/VsaScheduler.schedule_create_volumes--crossover with--dataset/ETHPy150Open gabrielfalcao/couleur/test_file_filter.py/test_supress_up_when_ignoring_colors