Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-15447

fabric8 plugin fails when attempting to deploy springboot fuse app from local dev environment to OpenShift 4.6

    XMLWordPrintable

Details

    • False
    • False
    • % %
    • Undefined
    • Fuse On Openshift
    • Hide

      To recreate, clone

      https://github.com/fabric8-quickstarts/spring-boot-camel.git and follow the steps in the README to deploy the application to an OpenShift 4.6 cluster using

      mvn fabric8:deploy

      You also attempt to generate a simple fuse project using CodeReady Tooling 

      This is the information in the pom.xml to recreate

      <properties>
      <maven-surefire-plugin.version>2.19.1</maven-surefire-plugin.version>
      <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
      <maven-compiler-plugin.version>3.6.0</maven-compiler-plugin.version>
      <fuse.version>7.7.0.fuse-sb2-770010-redhat-00001</fuse.version>
      </properties>

      Show
      To recreate, clone https://github.com/fabric8-quickstarts/spring-boot-camel.git  and follow the steps in the README to deploy the application to an OpenShift 4.6 cluster using mvn fabric8:deploy You also attempt to generate a simple fuse project using CodeReady Tooling  This is the information in the pom.xml to recreate <properties> <maven-surefire-plugin.version>2.19.1</maven-surefire-plugin.version> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven-compiler-plugin.version>3.6.0</maven-compiler-plugin.version> <fuse.version> 7.7.0.fuse-sb2-770010-redhat-00001 </fuse.version> </properties>

    Description

      When running the fabric8 maven plugin to build/deploy/run from local developer environment to an OpenShift 4.6 cluster, the plugin fails with an error below. This worked in OpenShift 4.5

      The plugin creates the BuildConfig and kicks off the build on the OpenShift 4.6 cluster (so there is a workaround to deploy using 'oc new-app') but the plugin fails on the local developer terminal next on an cluster api service call

      F8: Starting Build camel-ose-springboot-xml-s2i [INFO] F8: Waiting for build camel-ose-springboot-xml-s2i-102 to complete... [DEBUG] Trying to configure client from Kubernetes config... [DEBUG] Trying to configure client from service account... [DEBUG] Trying to configure client namespace from Kubernetes service account namespace path... [DEBUG] Did not find service account namespace at: [/var/run/secrets/kubernetes.io/serviceaccount/namespace]. Ignoring. [INFO] F8: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"container \"sti-build\" in pod \"camel-ose-springboot-xml-s2i-102-build\" is waiting to start: PodInitializing","reason":"BadRequest","code":400} [DEBUG] Connecting websocket ... io.fabric8.kubernetes.client.dsl.internal.WatchConnectionManager@4769e70c [WARNING] Exec Failure: HTTP 503, Status: 503 - invalid upgrade response: status code 200 java.net.ProtocolException: Expected HTTP 101 response but was '503 Service Unavailable' at okhttp3.internal.ws.RealWebSocket.checkResponse(RealWebSocket.java:219) at okhttp3.internal.ws.RealWebSocket$2.onResponse(RealWebSocket.java:186) at okhttp3.RealCall$AsyncCall.execute(RealCall.java:153) at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) at java.base/java.lang.Thread.run(Thread.java:832) [DEBUG] Submitting reconnect task to the executor [DEBUG] Force closing the watch io.fabric8.kubernetes.client.dsl.internal.WatchConnectionManager@4769e70c [ERROR] F8: Failed to execute the build [Unable to build the image using the OpenShift build service] Exception in thread "OkHttp Dispatcher" [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 52.542 s [INFO] Finished at: 2020-11-16T14:44:30-05:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.jboss.redhat-fuse:fabric8-maven-plugin:7.7.0.fuse-770012-redhat-00003:build (default) on project camel-ose-springboot-xml: Failed to execute the build: Unable to build the image using the OpenShift build service: invalid upgrade response: status code 200 -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.jboss.redhat-fuse:fabric8-maven-plugin:7.7.0.fuse-770012-redhat-00003:build (default) on project camel-ose-springboot-xml: Failed to execute the build at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:215) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:957) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:289) at org.apache.maven.cli.MavenCli.main(MavenCli.java:193) 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:564) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347) Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to execute the build at io.fabric8.maven.plugin.mojo.build.BuildMojo.buildAndTag(BuildMojo.java:259) at io.fabric8.maven.docker.BuildMojo.executeInternal(BuildMojo.java:44) at io.fabric8.maven.plugin.mojo.build.BuildMojo.executeInternal(BuildMojo.java:236) at io.fabric8.maven.docker.AbstractDockerMojo.execute(AbstractDockerMojo.java:222) at io.fabric8.maven.plugin.mojo.build.BuildMojo.execute(BuildMojo.java:207) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210) ... 20 more java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@20856546[Not completed, task = java.util.concurrent.Executors$RunnableAdapter@3f101caf[Wrapped task = io.fabric8.kubernetes.client.dsl.internal.WatchConnectionManager$3@5c6a1591]] rejected from java.util.concurrent.ScheduledThreadPoolExecutor@6fc06570[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0] at java.base/java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2057) at java.base/java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:827) at java.base/java.util.concurrent.ScheduledThreadPoolExecutor.delayedExecute(ScheduledThreadPoolExecutor.java:340) at java.base/java.util.concurrent.ScheduledThreadPoolExecutor.schedule(ScheduledThreadPoolExecutor.java:562) at java.base/java.util.concurrent.ScheduledThreadPoolExecutor.submit(ScheduledThreadPoolExecutor.java:715) at java.base/java.util.concurrent.Executors$DelegatedExecutorService.submit(Executors.java:714) at io.fabric8.kubernetes.client.dsl.internal.WatchConnectionManager.scheduleReconnect(WatchConnectionManager.java:312) at io.fabric8.kubernetes.client.dsl.internal.WatchConnectionManager.access$800(WatchConnectionManager.java:47) at io.fabric8.kubernetes.client.dsl.internal.WatchConnectionManager$2.onFailure(WatchConnectionManager.java:217) at okhttp3.internal.ws.RealWebSocket.failWebSocket(RealWebSocket.java:546) at okhttp3.internal.ws.RealWebSocket$2.onResponse(RealWebSocket.java:188) at okhttp3.RealCall$AsyncCall.execute(RealCall.java:153) at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) at java.base/java.lang.Thread.run(Thread.java:832) Caused by: io.fabric8.maven.core.service.Fabric8ServiceException: Unable to build the image using the OpenShift build service at io.fabric8.maven.core.service.openshift.OpenshiftBuildService.build(OpenshiftBuildService.java:132) at io.fabric8.maven.plugin.mojo.build.BuildMojo.buildAndTag(BuildMojo.java:256) ... 26 more Caused by: io.fabric8.kubernetes.client.KubernetesClientException: invalid upgrade response: status code 200

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            rhn-support-adtaylor Gbenga Taylor
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: