Skip to content
New issue

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

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

Already on GitHub? # to your account

Use SonicV2Connector/ConfigDBConnector/SonicDBConfig from swsscommon instread of swsssdk #1392

Merged
merged 5 commits into from
Feb 2, 2021

Conversation

qiluo-msft
Copy link
Contributor

- What I did
Use SonicV2Connector/ConfigDBConnector/SonicDBConfig from swsscommon instread of swsssdk

- How I did it

- How to verify it
Unit test and test impacted command lines 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)

@lgtm-com
Copy link

lgtm-com bot commented Jan 29, 2021

This pull request introduces 1 alert when merging f7c3db6 into a50b7a2 - view on LGTM.com

new alerts:

  • 1 for Unused import

@qiluo-msft qiluo-msft requested review from jleveque, neethajohn and arlakshm and removed request for jleveque January 30, 2021 18:35
@qiluo-msft qiluo-msft marked this pull request as ready for review January 30, 2021 18:36
@qiluo-msft qiluo-msft requested a review from lguohan January 30, 2021 18:36
@qiluo-msft qiluo-msft merged commit 2e1f354 into sonic-net:master Feb 2, 2021
@qiluo-msft qiluo-msft deleted the qiluo/swsscommon branch February 2, 2021 03:21
qiluo-msft added a commit that referenced this pull request Feb 8, 2021
…1409)

**- 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 to verify it**
Tested on DUT
qiluo-msft added a commit that referenced this pull request Feb 11, 2021
…ontinued) (#1417)

**- What I did**
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:
```
Feb  9 05:04:46.462361 vlab-01 ERR python3: :- initializeGlobalConfig: Sonic database config global file doesn't exist at /var/run/redis/sonic-db/database_global.json
```

**- How to verify it**
Unit test and test in DUT.
anand-kumar-subramanian pushed a commit to anand-kumar-subramanian/sonic-utilities that referenced this pull request Mar 2, 2021
…instread of swsssdk (sonic-net#1392)

- What I did
Use SonicV2Connector/ConfigDBConnector/SonicDBConfig from swsscommon instread of swsssdk

- How to verify it
Unit test and test impacted command lines on DUT.
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
anand-kumar-subramanian pushed a commit to anand-kumar-subramanian/sonic-utilities that referenced this pull request Mar 2, 2021
…ontinued) (sonic-net#1417)

**- What I did**
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:
```
Feb  9 05:04:46.462361 vlab-01 ERR python3: :- initializeGlobalConfig: Sonic database config global file doesn't exist at /var/run/redis/sonic-db/database_global.json
```

**- How to verify it**
Unit test and test in DUT.
qiluo-msft pushed a commit that referenced this pull request Apr 5, 2021
#### What I did
This PR #1393 merged after PR: #1392
This caused the first PR to be not aligned with SonicV2Connector change.
This PR motivation is to fix it.
yxieca pushed a commit that referenced this pull request Apr 8, 2021
#### What I did
This PR #1393 merged after PR: #1392
This caused the first PR to be not aligned with SonicV2Connector change.
This PR motivation is to fix it.
liat-grozovik pushed a commit that referenced this pull request Apr 13, 2021
)" (#1561)

- What I did
It seems like this change is not backported to 202012: #1392
So this PR #1546 Is not required on 202012 branch.
It was cherry-picked to 202012 and now the fast-reboot-dump script is broken.

- How I did it
Revert the commit.

- How to verify it
Run fast-reboot on 202012 branch.
gitsabari pushed a commit to gitsabari/sonic-utilities that referenced this pull request Jun 15, 2021
…1546)

#### What I did
This PR sonic-net#1393 merged after PR: sonic-net#1392
This caused the first PR to be not aligned with SonicV2Connector change.
This PR motivation is to fix it.
qiluo-msft added a commit that referenced this pull request Aug 25, 2021
This is a partial backport of #1392
Only add new mock support in unit test.
malletvapid23 added a commit to malletvapid23/Sonic-Utility that referenced this pull request Aug 3, 2023
…1409)

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

This bug is exposed by sonic-net/sonic-utilities#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
malletvapid23 added a commit to malletvapid23/Sonic-Utility that referenced this pull request Aug 3, 2023
…ontinued) (#1417)

**- What I did**
This bug is exposed by sonic-net/sonic-utilities#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:
```
Feb  9 05:04:46.462361 vlab-01 ERR python3: :- initializeGlobalConfig: Sonic database config global file doesn't exist at /var/run/redis/sonic-db/database_global.json
```

**- How to verify it**
Unit test and test in DUT.
malletvapid23 added a commit to malletvapid23/Sonic-Utility that referenced this pull request Aug 3, 2023
#### What I did
This PR sonic-net/sonic-utilities#1393 merged after PR: sonic-net/sonic-utilities#1392
This caused the first PR to be not aligned with SonicV2Connector change.
This PR motivation is to fix it.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants