Skip to content

Fix extended networking service tests to retry updates on conflict - #14201

Merged
openshift-bot merged 1 commit into
openshift:masterfrom
danwinship:service-test-retry-update
May 20, 2017
Merged

openshift-bot merged 1 commit into
openshift:masterfrom
danwinship:service-test-retry-update

Conversation

@danwinship

Copy link
Copy Markdown
Contributor

Service tests are currently flaking because apparently the endpoints controller believes that there are no pods (even un-ready ones) backing the service sometimes:

May 12 20:32:13 nettest-master openshift[137]: I0512 20:32:13.660931     137 endpoints_controller.go:445] Update endpoints for e2e-tests-net-services1-jnk1d/service-8nc7r, ready: 0 not ready: 0

The code in the test updates the pod without retrying-on-failure; something must have changed elsewhere recently that causes some other part of the code to update new pods immediately after creation (or at least changed the timing of an existing potential conflict that we were reliably avoiding).

Fixes #14197

(hopefully)

@openshift/networking @smarterclayton @stevekuznetsov

@stevekuznetsov

Copy link
Copy Markdown
Contributor

@ncdc does any of this ring a bell? did the rebase land something like this? Do we need to update other tests that do similar things?

@ncdc

ncdc commented May 15, 2017

Copy link
Copy Markdown
Contributor

@stevekuznetsov retrying on conflict is generally a good thing to do. I don't recall offhand what, if anything, might have started mutating the pod in 1.6. You can check the master api logs for PUT and PATCH requests and see if you can find a culprit.

@danwinship

Copy link
Copy Markdown
Contributor Author

Do we need to update other tests that do similar things?

Everything is supposed to be retrying-on-update anyway. Hopefully the reason it didn't break anywhere else is because everywhere else was already doing it right.

You can check the master api logs for PUT and PATCH requests and see if you can find a culprit.

There are 2 PUTs to the pod's /status right after creation, but I don't know if that's new.

@imcsk8

imcsk8 commented May 16, 2017

Copy link
Copy Markdown
Contributor

Code looks good. Will test manually

@knobunc knobunc left a comment

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.

Seems reasonable. LGTM

@knobunc

knobunc commented May 17, 2017

Copy link
Copy Markdown
Contributor

[merge]

@openshift-bot

Copy link
Copy Markdown
Contributor

[Test]ing while waiting on the merge queue

@danwinship
danwinship force-pushed the service-test-retry-update branch from ca9191a to e2845b5 Compare May 18, 2017 14:12
@danwinship

danwinship commented May 18, 2017 •

Copy link
Copy Markdown
Contributor Author

flake #14245 [test]

@danwinship

Copy link
Copy Markdown
Contributor Author

flake #14236 [test]

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin test up to e2845b5

@openshift-bot

Copy link
Copy Markdown
Contributor

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin merge up to e2845b5

@openshift-bot

openshift-bot commented May 20, 2017 •

Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin/720/) (Base Commit: cced181) (Image: devenv-rhel7_6247)

@openshift-bot
openshift-bot merged commit 932e9dd into openshift:master May 20, 2017
@danwinship
danwinship deleted the service-test-retry-update branch May 20, 2017 17:08
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.

6 participants