Beispiel #1
0
    def _load_config(self):
        config = load_yaml(self.config_file)
        self.full_config = config
        self.env_config = config['template']['cluster_template']
        self.env_settings = config['template']['cluster_template']['settings']
        self.config_name = config['template']['name']

        if 'devops_settings' in config['template']:
            self._devops_config = config
Beispiel #2
0
    def _load_config(self):
        config = load_yaml(self.config_file)
        self.full_config = config
        self.env_config = config["template"]["cluster_template"]
        self.env_settings = config["template"]["cluster_template"]["settings"]
        self.config_name = config["template"]["name"]

        if "devops_settings" in config["template"]:
            self._devops_config = config
Beispiel #3
0
    def _load_config(self):
        config = load_yaml(self.config_file)
        self.full_config = config
        self.env_config = config[
            'template']['cluster_template']
        self.env_settings = config[
            'template']['cluster_template']['settings']
        self.config_name = config['template']['name']

        if 'devops_settings' in config['template']:
            self._devops_config = config
    def __init__(self, config_file=None):
        super(DeployEnv, self).__init__(config_file)
        self._required_plugins = None

        plugins_config = os.environ.get("PLUGINS_CONFIG_PATH")
        if not plugins_config:
            raise Exception("Path to config file for plugins is empty. "
                            "Please set PLUGINS_CONFIG_PATH env variable.")
        config = load_yaml(plugins_config)
        self.plugins_dependencies = config['dependencies']
        self.plugins_paths = config['paths']
        self.plugins_status = config['plugins_status']
    def __init__(self, config_file=None):
        super(DeployEnv, self).__init__(config_file)
        self._required_plugins = None

        plugins_config = os.environ.get("PLUGINS_CONFIG_PATH")
        if not plugins_config:
            raise Exception("Path to config file for plugins is empty. "
                            "Please set PLUGINS_CONFIG_PATH env variable.")
        config = load_yaml(plugins_config)
        self.plugins_dependencies = config['dependencies']
        self.plugins_paths = config['paths']
        self.plugins_status = config['plugins_status']
Beispiel #6
0
    def setup_master(self):
        """Create environment and set up master node

        Snapshot: empty

        """
        # TODO: remove this code when fuel-devops will be ready to
        # describe all required network parameters (gateway, CIDR, IP range)
        # inside 'address_pool', so we can use 'network_pools' section
        # for L3 configuration in tests for multi racks
        if MULTIPLE_NETWORKS:
            from system_test.helpers.utils import load_yaml
            self._devops_config = load_yaml(MULTIPLE_NETWORKS_TEMPLATE)

        self.check_run("empty")

        with TimeStat("setup_environment", is_uniq=True):
            self.env.setup_environment()
        self.env.make_snapshot("empty", is_make=True)
        self.current_log_step = 0