-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[database]: Traceback during flush of unused database #14531
Labels
Comments
nazariig
changed the title
[202211][database]: Traceback during flush of unused database
[database]: Traceback during flush of unused database
Apr 12, 2023
8 tasks
Create a fix PR: #14632 |
qiluo-msft
pushed a commit
that referenced
this issue
Apr 20, 2023
Install python-redis package to docker containers #### Why I did it This this bug: #14531 The 'flush_unused_database' is part of docker-database, and docker-database does not install python-redis package by itself. it's using redis installed by sonic-py-swsssdk. So after remove sonic-py-swsssdk from container, this script break. To this this bug and avoid similer bug happen again, install python-redis to docker containers which removed sonic-py-swsssdk . #### How I did it Install python-redis to containers. #### How to verify it Pass all UT. Create new UT to cover this scenario: sonic-net/sonic-mgmt#8032 #### Description for the changelog Improve sudo cat command for RO user.
mssonicbld
pushed a commit
to mssonicbld/sonic-buildimage
that referenced
this issue
Apr 20, 2023
Install python-redis package to docker containers #### Why I did it This this bug: sonic-net#14531 The 'flush_unused_database' is part of docker-database, and docker-database does not install python-redis package by itself. it's using redis installed by sonic-py-swsssdk. So after remove sonic-py-swsssdk from container, this script break. To this this bug and avoid similer bug happen again, install python-redis to docker containers which removed sonic-py-swsssdk . #### How I did it Install python-redis to containers. #### How to verify it Pass all UT. Create new UT to cover this scenario: sonic-net/sonic-mgmt#8032 #### Description for the changelog Improve sudo cat command for RO user.
mssonicbld
pushed a commit
that referenced
this issue
Apr 23, 2023
Install python-redis package to docker containers #### Why I did it This this bug: #14531 The 'flush_unused_database' is part of docker-database, and docker-database does not install python-redis package by itself. it's using redis installed by sonic-py-swsssdk. So after remove sonic-py-swsssdk from container, this script break. To this this bug and avoid similer bug happen again, install python-redis to docker containers which removed sonic-py-swsssdk . #### How I did it Install python-redis to containers. #### How to verify it Pass all UT. Create new UT to cover this scenario: sonic-net/sonic-mgmt#8032 #### Description for the changelog Improve sudo cat command for RO user.
@nazariig , PR and UT PR merged, please confirm I can close this issue. |
@liuh-80 closed. Thanks for the fix! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Looks like that database container is missing
python3-redis
package.Traceback:
Steps to reproduce the issue:
Describe the results you received:
Script fails with traceback
Describe the results you expected:
No traceback is expected
Output of
show version
:Output of
show techsupport
:Additional information you deem important (e.g. issue happens only occasionally):
The text was updated successfully, but these errors were encountered: