Closed ihorchekh closed 2 years ago
Nvidia team will debug further according to comments from issue tirage meeting
config reload -y Running command: rm -rf /tmp/dropstat-* Disabling container monitoring ... Stopping SONiC target ... Running command: /usr/local/bin/sonic-cfggen -j /etc/sonic/config_db.json -j /etc/sonic/init_cfg.json --write-to-db Running command: /usr/local/bin/db_migrator.py -o migrate Running command: /usr/local/bin/sonic-cfggen -d -y /etc/sonic/sonic_version.yml -t /usr/share/sonic/templates/sonic-environment.j2,/etc/sonic/sonic-environment
In the above execution from latest master sonic-cfggen is taking config_db.json first followed by init_cfg.json which will make default values in init_cfg.json override user configuration values. In 202106 we find below is the order
if [ "$(systemctl is-enabled swss.service)" == "enabled" ]; then echo "hello"; fi
if namespace is None:
if os.path.isfile(INIT_CFG_FILE):
command = "{} -j {} -j {} --write-to-db".format(SONIC_CFGGEN_PATH, INIT_CFG_FILE, file)
However, the order was reversed in this PR https://github.com/Azure/sonic-utilities/pull/1781. Is there any specific reason for it? If not, can you please make the order as earlier so user config takes precedence over default?
Description After reload config_db.json sflow going to disabled state. Command
show feature status
shows sflow in disabled state afterconfig reload -y
Steps to reproduce the issue:
"state": "disabled"
change to"enabled"
show feature status
config reload -y
show feature status
Actual result Command
show feature status
shows sflow in disabled state afterconfig reload -y
Expected result Command
show feature status
shows sflow in enabled state afterconfig reload -y
Output of show version:
SONiC.master.51908-dirty-20211117.173456
Output of show techsupport: sonic_dump_r-tigon-11_20211208_150029.tar.gz