Bug 1500242 - Failed to tag image via jenkin plugin in jenkins1 and jenkins2
Summary: Failed to tag image via jenkin plugin in jenkins1 and jenkins2
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: ImageStreams
Version: 3.7.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 3.7.0
Assignee: Gabe Montero
QA Contact: Dongbo Yan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-10 09:22 UTC by XiuJuan Wang
Modified: 2017-11-28 22:15 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
undefined
Clone Of:
Environment:
Last Closed: 2017-11-28 22:15:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2017:3188 0 normal SHIPPED_LIVE Moderate: Red Hat OpenShift Container Platform 3.7 security, bug, and enhancement update 2017-11-29 02:34:54 UTC

Description XiuJuan Wang 2017-10-10 09:22:37 UTC
Description of problem:
Failed to tag image via jenkin plugin in jenkins1 and jenkins2 

Version-Release number of selected component (if applicable):
brew-/jenkins-2-rhel7 65736a6a5338
brew-/jenkins-1-rhel7 357758b6db16
openshift sync plugin  0.1.24

How reproducible:
always

Steps to Reproduce:
1.Create a jenkins app 
2.Create a imagestream ruby in project
3.Go to jenkins webconsole, then create a free style item.
"Add build step"---->"Tag Openshift Image " with parameters
4.Trigger job

Actual results:

failed to tag image with below error.

Starting "Tag OpenShift Image" with the source [image stream:tag] "ruby:latest" from the project "9ix3f" and destination stream(s) "newimage" with tag(s) "newtag" from the project "9ix3f".


Starting "Create OpenShift Resource(s)" with the project "9ix3f".
com.openshift.restclient.NotFoundException: Not Found
	at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.createOpenShiftException(ResponseCodeInterceptor.java:112)
	at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.intercept(ResponseCodeInterceptor.java:65)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
	at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:170)
	at okhttp3.RealCall.execute(RealCall.java:60)
	at com.openshift.jenkins.plugins.pipeline.model.IOpenShiftPlugin.httpGet(IOpenShiftPlugin.java:720)
	at com.openshift.jenkins.plugins.pipeline.model.IOpenShiftApiObjHandler.fetchApiJsonFromApiServer(IOpenShiftApiObjHandler.java:23)
	at com.openshift.jenkins.plugins.pipeline.model.IOpenShiftApiObjHandler.updateApiTypes(IOpenShiftApiObjHandler.java:66)
	at com.openshift.jenkins.plugins.pipeline.model.IOpenShiftCreator.coreLogic(IOpenShiftCreator.java:69)
	at com.openshift.jenkins.plugins.pipeline.model.IOpenShiftImageTagger.coreLogic(IOpenShiftImageTagger.java:245)
	at com.openshift.jenkins.plugins.pipeline.model.IOpenShiftPlugin.doItCore(IOpenShiftPlugin.java:309)
	at com.openshift.jenkins.plugins.pipeline.model.IOpenShiftPlugin.doIt(IOpenShiftPlugin.java:327)
	at com.openshift.jenkins.plugins.pipeline.OpenShiftBaseStep.perform(OpenShiftBaseStep.java:81)
	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
	at hudson.model.Build$BuildExecution.build(Build.java:206)
	at hudson.model.Build$BuildExecution.doRun(Build.java:163)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
	at hudson.model.Run.execute(Run.java:1728)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:98)
	at hudson.model.Executor.run(Executor.java:405)
ERROR: "Tag OpenShift Image" failed
Finished: FAILURE

Expected results:
Should tag image successfully

Additional info:

Comment 1 Gabe Montero 2017-10-10 18:01:07 UTC
Based on the line numbers of the stack trace, this was ran against openshift pipeline plugin 1.0.49.

This is in fact https://github.com/openshift/origin/issues/15823 which was fixed with commit 91d93763ec2189f4b916974baa9098d1f2c780da and incorporated into v1.0.50.

The latest version of openshift-pipeline is in fact v1.0.52.

Brew task https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=14178928 from https://buildvm.openshift.eng.bos.redhat.com:8443/job/devex/job/devex%252Fjenkins-plugins/6/console should have generated newer versions of the plugins and openshift jenkins rhel image on brew.

Let us know XiuJuan Wang/Dangbo Yan if you can't find these later versions on brew, and we'll work with Justin Pierce to sort out what is going on.

Comment 2 XiuJuan Wang 2017-10-11 07:29:23 UTC
Thanks,the latest jenkins-2-rhel7 has installed openshift-pipeline v1.0.52.
jenkins-1-rhel7 images install v1.0.47, but can upgrade to v1.0.52.

And with openshift-pipeline v1.0.52, could tag image via jenkins job successfully

Comment 3 Gabe Montero 2017-10-11 13:37:47 UTC
Good news thanks XiuJuan !

and thanks Ben for the prior bugzilla state correction

Comment 4 Gabe Montero 2017-10-11 14:03:04 UTC
FYI, docs are not needed here because:

a) the problem was introduced in an openshift/origin 3.7 rebase change that no longer tolerated an http url that accidentally had "//" in the URI ... running against openshift 3.6.x works fine
b) we fixed it in the 3.7 timeframe prior to 3.7 GA

Comment 7 errata-xmlrpc 2017-11-28 22:15:54 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2017:3188


Note You need to log in before you can comment on or make changes to this bug.