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

Chassisd do an explicit stop of the config_manager #328

Merged
merged 3 commits into from
Jan 17, 2023

Conversation

judyjoseph
Copy link
Contributor

@judyjoseph judyjoseph commented Jan 3, 2023

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)

prgeor
prgeor previously approved these changes Jan 5, 2023
@prgeor
Copy link
Collaborator

prgeor commented Jan 5, 2023

@judyjoseph code coverage

@shivuv
Copy link

shivuv commented Jan 12, 2023

@abdosi : Can you please request for double commit of this into 202205 branch?

@judyjoseph
Copy link
Contributor Author

@judyjoseph code coverage

Added tests - code coverage is good now

Copy link
Collaborator

@prgeor prgeor left a 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

prgeor
prgeor previously approved these changes Jan 17, 2023
@amulyan7
Copy link
Contributor

@judyjoseph can we get this committed to 202205 branch as well?

yxieca pushed a commit that referenced this pull request Jan 19, 2023
* Fix to explicit stop the config_manager
* Add tests for chassisd run method.
@yxieca
Copy link

yxieca commented Jan 19, 2023

This change is reverted from 202205 due to build failure. Please ping me when the build failure fix is in.

yxieca added a commit that referenced this pull request Jan 19, 2023
@judyjoseph judyjoseph deleted the chassisd_fix branch January 21, 2023 01:05
@shivuv
Copy link

shivuv commented Jan 23, 2023

@judyjoseph can we get this committed to 202205 branch as well?

@abdosi : Please check it

judyjoseph added a commit to judyjoseph/sonic-platform-daemons that referenced this pull request Feb 1, 2023
* Fix to explicit stop the config_manager
* Add tests for chassisd run method.
@judyjoseph
Copy link
Contributor Author

@judyjoseph can we get this committed to 202205 branch as well?

@abdosi : Please check it

@judyjoseph can we get this committed to 202205 branch as well?

@abdosi : Please check it

Raised PR : #336

yxieca pushed a commit that referenced this pull request Feb 1, 2023
* Fix to explicit stop the config_manager
* Add tests for chassisd run method.
patrickmacarthur pushed a commit to patrickmacarthur/sonic-platform-daemons that referenced this pull request Apr 20, 2023
* Fix to explicit stop the config_manager
* Add tests for chassisd run method.
patrickmacarthur pushed a commit to patrickmacarthur/sonic-platform-daemons that referenced this pull request Jul 12, 2023
* Fix to explicit stop the config_manager
* Add tests for chassisd run method.
gechiang pushed a commit that referenced this pull request Jul 19, 2023
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

6 participants