Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: initialize SonicDBConfig differently for single or multi_asic #1409

Merged
merged 1 commit into from
Feb 8, 2021

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
3 participants