Some Parameters in the YAML File Fail To Be Loaded

Symptom

When the CfgMgr module is started, the system loads the YAML configuration file. However, some parameters fail to be loaded.

Possible Causes

  • The format of the YAML file that carries the actual parameters is incorrect. As a result, the loading fails.
  • The path for storing the YAML configuration file and related attributes are incorrectly configured. For example, the path in 13.8.2-yaml_path.yaml is incorrect, or the namespace or group is not configured.
  • The variable configuration is incorrect. For example, the variable configuration example in the cfgmgr_env.yaml is incorrect.

Solution

  1. Check whether the YAML file format is correct. Access the Online YAML Tools, check whether the file contains errors, and rectify the errors as prompted.
  2. If the YAML file content is incorrect, locate the fault based on the error logs of the CfgMgr process, modify the YAML file as prompted, and invoke the CfgMgr::Reload interface to reload the file.