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

bugfix: waiting containers block pod termination #407

Merged

Conversation

hhyasdf
Copy link
Collaborator

@hhyasdf hhyasdf commented Oct 10, 2023

Pull Request Description

Describe what this PR does / why we need it

As mentioned in #406, now sts pods might get stuck in "Terminating" because of unknow waiting container state. To check if pod is completely terminated, we should check if "all the containers' state are not running" rather than "all the containers‘ state are terminated".

Does this pull request fix one issue?

Fixes #406

Describe how you did it

Describe how to verify it

Special notes for reviews

@hhyasdf hhyasdf force-pushed the bugfix/waiting-containers-block-pod-termination branch from a39c114 to 79a8d46 Compare October 10, 2023 09:29
@hhyasdf hhyasdf force-pushed the bugfix/waiting-containers-block-pod-termination branch from 79a8d46 to edd4a15 Compare October 10, 2023 09:31
Copy link
Collaborator

@sjtufl sjtufl left a comment

Choose a reason for hiding this comment

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

/lgtm

@codecov-commenter
Copy link

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (1c46ffb) 41.45% compared to head (edd4a15) 41.38%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #407      +/-   ##
==========================================
- Coverage   41.45%   41.38%   -0.08%     
==========================================
  Files          42       42              
  Lines        2757     2757              
==========================================
- Hits         1143     1141       -2     
- Misses       1498     1500       +2     
  Partials      116      116              
Flag Coverage Δ
unittests 41.38% <50.00%> (-0.08%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
pkg/controllers/networking/pod_controller.go 50.26% <50.00%> (ø)

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@mars1024 mars1024 left a comment

Choose a reason for hiding this comment

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

/lgtm

@mars1024 mars1024 merged commit 5be6969 into alibaba:main Oct 10, 2023
8 checks passed
hhyasdf pushed a commit to hhyasdf/hybridnet that referenced this pull request Oct 10, 2023
…-block-pod-termination

bugfix: waiting containers block pod termination
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.

Statefulset's pod got stuck in terminating forever after deleting
4 participants