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

Sleep forever after systemd logs plugin finishes #971

Merged
merged 1 commit into from
Oct 21, 2019
Merged

Sleep forever after systemd logs plugin finishes #971

merged 1 commit into from
Oct 21, 2019

Conversation

johnSchnake
Copy link
Contributor

What this PR does / why we need it:
We currently sleep for 1h after the logs are gathered but some
test runs take multiple hours which leads to this plugin getting
restarted and trying to resubmit logs. This causes confusing messages
in the logs since the original plugin pod is gone and the only one that
exists gets a 409 error from submitting duplicate results.

Which issue(s) this PR fixes
Fixes #970

Special notes for your reviewer:
Easy to test with our new run-from-stdin capability:

go install
sonobuoy gen|sed 's/3600/2/'|sonobuoy run -f -

Just a client-side change so no image pushing necessary.

Release note:

Fixed an issue where the systemd-logs plugin would restart while the e2e tests ran for longer than 1h. This led to confusing messages in the logs.

@johnSchnake johnSchnake requested a review from zubron October 21, 2019 18:07
We currently sleep for 1h after the logs are gathered but some
test runs take multiple hours which leads to this plugin getting
restarted and trying to resubmit logs. This causes confusing messages
in the logs since the original plugin pod is gone and the only one that
exists gets a 409 error from submitting duplicate results.

Fixes #970

Signed-off-by: John Schnake <[email protected]>
@johnSchnake johnSchnake merged commit cd942b3 into vmware-tanzu:master Oct 21, 2019
@johnSchnake johnSchnake deleted the thelongsleep branch October 21, 2019 19:01
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.

Daemonset sleep period/restart causes confusing logs
2 participants