Skip to content

Fix: initialize SonicDBConfig differently for single or multi_asic#1409

Merged
qiluo-msft merged 1 commit intosonic-net:masterfrom
qiluo-msft:qiluo/initdb
Feb 8, 2021
Merged

Fix: initialize SonicDBConfig differently for single or multi_asic#1409
qiluo-msft merged 1 commit intosonic-net:masterfrom
qiluo-msft:qiluo/initdb

Conversation

@qiluo-msft
Copy link
Contributor

@qiluo-msft qiluo-msft commented Feb 8, 2021

- What I did
Fixes sonic-net/sonic-buildimage#6708

This bug is exposed by #1392. Previously the config command will call SonicDBConfig.load_sonic_global_db_config() even on a single ASIC platform, and it will silently failed. After exposed, it will fail with error syslog message:

admin@sonic:~$ sudo config save
Existing files will be overwritten, continue? [y/N]: ^CAborted!

Feb  8 03:23:48.729434 sonic ERR sniffer: :- initializeGlobalConfig: Sonic database config global file doesn't exist at /var/run/redis/sonic-db/database_global.json

- How I did it

- How to verify it
Tested on DUT

- Previous command output (if the output of a command-line utility has changed)

- New command output (if the output of a command-line utility has changed)

@lguohan
Copy link
Contributor

lguohan commented Feb 8, 2021

@qiluo-msft, why are we having test failure? is this the worker problem?

@lguohan
Copy link
Contributor

lguohan commented Feb 8, 2021

retest vs please

@lguohan
Copy link
Contributor

lguohan commented Feb 8, 2021

retest this please

@qiluo-msft qiluo-msft merged commit 794cdd3 into sonic-net:master Feb 8, 2021
@qiluo-msft qiluo-msft deleted the qiluo/initdb branch February 8, 2021 19:55
anand-kumar-subramanian pushed a commit to anand-kumar-subramanian/sonic-utilities that referenced this pull request Mar 2, 2021
…onic-net#1409)

**- What I did**
Fixes sonic-net/sonic-buildimage#6708

This bug is exposed by sonic-net#1392. Previously the `config` command will call `SonicDBConfig.load_sonic_global_db_config()` even on a single ASIC platform, and it will silently failed. After exposed, it will fail with error syslog message:
```
admin@sonic:~$ sudo config save
Existing files will be overwritten, continue? [y/N]: ^CAborted!

Feb  8 03:23:48.729434 sonic ERR sniffer: :- initializeGlobalConfig: Sonic database config global file doesn't exist at /var/run/redis/sonic-db/database_global.json
```
**- How to verify it**
Tested on DUT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ERR sniffer: :- initializeGlobalConfig: Sonic database config global file doesn't exist at /var/run/redis/sonic-db/database_global.json

3 participants