Description of problem: jenkins master pod has hudson.plugins.git exception leading to build pipelines termination and fail. ==================================================== java.lang.IllegalArgumentException: hostname can't be null at java.base/java.net.InetSocketAddress.checkHost(InetSocketAddress.java:149) at java.base/java.net.InetSocketAddress.<init>(InetSocketAddress.java:216) at hudson.ProxyConfiguration.createProxy(ProxyConfiguration.java:266) at hudson.ProxyConfiguration.createProxy(ProxyConfiguration.java:256) at hudson.ProxyConfiguration.open(ProxyConfiguration.java:307) at hudson.model.DownloadService.loadJSON(DownloadService.java:109) at hudson.model.UpdateSite.updateDirectlyNow(UpdateSite.java:212) at hudson.model.UpdateSite.updateDirectlyNow(UpdateSite.java:207) at hudson.PluginManager.checkUpdatesServer(PluginManager.java:1767) at hudson.util.Retrier.start(Retrier.java:63) at hudson.PluginManager.doCheckUpdatesServer(PluginManager.java:1738) at hudson.PluginManager$doCheckUpdatesServer.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117) at update-center-init$1$2$3.call(update-center-init.groovy:12) at update-center-init$1$2$3.call(update-center-init.groovy) at hudson.security.ACL.impersonate(ACL.java:367) at hudson.security.ACL$impersonate.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:133) at update-center-init$1$2.run(update-center-init.groovy:9) ===================================================================== 2020-08-16 06:27:21 SEVERE hudson.PluginManager doCheckUpdatesServer Error checking update sites for 1 attempt(s). Last exception was: IllegalArgumentException: hostname can't be null =========================================================================== Version-Release number of selected component (if applicable): 4.6.0-0.nightly-2020-08-14-191609 How reproducible: 1- oc new-app jenkins-ephemeral 2- oc new-app -f https://raw.githubusercontent.com/openshift/origin/master/examples/jenkins/pipeline/maven-pipeline.yaml 3- oc start-build openshift-jee-sample Steps to Reproduce: 1- oc new-app jenkins-ephemeral 2- oc new-app -f https://raw.githubusercontent.com/openshift/origin/master/examples/jenkins/pipeline/maven-pipeline.yaml 3- oc start-build openshift-jee-sample Actual results: ================================================================== Cloning the remote Git repository ERROR: Error cloning remote repo 'origin' hudson.plugins.git.GitException: Failed to create http proxy uri at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2038) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:81) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:569) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:798) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:161) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:154) at hudson.remoting.UserRequest.perform(UserRequest.java:211) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:117) at java.base/java.lang.Thread.run(Thread.java:834) Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from ip-10-129-2-13.us-east-2.compute.internal/10.129.2.13:60446 at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1788) at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356) at hudson.remoting.Channel.call(Channel.java:998) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:132) at com.sun.proxy.$Proxy116.execute(Unknown Source) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1122) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1167) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:124) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:93) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:80) at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ... 1 more Caused by: java.net.URISyntaxException: Expected scheme-specific part at index 5: http: at java.base/java.net.URI$Parser.fail(URI.java:2913) at java.base/java.net.URI$Parser.failExpecting(URI.java:2919) at java.base/java.net.URI$Parser.parse(URI.java:3119) at java.base/java.net.URI.<init>(URI.java:685) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2034) ... 14 more [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // node [Pipeline] } [Pipeline] // timeout [Pipeline] echo in catch block [Pipeline] echo Caught: hudson.AbortException: Error cloning remote repo 'origin' [Pipeline] End of Pipeline ERROR: Error cloning remote repo 'origin' Finished: FAILURE =========================================================================== Expected results: The builds must not through exceptions and continue to run with success. Additional info: ==================================== oc new-app -f https://raw.githubusercontent.com/openshift/origin/master/examples/jenkins/pipeline/samplepipeline.yaml =============================================================================== Logs:- ============= Caught: hudson.AbortException: rollout:latest returned an error; {err=Error from server (BadRequest): cannot trigger a deployment for "nodejs-mongodb-example" because it contains unresolved images , verb=rollout, cmd=oc --server=https://172.30.0.1:443 --certificate-authority=/var/run/secrets/kubernetes.io/serviceaccount/ca.crt --namespace=jenkins-test1 --token=XXXXX rollout latest deploymentconfig/nodejs-mongodb-example , out=, status=1} [Pipeline] End of Pipeline ERROR: rollout:latest returned an error; {err=Error from server (BadRequest): cannot trigger a deployment for "nodejs-mongodb-example" because it contains unresolved images , verb=rollout, cmd=oc --server=https://172.30.0.1:443 --certificate-authority=/var/run/secrets/kubernetes.io/serviceaccount/ca.crt --namespace=jenkins-test1 --token=XXXXX rollout latest deploymentconfig/nodejs-mongodb-example , out=, status=1} Finished: FAILURE ===============================================================
VERIFIED ============================================= jsingh@localhost ~/Downloads/openshift-install-linux-4.6.0-0.nightly-2020-08-18-165040 oc new-project jenkins-test Now using project "jenkins-test" on server "https://api.jenkins-2020-08-18-165040.qe.devcluster.openshift.com:6443". You can add applications to this project with the 'new-app' command. For example, try: oc new-app django-psql-example to build a new example application in Python. Or use kubectl to deploy a simple Kubernetes application: kubectl create deployment hello-node --image=gcr.io/hello-minikube-zero-install/hello-node jsingh@localhost ~/Downloads/openshift-install-linux-4.6.0-0.nightly-2020-08-18-165040 oc new-app jenkins-ephemeral --> Deploying template "openshift/jenkins-ephemeral" to project jenkins-test =============================================================================================================================== jsingh@localhost ~/Downloads/openshift-install-linux-4.6.0-0.nightly-2020-08-18-165040 oc new-app -f https://raw.githubusercontent.com/openshift/origin/master/examples/jenkins/pipeline/maven-pipeline.yaml --> Deploying template "jenkins-test/maven-pipeline" for "https://raw.githubusercontent.com/openshift/origin/master/examples/jenkins/pipeline/maven-pipeline.yaml" to project jenkins-test * With parameters: * Application Name=openshift-jee-sample * Source URL=https://github.com/openshift/openshift-jee-sample.git * Source Ref=master * GitHub Webhook Secret=kI0QmrOr3wl7dbtS5fklYwqYToumnVCXXdaba4VH # generated * Generic Webhook Secret=rIPq7ah0BJkRFGFuLtRirgGq26Emunxx0o1sfTfB # generated --> Creating resources ... imagestream.image.openshift.io "openshift-jee-sample" created imagestream.image.openshift.io "wildfly" created buildconfig.build.openshift.io "openshift-jee-sample" created buildconfig.build.openshift.io "openshift-jee-sample-docker" created deploymentconfig.apps.openshift.io "openshift-jee-sample" created service "openshift-jee-sample" created route.route.openshift.io "openshift-jee-sample" created --> Success Use 'oc start-build openshift-jee-sample' to start a build. Use 'oc start-build openshift-jee-sample-docker' to start a build. Access your application via route 'openshift-jee-sample-jenkins-test.apps.jenkins-2020-08-18-165040.qe.devcluster.openshift.com' Run 'oc status' to view your app. jsingh@localhost ~/Downloads/openshift-install-linux-4.6.0-0.nightly-2020-08-18-165040 oc start-build openshift-jee-sample build.build.openshift.io/openshift-jee-sample-1 started jsingh@localhost ~/Downloads/openshift-install-linux-4.6.0-0.nightly-2020-08-18-165040 oc get pods NAME READY STATUS RESTARTS AGE jenkins-1-deploy 0/1 Completed 0 3m45s jenkins-1-wjf9j 1/1 Running 0 3m41s jsingh@localhost ~/Downloads/openshift-install-linux-4.6.0-0.nightly-2020-08-18-165040 oc get pods -w NAME READY STATUS RESTARTS AGE jenkins-1-deploy 0/1 Completed 0 3m50s jenkins-1-wjf9j 1/1 Running 0 3m46s maven-gjqlp 0/1 Pending 0 0s maven-gjqlp 0/1 Pending 0 0s maven-gjqlp 0/1 ContainerCreating 0 0s maven-gjqlp 0/1 ContainerCreating 0 2s maven-gjqlp 0/1 ContainerCreating 0 6s maven-gjqlp 1/1 Running 0 28s maven-gjqlp 1/1 Terminating 0 56s openshift-jee-sample-docker-1-build 0/1 Pending 0 0s openshift-jee-sample-docker-1-build 0/1 Pending 0 0s openshift-jee-sample-docker-1-build 0/1 Init:0/2 0 0s maven-gjqlp 0/1 Terminating 0 60s openshift-jee-sample-docker-1-build 0/1 Init:0/2 0 2s openshift-jee-sample-docker-1-build 0/1 Init:0/2 0 6s maven-gjqlp 0/1 Terminating 0 66s maven-gjqlp 0/1 Terminating 0 66s openshift-jee-sample-docker-1-build 0/1 Init:0/2 0 11s openshift-jee-sample-docker-1-build 0/1 Init:1/2 0 12s openshift-jee-sample-docker-1-build 0/1 PodInitializing 0 13s openshift-jee-sample-docker-1-build 1/1 Running 0 14s openshift-jee-sample-docker-1-build 0/1 Completed 0 77s openshift-jee-sample-1-deploy 0/1 Pending 0 0s openshift-jee-sample-1-deploy 0/1 Pending 0 0s openshift-jee-sample-1-deploy 0/1 ContainerCreating 0 0s openshift-jee-sample-1-deploy 0/1 ContainerCreating 0 2s openshift-jee-sample-1-76nq6 0/1 Pending 0 0s openshift-jee-sample-1-76nq6 0/1 Pending 0 0s openshift-jee-sample-1-76nq6 0/1 ContainerCreating 0 0s openshift-jee-sample-1-deploy 1/1 Running 0 2s openshift-jee-sample-1-76nq6 0/1 ContainerCreating 0 2s openshift-jee-sample-1-76nq6 0/1 ContainerCreating 0 6s openshift-jee-sample-1-76nq6 0/1 Running 0 37s =================================================================================== jsingh@localhost ~/Downloads/openshift-install-linux-4.6.0-0.nightly-2020-08-18-165040 oc get pods NAME READY STATUS RESTARTS AGE jenkins-1-deploy 0/1 Completed 0 8m8s jenkins-1-wjf9j 1/1 Running 0 8m4s openshift-jee-sample-1-76nq6 1/1 Running 0 112s openshift-jee-sample-1-deploy 0/1 Completed 0 114s openshift-jee-sample-docker-1-build 0/1 Completed 0 3m12s =============================================================================== pipeline build succesful and dont see any SEVERE log in master pod
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 (OpenShift Container Platform 4.6 GA Images), 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/RHBA-2020:4196