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

[db_migrator] Remove import of swsssdk as it is not supported in master #2544

Merged
merged 1 commit into from
Dec 7, 2022

Conversation

vaibhavhd
Copy link
Contributor

What I did

Fixes: sonic-net/sonic-buildimage#12955

The cherrypick changes (from 202012 to master) made as part of #2515
broke the master branch db_migrator. The issue is due to an import of swsssdk which is no longer available in master image.

How I did it

Removed the import statement that came due to cherrypick.

How to verify it

Checked on physical device running master image

Without fix:

root@str2-acs-12:~# db_migrator.py
Traceback (most recent call last):
  File "/usr/local/bin/db_migrator.py", line 11, in <module>
    from swsssdk import ConfigDBConnector, SonicDBConfig
ModuleNotFoundError: No module named 'swsssdk'
root@str2-acs-12:~# 

With fix:

root@str2-acs-12:~# db_migrator.py     
version_4_0_0
root@str2-acs-12:~# 

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)

@vaibhavhd vaibhavhd merged commit 09b8dd1 into sonic-net:master Dec 7, 2022
StormLiangMS pushed a commit that referenced this pull request Dec 30, 2022
…er (#2544)

Fixes: sonic-net/sonic-buildimage#12955

The cherrypick changes (from 202012 to master) made as part of #2515
broke the master branch db_migrator. The issue is due to an import of swsssdk which is no longer available in master image.

How I did it
Removed the import statement that came due to cherrypick.

How to verify it
Checked on physical device running master image

Without fix:

root@str2-acs-12:~# db_migrator.py
Traceback (most recent call last):
  File "/usr/local/bin/db_migrator.py", line 11, in <module>
    from swsssdk import ConfigDBConnector, SonicDBConfig
ModuleNotFoundError: No module named 'swsssdk'
root@str2-acs-12:~# 

With fix:

root@str2-acs-12:~# db_migrator.py     
version_4_0_0
root@str2-acs-12:~#
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.

[db_migrator]DB migrator traces back in master with No module named 'swsssdk'
2 participants