Change-Id: I143c6b27266536972583fc2f667f1790436927a3
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
# sw_catalogs_repo_url: http://git.<IP_ADDRESS>.nip.io/osm-developer/sw-catalogs-osm.git
workflow_debug: true
workflow_dry_run: false
-
+ # loglevel: DEBUG
+ # logfile: /var/log/osm/lcm-gitops.log
self.worker_id = self.get_process_id()
# load configuration
config = self.read_config_file(config_file)
+ self.logger.debug("Config from file" + str(config))
self.main_config.set_from_dict(config)
+ self.logger.debug("Main config" + str(self.main_config.to_dict()))
self.main_config.transform()
+ self.logger.debug("Main config" + str(self.main_config.to_dict()))
self.main_config.load_from_env()
self.logger.critical("Loaded configuration:" + str(self.main_config.to_dict()))
# TODO: check if lcm_hc.py is necessary
# self._kubeconfig = kubeconfig # TODO: get it from config
self.gitops_config = config["gitops"]
- self.logger.debug(f"Config: {self.gitops_config}")
+ self.logger.debug(f"Gitops Config: {self.gitops_config}")
self._odu_checkloop_retry_time = 15
self._kubeconfig = self.gitops_config.get("mgmtcluster_kubeconfig")
self._kubectl = kubectl.Kubectl(config_file=self._kubeconfig)