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

[202012][services] kill container on stop in warm/fast mode #10511

Merged

Conversation

stepanblyschak
Copy link
Collaborator

@stepanblyschak stepanblyschak commented Apr 8, 2022

Signed-off-by: Stepan Blyschak stepanb@nvidia.com

Why I did it

To optimize stop on warm boot.

How I did it

Added kill for containers

How to verify it

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
@stepanblyschak stepanblyschak changed the title [services] kill container on stop in warm/fast mode [202012][services] kill container on stop in warm/fast mode Apr 8, 2022
@lguohan lguohan requested review from vaibhavhd and yxieca April 9, 2022 17:48
@vaibhavhd
Copy link
Contributor

These changes LGTM, but there is an error in PR tests on master branch for the corresponding change. I would suggest to RCA those issues to ensure there isn't a risk introduced.

@@ -1,84 +0,0 @@
#!/bin/bash
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you know why GIT shows that original radv.sh was deleted? Is it because the new script has new permissions (chmod permissions)?

In the same regard, does other sh scripts introduced here have executable permissions? I think that's necessary.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All have executable permissions. radv.sh and service_mgmt.sh are not the same.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand that they are different files. My minor concern was why GIT shows that original radv.sh was deleted. This usually happens when contents are replaced and permissions are changed.

image

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vaibhavhd The content was changed, please check the line SERVICE="radv" and SERVICE="${SCRIPT_NAME%.*}" in service_mgmt.sh

@vaibhavhd
Copy link
Contributor

I just realized that this PR hasn't run any tests, and the one on master has gone through round of testing and failed.
I suggest we sort out and understand the cause of failure/regression on master before we merge this.

@qiluo-msft
Copy link
Collaborator

/azp run Azure.sonic-buildimage

@sonic-net sonic-net deleted a comment from azure-pipelines bot Apr 14, 2022
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@vaibhavhd
Copy link
Contributor

@stepanblyschak I am not able to merge this as the branch is out-of-date. Can you update the branch with latest of 202012 and retry?

@vaibhavhd vaibhavhd merged commit fa1e364 into sonic-net:202012 Apr 18, 2022
@stepanblyschak stepanblyschak deleted the 202012-stop-action-kill-on-wb branch September 23, 2022 13:34
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.

3 participants