Skip to content

Increase journald rate limiter when running test-end-to-end-docker.sh - #13669

Merged
smarterclayton merged 4 commits into
openshift:masterfrom
soltysh:issue12558
Jun 7, 2017
Merged

smarterclayton merged 4 commits into
openshift:masterfrom
soltysh:issue12558

Conversation

@soltysh

@soltysh soltysh commented Apr 7, 2017

Copy link
Copy Markdown
Contributor

Fixes #12558 by increasing rate limiter values while running test-end-to-end-docker.sh. Additionally, this re-enables the tests that were disabled due to that error.

@stevekuznetsov another try...
@mfojtik fyi

@soltysh

soltysh commented Apr 11, 2017

Copy link
Copy Markdown
Contributor Author

I've removed that offending deprecation warning using the recommended/new approach for oc exec.

@soltysh

soltysh commented Apr 13, 2017 •

Copy link
Copy Markdown
Contributor Author

Flake #13757

@soltysh soltysh changed the title Increase journald rate limiter when running test-end-to-end-docker.sh [DO_NOT_MERGE] Increase journald rate limiter when running test-end-to-end-docker.sh Apr 14, 2017
@soltysh

soltysh commented Apr 14, 2017

Copy link
Copy Markdown
Contributor Author

@ncdc I'm baffled by this error. The case is when I increase RateLimitInterval and RateLimitBurst in journald.conf and get to oc rsh dc/docker-registry cat config.yml the end-to-end test will hang waiting for the connection. Looking closer at the instance I've noticed that generally docker will hang after some time. Usually, only restart will help. Any ideas/thoughts what might be causing this? Pointers where should I look for it? I can't reproduce this manually when running oc cluster up and trying oc rsh.

@ncdc

ncdc commented Apr 14, 2017 via email

Copy link
Copy Markdown
Contributor

@soltysh

soltysh commented Apr 14, 2017

Copy link
Copy Markdown
Contributor Author

Sure, sure, no rush :)

@ncdc

ncdc commented Apr 17, 2017

Copy link
Copy Markdown
Contributor

I wonder if we're starting to run into kubernetes/kubernetes#43922

@soltysh

soltysh commented Apr 18, 2017

Copy link
Copy Markdown
Contributor Author

I'll try to spin up a new env with that fix in, I'm hitting this quite consistently with this PR.

@ncdc

ncdc commented Apr 18, 2017 via email

Copy link
Copy Markdown
Contributor

@soltysh

soltysh commented Apr 19, 2017

Copy link
Copy Markdown
Contributor Author

Nope, that PR didn't help with the problem 😢 My last resort is the current rebase, I guess.

@ncdc

ncdc commented Apr 19, 2017 via email

Copy link
Copy Markdown
Contributor

@soltysh

soltysh commented Apr 19, 2017

Copy link
Copy Markdown
Contributor Author

Nope, the rebase does not help here, either. Sigh...

@smarterclayton do you have any ideas why oc rsh dc/docker-registry cat config.yml in end-to-end test will hang after increasing RateLimitInterval and RateLimitBurst in journald.conf? I've tried manually changing those values and running oc rsh and it worked perfectly, but for some reason it will fail when part of end-to-end.

@ncdc

ncdc commented Apr 19, 2017 via email

Copy link
Copy Markdown
Contributor

@smarterclayton

smarterclayton commented Apr 19, 2017 via email

Copy link
Copy Markdown
Contributor

@soltysh

soltysh commented Apr 20, 2017

Copy link
Copy Markdown
Contributor Author

The symptoms are as follows, the end-to-end will hang (not reacting to any sort of input), openshift seems to be working correctly. After some time docker daemon will hang (not reacting to any docker commands), and only restarting the daemon helps with it. I've collected some stack dumps and I'll be going through them today, with hope to find something useful.

@ncdc

ncdc commented Apr 26, 2017

Copy link
Copy Markdown
Contributor

If you can reliably reproduce, make sure you talk to @jwhonce @nalind

@openshift-bot openshift-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 30, 2017
@openshift-bot openshift-bot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels May 19, 2017
@openshift-bot openshift-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 1, 2017
@smarterclayton

Copy link
Copy Markdown
Contributor

Getting stable tests is p0.

@soltysh
soltysh force-pushed the issue12558 branch 2 times, most recently from b816dd0 to b180270 Compare June 6, 2017 15:35
@soltysh soltysh changed the title [DO_NOT_MERGE] Increase journald rate limiter when running test-end-to-end-docker.sh Increase journald rate limiter when running test-end-to-end-docker.sh Jun 7, 2017
@soltysh

soltysh commented Jun 7, 2017

Copy link
Copy Markdown
Contributor Author

It looks like the problem previously was that docker does not react well to restarting journald, so I've added restarting docker after restarting journald, as well. Seems to be working, let's give it a try.
/me crosses fingers
[test]

@soltysh

soltysh commented Jun 7, 2017

Copy link
Copy Markdown
Contributor Author

Fixed package typo in UPSTEAM cherry-pick commit. Waiting for green tests.

@soltysh

soltysh commented Jun 7, 2017

Copy link
Copy Markdown
Contributor Author

Flake #14434.
[test]

Comment thread hack/test-end-to-end-docker.sh Outdated
${USE_SUDO:+sudo} systemctl restart systemd-journald.service
# Docker has "some" problems when journald is restarted, so we need to
# restart docker, as well.
${USE_SUDO:+sudo} systemctl restart docker.service

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is fairly invasive. But I don't have a better place for it.

Also, please ensure that you're actually on a system with systemctl, i.e. macs.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Should be fixed, I've added os::util::ensure::system_binary_exists 'systemctl' checks around these calls.

@smarterclayton

Copy link
Copy Markdown
Contributor

Removing LGTM, this breaks macs.

@soltysh

soltysh commented Jun 7, 2017

Copy link
Copy Markdown
Contributor Author

Flke #10773.

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin test up to b34ba02

@smarterclayton

Copy link
Copy Markdown
Contributor

LGTM

@openshift-bot

Copy link
Copy Markdown
Contributor

@smarterclayton

Copy link
Copy Markdown
Contributor

Going to the head of the line

@smarterclayton

Copy link
Copy Markdown
Contributor

Does not conflict with the PR being merged right now. Moving to the head of the line to fix flakes.

@smarterclayton
smarterclayton merged commit 3c221d5 into openshift:master Jun 7, 2017
@stevekuznetsov

Copy link
Copy Markdown
Contributor

Nice

@soltysh

soltysh commented Jun 8, 2017

Copy link
Copy Markdown
Contributor Author

img

@soltysh
soltysh deleted the issue12558 branch June 8, 2017 05:10
@mfojtik

mfojtik commented Jun 8, 2017

Copy link
Copy Markdown
Contributor

\o/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants