-
Notifications
You must be signed in to change notification settings - Fork 1.5k
swsscommon Error in docker database supervisord init - flush_unused_database failed #12050
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
Comments
Hi @abdosi , FYI- |
@anamehra can you please help to add the repro steps and paste the output? |
@zhangyanzhao, this is 100% reproducible on the latest image I build. If one enter database docker, and try to run flush_unused_database, it throws error. import swsscommon is missing. But looks like its not just limited to that. I added the import statement and hit a different issue.
|
@anamehra - is this issue seen in master or 202205 based, or both? Thanks. Reminder to put basic info when logging issues. (please see template). |
Hi @rlhui , Hit this issue on msft/202205, have not tested master. May be fixed in master and needs double commit to 202205. Update the description with sha1. |
Looks like related to this commit missing in 202205 |
I will check and make a list for PRs need cherry-pick to 202205 to fix this issue: Another solution is to revert 'deprecate swsssdk' related change from 202205, because all work for this are finished after june. I we want revert, here is PR list: I will check which is more easy and update here. |
Description
Observing following error during database docker start with latest master based image:
Sep 11 23:28:24.601520 sfd-t2-sup INFO database#supervisord: flushdb File "/usr/local/bin/flush_unused_database", line 14, in
Sep 11 23:28:24.601665 sfd-t2-sup INFO database#supervisord: flushdb instlists = swsscommon.SonicDBConfig.getInstanceList()
Sep 11 23:28:24.601665 sfd-t2-sup INFO database#supervisord: flushdb NameError: name 'swsscommon' is not defined
Sep 11 23:28:24.613745 sfd-t2-sup INFO database#supervisord 2022-09-11 23:28:24,613 INFO exited: flushdb (exit status 1; not expected)
Looks like introduced by #11600
Steps to reproduce the issue:
Describe the results you received:
Describe the results you expected:
Output of
show version
:(paste your output here or download and attach the file here )
The text was updated successfully, but these errors were encountered: