Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1787405

Summary: 4.3 client plugin e2e currently broken
Product: OpenShift Container Platform Reporter: Gabe Montero <gmontero>
Component: JenkinsAssignee: Akram Ben Aissi <abenaiss>
Status: CLOSED UPSTREAM QA Contact: XiuJuan Wang <xiuwang>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.3.zCC: aos-bugs, eparis, pbhattac, scuppett, vbobade
Target Milestone: ---   
Target Release: 4.3.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-01-07 01:53:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Gabe Montero 2020-01-02 17:51:01 UTC
I've started to see consistent failures with the client plugin e2e's:

A snippet from the debug jenkins failure dump:

[Pipeline] echo
in catch block
[Pipeline] echo
Caught: hudson.AbortException: create returned an error;
{reference={}, err=Error from server (AlreadyExists): error when creating "https://raw.githubusercontent.com/openshift/nodejs-ex/master/openshift/templates/nodejs.json": templates.template.openshift.io "nodejs-example" already exists
, verb=create, cmd=oc --server=https://172.30.0.1:443 --certificate-authority=/var/run/secrets/kubernetes.io/serviceaccount/ca.crt --namespace=e2e-test-jenkins-pipeline-kbdph --token=XXXXX create -f https://raw.githubusercontent.com/openshift/nodejs-ex/master/openshift/templates/nodejs.json -o=name , out=, status=1}

[Pipeline] End of Pipeline
ERROR: create returned an error;
{reference={}, err=Error from server (AlreadyExists): error when creating "https://raw.githubusercontent.com/openshift/nodejs-ex/master/openshift/templates/nodejs.json": templates.template.openshift.io "nodejs-example" already exists
, verb=create, cmd=oc --server=https://172.30.0.1:443 --certificate-authority=/var/run/secrets/kubernetes.io/serviceaccount/ca.crt --namespace=e2e-test-jenkins-pipeline-kbdph --token=XXXXX create -f https://raw.githubusercontent.com/openshift/nodejs-ex/master/openshift/templates/nodejs.json -o=name , out=, status=1}

Finished: FAILURE

Instances of this:
- https://prow.svc.ci.openshift.org/view/gcs/origin-ci-test/pr-logs/pull/openshift_openshift-controller-manager/59/pull-ci-openshift-openshift-controller-manager-release-4.3-e2e-aws-proxy/16
- https://prow.svc.ci.openshift.org/view/gcs/origin-ci-test/pr-logs/pull/openshift_openshift-controller-manager/59/pull-ci-openshift-openshift-controller-manager-release-4.3-e2e-aws-builds/14

Comment 2 Gabe Montero 2020-01-06 16:18:15 UTC
@Steve - as this is a test case fix I'm good with it getting in sooner rather than later.  So if targeting to 4.3.0 enables that, great.

But of course if push comes to shove unless the test case problem is blocking an actual 4.3.0 GA fix, this should not block 4.3.0.  Given that, 
if targeting to 4.3.z makes more sense, please let us know.

Comment 3 Gabe Montero 2020-01-06 21:18:06 UTC
OK Steve and I talked in the hallway.

Since the jenkins job is "optional" wrt e2e jobs monitored for 4.3.0 GA, we can mark this 4.3.z

This only occurs in 4.3 currently because the 4.4 samples are updated to deal with nodejs EOL images in the nodejs imagestream.

The fix here is either
a) undo https://github.com/openshift/jenkins-client-plugin/pull/317 
b) or update that test to overrider the version parameter in the template and use the older nodejs version still available on 4.3
c) IF we decide to backport the nodejs EOL changes to 4.3 via https://bugzilla.redhat.com/show_bug.cgi?id=1788065 this should work on 4.3.z as well ... but that is not a given at this point

This bug is open to track a) or b) ... note, only a jenkins-client-plugin master branch PR is needed for a) and b) and updating the test shared across releases and we do not
have to go through the standard 4.x z stream cherry pick approval process for this test change.

Comment 4 Gabe Montero 2020-01-06 21:23:57 UTC
Sorry I may have gotten my client plugin PRS and nodejs in flight items confused

I is possible that https://github.com/openshift/jenkins-client-plugin/pull/318 may have fixed this issue

testing in https://github.com/openshift/openshift-controller-manager/pull/59 now ... if the e2e passes there, will close out

if not, I'll analyze, but I suspect the versioning situation noted in #Comment 3 may then take hold

reporting back in a bit