-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
Check for hostError and automaticRestart when test finishes. #71456
Conversation
/assign @wojtek-t |
logName=\"projects/${PROJECT}/logs/compute.googleapis.com%2Factivity_log\" | ||
(jsonPayload.event_subtype=\"compute.instances.hostError\" OR jsonPayload.event_subtype=\"compute.instances.automaticRestart\") | ||
jsonPayload.resource.name:\"${group}\" | ||
timestamp >= \"${creation_timestamp}\"" |
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.
This looks great.
My only question here is - what is the estimation on the time it takes to run this command? This pretty much goes over activity log on all nodes, which for 5k-node clusters may be quite a lot.
Did you try running that on larger clusters?
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.
It takes ~20 seconds per instance group. So approx. 1 minute for all of them.
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.
Cool - thanks.
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mborsz, wojtek-t The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest Review the full test history for this PR. Silence the bot with an |
1 similar comment
/retest Review the full test history for this PR. Silence the bot with an |
We started to see LogDump failures in GKE when this merged: https://gubernator.k8s.io/build/kubernetes-jenkins/logs/ci-kubernetes-e2e-gci-gke/34578 Could this be related? |
It is related, log says:
where line 438 is added in this PR. Will revert and check what the problem is next week. |
Roll forward #71456 with a check whether INSTANCE_GROUPS is empty.
What type of PR is this?
/kind flake
What this PR does / why we need it:
When test finishes, check gce activity logs for hostError and automaticRestart. This is useful for debugging failed (flaky) test attempts.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Special notes for your reviewer:
Does this PR introduce a user-facing change?: