@logging.log_task_wrapper(LOG.info,
                              _("Enter context: `fuel_environments`"))
    def setup(self):

        self.context.setdefault("fuel", {})
        self.context["fuel"].setdefault("environments", [])
        threads = self.config["resource_management_workers"]

        LOG.debug("Creating %(envs)d environments using %(threads)s threads" %
                  {"envs": self.config["environments"],
                   "threads": threads})
        self.fscenario = fuel_utils.FuelScenario(self.context)
        self.context["fuel"]["environments"] = self._create_envs()

        if len(self.context[
                "fuel"]["environments"]) != self.config["environments"]:
            raise exceptions.ContextSetupFailure(
                ctx_name=self.get_name(),
                msg=_("failed to create the requested"
                      " number of environments."))
Constructor. Takes parameters from config.
dataset/ETHPy150Open openstack/rally/rally/plugins/openstack/context/fuel.py/FuelEnvGenerator.setup--crossover with--dataset/ETHPy150Open jcbagneris/fms/fms/engines/asynchronousrandwreplace.py/AsynchronousRandWReplace.__init__