-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Updating the logic for stale endpoint management #8913
Merged
coutinhop
merged 5 commits into
projectcalico:master
from
ritikaguptams:hypervNetworkSupport
Jul 9, 2024
Merged
Updating the logic for stale endpoint management #8913
coutinhop
merged 5 commits into
projectcalico:master
from
ritikaguptams:hypervNetworkSupport
Jul 9, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
marvin-tigera
added
release-note-required
Change has user-facing impact (no matter how small)
docs-pr-required
Change is not yet documented
labels
Jun 14, 2024
fjs4
reviewed
Jun 15, 2024
/sem-approve |
Thanks for the contribution; CI failed with a code formatting check, please can you run |
fasaxc
added
docs-not-required
Docs not required for this change
and removed
docs-pr-required
Change is not yet documented
labels
Jun 18, 2024
coutinhop
reviewed
Jun 18, 2024
/sem-approve |
Signed-off-by: ritikaguptams <85255050+ritikaguptams@users.noreply.github.com> Updating stale endpoint logic for readability Signed-off-by: ritikaguptams <85255050+ritikaguptams@users.noreply.github.com> Fixing typo Signed-off-by: ritikaguptams <85255050+ritikaguptams@users.noreply.github.com> Removing paranthesis to make lint check happy Signed-off-by: ritikaguptams <85255050+ritikaguptams@users.noreply.github.com> Adding comments about HNS dependency Signed-off-by: ritikaguptams <85255050+ritikaguptams@users.noreply.github.com>
ritikaguptams
force-pushed
the
hypervNetworkSupport
branch
from
June 20, 2024 22:32
a868256
to
5c5374f
Compare
/sem-approve |
/sem-approve |
/sem-approve |
coutinhop
approved these changes
Jul 2, 2024
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.
LGTM, thanks @ritikaguptams!
/sem-approve |
This was referenced Jul 18, 2024
coutinhop
added a commit
that referenced
this pull request
Jul 18, 2024
…elease-v3.28 [release-v3.28] Auto pick #8913: updating the logic for stale endpoint management
coutinhop
added a commit
that referenced
this pull request
Jul 18, 2024
…elease-v3.27 [release-v3.27] Auto pick #8913: updating the logic for stale endpoint management
coutinhop
added a commit
that referenced
this pull request
Jul 18, 2024
…elease-v3.26 [release-v3.26] Auto pick #8913: updating the logic for stale endpoint management
coutinhop
added
cherry-pick-completed
PR has been cherry-picked
and removed
cherry-pick-candidate
labels
Jul 18, 2024
11 tasks
coutinhop
added a commit
to coutinhop/calico
that referenced
this pull request
Jul 26, 2024
Revert hcsshim version bump from v0.11.6 back to v0.11.4, as this was breaking Windows policies. (original PR projectcalico#8913)
coutinhop
added a commit
to coutinhop/calico
that referenced
this pull request
Jul 26, 2024
Revert hcsshim version bump from v0.11.6 back to v0.11.4, as this was breaking Windows policies. (original PR projectcalico#8913)
coutinhop
added a commit
to coutinhop/calico
that referenced
this pull request
Jul 29, 2024
Revert windows endpoint mgr logic change from projectcalico#8913 which was breaking windows policies and add extra debug logging. CAPZ Win FV test fixes: - fix .sh scripts permissions - fix log file retrieval - add .gitignore - use -O for scp in generate_helpers.sh - get KIND_VERSION from metadata.mk - adjust timeouts
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
cherry-pick-completed
PR has been cherry-picked
docs-not-required
Docs not required for this change
release-note-required
Change has user-facing impact (no matter how small)
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Background:
This issue surfaces when we run the K8s for hyperv containers test https://github.com/kubernetes/kubernetes/blob/6381e6504ac210297e382c22029791267d440d9e/test/e2e/windows/service.go#L51 to reproduce you will need to set up testing cluster using capz windows-testing/capz/readme.md at master · kubernetes-sigs/windows-testing (github.com) and run this specific test. Else you could also look at test-grid logs for details on test failure: sig-windows-experimental Test Grid (kubernetes.io)
In the test Calico is unable to recognize a container endpoint is in ready state as it doesn't attach an endpoint as the logic is based on HNSEndpoint sharedContainers which are an empty field for hyperv containers. https://github.com/microsoft/hcsshim/blob/8beabacfc2d21767a07c20f8dd5f9f3932dbf305/internal/hns/hnsendpoint.go#L146
Calico logic to define a stale container needs to be updated. I do so by using the HNS Endpoint state attribute.
PR for hcshim: microsoft/hcsshim#2177
The change has been backported to hcsshim 0.11 and 0.12 and we here ingest the latest tag to ingest dependent changes.
This change was tested by running kubernetes e2e tests locally for both hyperv containers and process isolated containers. All tests pass.
Related issues/PRs
Todos
Release Note
Reminder for the reviewer
Make sure that this PR has the correct labels and milestone set.
Every PR needs one
docs-*
label.docs-pr-required
: This change requires a change to the documentation that has not been completed yet.docs-completed
: This change has all necessary documentation completed.docs-not-required
: This change has no user-facing impact and requires no docs.Every PR needs one
release-note-*
label.release-note-required
: This PR has user-facing changes. Most PRs should have this label.release-note-not-required
: This PR has no user-facing changes.Other optional labels:
cherry-pick-candidate
: This PR should be cherry-picked to an earlier release. For bug fixes only.needs-operator-pr
: This PR is related to install and requires a corresponding change to the operator.