-
Notifications
You must be signed in to change notification settings - Fork 4.8k
OCPBUGS-43483: improve test/apiserver/graceful_termination #29006
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
Closed
p0lyn0mial
wants to merge
2
commits into
openshift:main
from
p0lyn0mial:improve-graceful-termination-e2e
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
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.
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.
have a look at https://prow.ci.openshift.org/view/gs/test-platform-results/logs/periodic-ci-openshift-release-master-nightly-4.17-e2e-metal-ipi-serial-ovn-ipv6/1820973338286100480
the gathered audit logs (including termination.log) show me
I'm not saying I don't want this. I am noting that something appears off since the audit log isn't showing what you expect.
Uh oh!
There was an error while loading. Please reload this page.
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.
I'm glad you checked it. It turns out that this was changed between versions 4.14 and 4.13 :(
The annotation was replaced by new filters in this pull request, which added a new annotation https://apiserver.k8s.io/shutdown, but the test wasn't updated. :(
Later on, the new annotation was removed and replaced by sending an HTTP response header in this pull request, and no test was added. (?)
This morning, I also realized that there is a test (
API LBs follow /readyz of kube-apiserver and stop sending requests) that checks for the LateConnections event.The issue is that in the run you linked, the event wasn't persisted in the database because the server had issues connecting to the database! For instance:
That's why we should not rely solely on events.
I'm fine with replacing this test with the one that is going to read the termination log files. (cc @sanchezl)
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.
The
openshift.io/during-gracefulannotation was brought back in openshift/kubernetes#2077There 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.
ok, I have checked https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/test-platform-results/pr-logs/pull/29006/pull-ci-openshift-origin-master-e2e-metal-ipi-ovn/1833121043204542464/artifacts/e2e-metal-ipi-ovn/gather-audit-logs/artifacts/
the gathered audit logs show me some results (the test didn't fail because it was below the threshold):