-
Notifications
You must be signed in to change notification settings - Fork 150
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
Chassisd do an explicit stop of the config_manager #328
Conversation
@judyjoseph code coverage |
@abdosi : Can you please request for double commit of this into 202205 branch? |
Added tests - code coverage is good now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@judyjoseph approving with comments. please check
@judyjoseph can we get this committed to 202205 branch as well? |
* Fix to explicit stop the config_manager * Add tests for chassisd run method.
This change is reverted from 202205 due to build failure. Please ping me when the build failure fix is in. |
@abdosi : Please check it |
* Fix to explicit stop the config_manager * Add tests for chassisd run method.
Raised PR : #336 |
* Fix to explicit stop the config_manager * Add tests for chassisd run method.
* Fix to explicit stop the config_manager * Add tests for chassisd run method.
* Chassisd do an explicit stop of the config_manager (#328) * Fix to explicit stop the config_manager * Add tests for chassisd run method. * chassisd: Fix crash on exit on linecard Set the `config_manager` variable to `None` if we are running on a linecard and thus don't need to set up the config manager. During cleanup, the chassid service tries to clean up the `config_manager`, but the `config_manager` variable is only ever initialized if we are on the supervisor. Thus, checking if it is `None` is insufficient because this results in an `UnboundLocalError` that prevents the cleanup from succeeding on a linecard. --------- Co-authored-by: judyjoseph <53951155+judyjoseph@users.noreply.github.com>
Description
Do an explicit task stop of config_manager task in the chassisd
Motivation and Context
Fixes issue sonic-net/sonic-buildimage#11955
How Has This Been Tested?
Updated the test_chassisd.py as per sonic-net/sonic-mgmt#7150 and made sure it is a consistent PASS
Additional Information (Optional)