The Modified YAML File Does Not Take Effect After a Restart

Symptom

After the YAML file used to save configuration parameters in the CfgMgr module is modified, the original YAML file is still used after the CfgMgr module is restarted.

Possible Causes

  • The path for storing the YAML configuration file and related attributes are incorrectly configured.
  • A persistent file has been generated for the module. After the module is restarted, the YAML file is not loaded.

Solution

  1. Check whether the path for storing the YAML file and related attributes are correctly configured. If they are correctly configured, modify the configureation by referring to the example in 13.8.2-yaml_path.yaml. Then invoke the CfgMgr::Reload interface to reload the module.
  2. Check whether persistent files are generated. The default path is /home/mdc/var/cfgmgr/persistent_config in the running environment.