Skip to content

fix for tls handshake timeout flakes with jenkins pipelines - #14013

Merged
openshift-bot merged 1 commit into
openshift:masterfrom
gabemontero:maven-ext-test-dbg
Jun 23, 2017
Merged

openshift-bot merged 1 commit into
openshift:masterfrom
gabemontero:maven-ext-test-dbg

Conversation

@gabemontero

@gabemontero gabemontero commented May 2, 2017 •

Copy link
Copy Markdown
Contributor

Fixes #13984

@bparees ptal

@bparees

bparees commented May 3, 2017

Copy link
Copy Markdown
Contributor

i'm wary of merging this since it's part of our examples that we publicize to users. Can you run the relevant test against this PR a few times and see if it's manually recreatable instead of merging?

Also do we have the pod logs from the build pod that corresponded to the failed build? when i've seen binary build failures before, it's usually because the build pod never started (thus the oc client couldn't upload the content). not sure if that would manifest as the same error that was seen here though.

@gabemontero

gabemontero commented May 3, 2017 via email

Copy link
Copy Markdown
Contributor Author

@bparees

bparees commented May 3, 2017

Copy link
Copy Markdown
Contributor

See my analysis in the defect - since the post to the build config instantiate endpoint never got through there definitely is no build pod. Only gets and then the delete of the bc reached the master

ah, cool, yeah that certainly makes thing "simpler". At that point it's really a generic/client api hiccup... i'd have low expectations of us being able to recreate it. And of course the client side logs will only be half the picture, unfortunately, even if we get them.

@gabemontero

gabemontero commented May 3, 2017 via email

Copy link
Copy Markdown
Contributor Author

@gabemontero

Copy link
Copy Markdown
Contributor Author

test 1 passed

@gabemontero
gabemontero force-pushed the maven-ext-test-dbg branch from 655e92b to 2158f9c Compare May 3, 2017 21:01
@gabemontero

Copy link
Copy Markdown
Contributor Author

Well this is annoying.

The call to create the app:

STEP: calling oc new-app -f "/tmp/fixture-testdata-dir494027351/examples/jenkins/pipeline/maven-pipeline.yaml"

Is not picking up the change I introduced to maven-pipeline.yaml with this PR. When dumping the job output irregardless of any failures, the --loglevel=10 addition I made is missing:

[Pipeline] stage
[Pipeline] { (Build Image)
[Pipeline] unstash
[Pipeline] sh
[workspace] Running shell script
+ oc start-build openshift-jee-sample-docker --from-file=target/ROOT.war --follow -n extended-test-jenkins-pipeline-krg52-j8z3d
Uploading file "target/ROOT.war" as binary input for the build ...

I wonder if this is some test fixture / bindata hoopla. Next layer of the onion (along with not being able to run extended tests via core.sh from my laptop - may try oc cluster up and core.sh without a server start).

@gabemontero

Copy link
Copy Markdown
Contributor Author

Yeah on my local system, I had to run hack/generate-bindata separately before running the extended test to get my change to the template picked up. I would have thought that would have occurred after the make release I did. Certainly it does not seem to be happening with the PR build.

That said, though I have not reproduced the TLS error locally, based on the debug provided with a successful run, my pessimism has only increase wrt getting any useful data when the error does occur.

And there are the other flakes to pursue as well ... resetting, not sure yet where I'm going next with this thread.

@gabemontero

Copy link
Copy Markdown
Contributor Author

Actually, one slight correction on the usefulness of the trace. According to the round_trippers.go trace, curl -k is being used:

I0504 17:33:09.088858 470 round_trippers.go:299] curl -k .....

That would imply that NO SSL !! That can't be, right? Just a doc error ?

@gabemontero
gabemontero force-pushed the maven-ext-test-dbg branch from 2158f9c to 9f5ae79 Compare May 5, 2017 14:22
@gabemontero

Copy link
Copy Markdown
Contributor Author

[testextended][extended:core(openshift pipeline build)]

2 similar comments
@gabemontero

Copy link
Copy Markdown
Contributor Author

[testextended][extended:core(openshift pipeline build)]

@gabemontero

Copy link
Copy Markdown
Contributor Author

[testextended][extended:core(openshift pipeline build)]

@gabemontero

Copy link
Copy Markdown
Contributor Author

The SSL comm related failure was with our client plugin test this time, vs. the maven test I had added debug for.

Currently, the client plugin is still lacking in the "enable trace" area. It is a known to-do, arguably / technically under the final "product-tization" card (fyi - the sync plugin has some tracing but a once over of it and its fabric8io dependencies wouldn't hurt).

I'm going to start looking at this, for the client plugin initially, in the interim to assist in debugging these flakes.

Staring another test job in the interim.

@gabemontero

Copy link
Copy Markdown
Contributor Author

[testextended][extended:core(openshift pipeline build)]

@gabemontero

Copy link
Copy Markdown
Contributor Author

[testextended][extended:core(openshift pipeline build)]

7 similar comments
@gabemontero

Copy link
Copy Markdown
Contributor Author

[testextended][extended:core(openshift pipeline build)]

@gabemontero

Copy link
Copy Markdown
Contributor Author

[testextended][extended:core(openshift pipeline build)]

@gabemontero

Copy link
Copy Markdown
Contributor Author

[testextended][extended:core(openshift pipeline build)]

@gabemontero

Copy link
Copy Markdown
Contributor Author

[testextended][extended:core(openshift pipeline build)]

@gabemontero

Copy link
Copy Markdown
Contributor Author

[testextended][extended:core(openshift pipeline build)]

@gabemontero

Copy link
Copy Markdown
Contributor Author

[testextended][extended:core(openshift pipeline build)]

@gabemontero

Copy link
Copy Markdown
Contributor Author

[testextended][extended:core(openshift pipeline build)]

@gabemontero

Copy link
Copy Markdown
Contributor Author

The failure from https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin_extended/329/
looks to be similar in theme to #14093

The build timed out waiting on the mongo deployment, and when we visit the events, we see:

May  7 20:31:15.541: INFO: At 2017-05-07 20:21:45.636212169 -0400 EDT - event for mongodb-1-deploy: {kubelet 172.18.15.4} FailedMount: Unable to mount volumes for pod "mongodb-1-deploy_extended-test-jenkins-pipeline-5xgpj-6xdz5(faa62892-3383-11e7-af33-0e202f6a6b60)": timeout expired waiting for volumes to attach/mount for pod "extended-test-jenkins-pipeline-5xgpj-6xdz5"/"mongodb-1-deploy". list of unattached/unmounted volumes=[deployer-token-jrl1w]
May  7 20:31:15.541: INFO: At 2017-05-07 20:21:45.636327995 -0400 EDT - event for mongodb-1-deploy: {kubelet 172.18.15.4} FailedSync: Error syncing pod, skipping: timeout expired waiting for volumes to attach/mount for pod "extended-test-jenkins-pipeline-5xgpj-6xdz5"/"mongodb-1-deploy". list of unattached/unmounted volumes=[deployer-token-jrl1w]

@gabemontero

Copy link
Copy Markdown
Contributor Author

[testextended][extended:core(openshift pipeline build)]

@gabemontero

Copy link
Copy Markdown
Contributor Author

The failed run https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin_extended/336/ hit the concurrent bc update failure Jim is working on, and then the FailedMount error on the mongodb deployment previously noted.

@gabemontero

Copy link
Copy Markdown
Contributor Author

[testextended][extended:core(openshift pipeline build)]

@gabemontero

Copy link
Copy Markdown
Contributor Author

[testextended]

2 similar comments
@gabemontero

Copy link
Copy Markdown
Contributor Author

[testextended]

@gabemontero

Copy link
Copy Markdown
Contributor Author

[testextended]

@gabemontero

Copy link
Copy Markdown
Contributor Author

The ext test failure was NOT a TLS handshake timeout error or similar such.

The oc run jenkins-second-deployment --image=docker.io/openshift/jenkins-2-centos7:latest --dry-run call failed with an add error: unknown type &v1.DeploymentConfig

Off hand, I'm wondering if the bump in oc version that happened today had any unexpected results. @bparees ?

I'll do some manual testing tomorrow to confirm / deny. Still moving forward with this PRs changes (with some minor cleanup I'm about to push) as the fix.

@bparees

bparees commented Jun 22, 2017

Copy link
Copy Markdown
Contributor

Off hand, I'm wondering if the bump in oc version that happened today had any unexpected results. @bparees ?

it seems plausible, if so it should be a consistent failure though, so if you get a second run w/ that failure, we should rollback the oc version bump until we get a fix for whatever is going wrong in the oc client (I suspect it's already fixed in origin master, just probably broken in the release that was done)

@bparees

bparees commented Jun 22, 2017

Copy link
Copy Markdown
Contributor

not that i'm necessarily suggesting removing them, but do you think we even need the retries now that you've bumped the memory?

@gabemontero

gabemontero commented Jun 22, 2017 via email

Copy link
Copy Markdown
Contributor Author

@bparees

bparees commented Jun 22, 2017

Copy link
Copy Markdown
Contributor

Ok, assuming we think the memory changes get us back to 99% reliability, I guess i'm in favor of dropping the retries in order to keep the examples clean for users.

@gabemontero gabemontero changed the title debug for binary build tls handshake timeout flake fix for tls handshake timeout flakes with jenkins pipelines Jun 22, 2017
…mple-docker start/verify build; add master stack dump util

switch to native mem tracking
bump pipeline tests jenkins container mem based on latest native mem analysis
@gabemontero

Copy link
Copy Markdown
Contributor Author

update pushed

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin testextended up to 8b8a32f

@bparees

bparees commented Jun 22, 2017

Copy link
Copy Markdown
Contributor

lgtm. merge on passing test?

@bparees bparees self-assigned this Jun 22, 2017
@gabemontero

Copy link
Copy Markdown
Contributor Author

cool / thx, and yes, if tests passes or if we hit another known flake

@openshift-bot

Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/testextended SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin_extended/688/) (Base Commit: c015a70) (PR Branch Commit: 8b8a32f) (Extended Tests: core(openshift pipeline build))

@gabemontero

Copy link
Copy Markdown
Contributor Author

hey hey .... success .... let's put this #$%^$#% to bed

@bparees

bparees commented Jun 22, 2017

Copy link
Copy Markdown
Contributor

[merge][severity:lowrisk]

@openshift-bot

Copy link
Copy Markdown
Contributor

[Test]ing while waiting on the merge queue

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin test up to 8b8a32f

@openshift-bot

Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin/2520/) (Base Commit: 4423ff5) (PR Branch Commit: 8b8a32f)

@gabemontero

Copy link
Copy Markdown
Contributor Author

on the merge job, test_pull_request_origin_extended_networking_minimal failed, timing out waiting for the cluster to come up:

[ERROR] Timeout waiting for 3 nodes to report readiness
[ERROR] PID 23850: hack/dind-cluster.sh:41: `return 1` exited with status 1.
[INFO] 		Stack Trace: 
[INFO] 		  1: hack/dind-cluster.sh:41: `return 1`
[INFO] 		  2: hack/dind-cluster.sh:121: wait-for-cluster
[INFO] 		  3: hack/dind-cluster.sh:636: start
[INFO]   Exiting with code 1.
[INFO] Saving cluster configuration
[ERROR] Failed to deploy cluster for plugin: {multitenant}

If there is a known flake I couldn't find it.

Opened flake #14857

@bparees please repost merge comment or hit merge button given prior test results / nature of this change.

@bparees

bparees commented Jun 23, 2017

Copy link
Copy Markdown
Contributor

[merge]

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin merge up to 8b8a32f

@openshift-bot

openshift-bot commented Jun 23, 2017 •

Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin/1102/) (Base Commit: 1b8ade7) (PR Branch Commit: 8b8a32f) (Extended Tests: lowrisk) (Image: devenv-rhel7_6393)

@openshift-bot
openshift-bot merged commit 1786e97 into openshift:master Jun 23, 2017
@gabemontero
gabemontero deleted the maven-ext-test-dbg branch June 25, 2017 16:51
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.

4 participants