Skip to content

[fast-reboot] [ErrLog] ERR sonic-db-cli: :- getDbInfo: Key :asicdpu1 is not a valid key name in config file #19331

@vivekrnv

Description

@vivekrnv

Description

During the down phase of fast-reboot we observe these error logs in a Smartswitch

Steps to reproduce the issue:

  1. Run fast-reboot and observe the logs
cat /lib/systemd/system/[email protected]
[Service]
User=root
ExecStartPre=/usr/local/bin/database.sh start %i
ExecStart=/usr/local/bin/database.sh wait %i
ExecStop=/usr/local/bin/database.sh stop %i
RestartSec=30

database.sh (https://github.com/sonic-net/sonic-buildimage/blob/master/files/scripts/service_mgmt.sh#L91) script would read the dpu0 as the NETNS and it would call sonic-db-cli with this -n argument which leads to this error

Describe the results you received:

syslog.gz:Jun  9 20:54:47.124698 r-smartswitch-01 ERR sonic-db-cli: :- getDbInfo: Key :asicdpu0 is not a valid key name in config file
syslog.gz:Jun  9 20:54:47.124968 r-smartswitch-01 INFO database.sh[289021]: Key :asicdpu0 is not a valid key name in config file
syslog.gz:Jun  9 20:54:47.133817 r-smartswitch-01 ERR sonic-db-cli: :- getDbInfo: Key :asicdpu0 is not a valid key name in config file
syslog.gz:Jun  9 20:54:47.134373 r-smartswitch-01 INFO database.sh[289027]: Key :asicdpu0 is not a valid key name in config file
syslog.gz:Jun  9 20:54:47.143334 r-smartswitch-01 ERR sonic-db-cli: :- getDbInfo: Key :asicdpu3 is not a valid key name in config file
syslog.gz:Jun  9 20:54:47.143458 r-smartswitch-01 INFO database.sh[289031]: Key :asicdpu3 is not a valid key name in config file
syslog.gz:Jun  9 20:54:47.144471 r-smartswitch-01 ERR sonic-db-cli: :- getDbInfo: Key :asicdpu2 is not a valid key name in config file
syslog.gz:Jun  9 20:54:47.144584 r-smartswitch-01 INFO database.sh[289029]: Key :asicdpu2 is not a valid key name in config file
syslog.gz:Jun  9 20:54:47.145037 r-smartswitch-01 ERR sonic-db-cli: :- getDbInfo: Key :asicdpu1 is not a valid key name in config file
syslog.gz:Jun  9 20:54:47.145145 r-smartswitch-01 INFO database.sh[289030]: Key :asicdpu1 is not a valid key name in config file
syslog.gz:Jun  9 20:54:47.156136 r-smartswitch-01 ERR sonic-db-cli: :- getDbInfo: Key :asicdpu0 is not a valid key name in config file
syslog.gz:Jun  9 20:54:47.156269 r-smartswitch-01 INFO database.sh[289034]: Key :asicdpu0 is not a valid key name in config file
syslog.gz:Jun  9 20:54:47.160595 r-smartswitch-01 ERR sonic-db-cli: :- getDbInfo: Key :asicdpu3 is not a valid key name in config file
syslog.gz:Jun  9 20:54:47.160710 r-smartswitch-01 INFO database.sh[289033]: Key :asicdpu3 is not a valid key name in config file
syslog.gz:Jun  9 20:54:47.163405 r-smartswitch-01 ERR sonic-db-cli: :- getDbInfo: Key :asicdpu1 is not a valid key name in config file
syslog.gz:Jun  9 20:54:47.163512 r-smartswitch-01 INFO database.sh[289036]: Key :asicdpu1 is not a valid key name in config file
syslog.gz:Jun  9 20:54:47.163979 r-smartswitch-01 ERR sonic-db-cli: :- getDbInfo: Key :asicdpu2 is not a valid key name in config file
syslog.gz:Jun  9 20:54:47.164080 r-smartswitch-01 INFO database.sh[289035]: Key :asicdpu2 is not a valid key name in config file
syslog.gz:Jun  9 20:54:47.166112 r-smartswitch-01 ERR sonic-db-cli: :- getDbInfo: Key :asicdpu0 is not a valid key name in config file
syslog.gz:Jun  9 20:54:47.166218 r-smartswitch-01 INFO database.sh[289037]: Key :asicdpu0 is not a valid key name in config file
syslog.gz:Jun  9 20:54:47.186604 r-smartswitch-01 ERR sonic-db-cli: :- getDbInfo: Key :asicdpu1 is not a valid key name in config file
syslog.gz:Jun  9 20:54:47.186726 r-smartswitch-01 INFO database.sh[289043]: Key :asicdpu1 is not a valid key name in config file
syslog.gz:Jun  9 20:54:47.190670 r-smartswitch-01 ERR sonic-db-cli: :- getDbInfo: Key :asicdpu3 is not a valid key name in config file
syslog.gz:Jun  9 20:54:47.190894 r-smartswitch-01 INFO database.sh[289045]: Key :asicdpu3 is not a valid key name in config file
syslog.gz:Jun  9 20:54:47.196107 r-smartswitch-01 ERR sonic-db-cli: :- getDbInfo: Key :asicdpu2 is not a valid key name in config file
syslog.gz:Jun  9 20:54:47.196625 r-smartswitch-01 ERR sonic-db-cli: :- getDbInfo: Key :asicdpu1 is not a valid key name in config file
syslog.gz:Jun  9 20:54:47.196836 r-smartswitch-01 INFO database.sh[289048]: Key :asicdpu1 is not a valid key name in config file
syslog.gz:Jun  9 20:54:47.197020 r-smartswitch-01 INFO database.sh[289047]: Key :asicdpu2 is not a valid key name in config file
syslog.gz:Jun  9 20:54:47.199356 r-smartswitch-01 ERR sonic-db-cli: :- getDbInfo: Key :asicdpu3 is not a valid key name in config file
syslog.gz:Jun  9 20:54:47.199586 r-smartswitch-01 INFO database.sh[289050]: Key :asicdpu3 is not a valid key name in config file
syslog.gz:Jun  9 20:54:47.205752 r-smartswitch-01 ERR sonic-db-cli: :- getDbInfo: Key :asicdpu2 is not a valid key name in config file
syslog.gz:Jun  9 20:54:47.205887 r-smartswitch-01 INFO database.sh[289052]: Key :asicdpu2 is not a valid key name in config file

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions