Uploaded image for project: 'Quarkus'
  1. Quarkus
  2. QUARKUS-1302

OpenShift: Deployments to OCP 3.11 stopped working and OCP 4.x are randomly failing too

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 2.2.5.GA, 2.2.5.CR2
    • 2.2.3.ER1, 2.2.3.GA
    • team/eng
    • None

    Description

      The deployments to OpenShift 3.11 using the Quarkus OpenShift extension always fails with:

      05:57:54.827 INFO  &amp#27;[32mmvn: [INFO] [io.quarkus.container.image.openshift.deployment.OpenshiftProcessor] lib/main/io.smallrye.common.smallrye-common-a
      ...[truncated 23241 chars]...
      y.run(EnhancedQueueExecutor.java:1478)&amp#27;[0m
      05:57:54.966 INFO  &amp#27;[32mmvn: 	at java.base/java.lang.Thread.run(Thread.java:834)&amp#27;[0m
      05:57:54.966 INFO  &amp#27;[32mmvn: 	at org.jboss.threads.JBossThread.run(JBossThread.java:501)&amp#27;[0m
      05:57:54.966 INFO  &amp#27;[32mmvn: Caused by: java.io.IOException: Pipe closed&amp#27;[0m
      05:57:54.966 INFO  &amp#27;[32mmvn: 	at java.base/java.io.PipedInputStream.read(PipedInputStream.java:307)&amp#27;[0m
      05:57:54.966 INFO  &amp#27;[32mmvn: 	at java.base/java.io.PipedInputStream.read(PipedInputStream.java:377)&amp#27;[0m
      05:57:54.966 INFO  &amp#27;[32mmvn: 	at java.base/sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284)&amp#27;[0m
      05:57:54.966 INFO  &amp#27;[32mmvn: 	at java.base/sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326)&amp#27;[0m
      05:57:54.966 INFO  &amp#27;[32mmvn: 	at java.base/sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)&amp#27;[0m
      05:57:54.966 INFO  &amp#27;[32mmvn: 	at java.base/java.io.InputStreamReader.read(InputStreamReader.java:181)&amp#27;[0m
      05:57:54.966 INFO  &amp#27;[32mmvn: 	at java.base/java.io.BufferedReader.fill(BufferedReader.java:161)&amp#27;[0m
      05:57:54.967 INFO  &amp#27;[32mmvn: 	at java.base/java.io.BufferedReader.readLine(BufferedReader.java:326)&amp#27;[0m
      05:57:54.967 INFO  &amp#27;[32mmvn: 	at java.base/java.io.BufferedReader.readLine(BufferedReader.java:392)&amp#27;[0m
      05:57:54.967 INFO  &amp#27;[32mmvn: 	at io.quarkus.container.image.openshift.deployment.OpenshiftProcessor.openshiftBuild(OpenshiftProcessor.java:444)&amp#27;[0m
      05:57:54.967 INFO  &amp#27;[32mmvn: 	... 25 more&amp#27;[0m
      05:57:54.967 INFO  &amp#27;[32mmvn: &amp#27;[0m
      05:57:54.967 INFO  &amp#27;[32mmvn:     at io.quarkus.runner.bootstrap.AugmentActionImpl.runAugment (AugmentActionImpl.java:415)&amp#27;[0m
      05:57:54.967 INFO  &amp#27;[32mmvn:     at io.quarkus.runner.bootstrap.AugmentActionImpl.createProductionApplication (AugmentActionImpl.java:202)&amp#27;[0m
      05:57:54.967 INFO  &amp#27;[32mmvn:     at io.quarkus.maven.BuildMojo.doExecute (BuildMojo.java:132)&amp#27;[0m
      05:57:54.967 INFO  &amp#27;[32mmvn:     at io.quarkus.maven.QuarkusBootstrapMojo.execute (QuarkusBootstrapMojo.java:125)&amp#27;[0m
      05:57:54.967 INFO  &amp#27;[32mmvn:     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)&amp#27;[0m
      05:57:54.967 INFO  &amp#27;[32mmvn:     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)&amp#27;[0m
      05:57:54.967 INFO  &amp#27;[32mmvn:     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)&amp#27;[0m
      05:57:54.967 INFO  &amp#27;[32mmvn:     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)&amp#27;[0m
      05:57:54.967 INFO  &amp#27;[32mmvn:     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)&amp#27;[0m
      05:57:54.967 INFO  &amp#27;[32mmvn:     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)&amp#27;[0m
      05:57:54.967 INFO  &amp#27;[32mmvn:     at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)&amp#27;[0m
      05:57:54.967 INFO  &amp#27;[32mmvn:     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)&amp#27;[0m
      05:57:54.967 INFO  &amp#27;[32mmvn:     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)&amp#27;[0m
      05:57:54.967 INFO  &amp#27;[32mmvn:     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)&amp#27;[0m
      05:57:54.967 INFO  &amp#27;[32mmvn:     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)&amp#27;[0m
      05:57:54.968 INFO  &amp#27;[32mmvn:     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)&amp#27;[0m
      05:57:54.968 INFO  &amp#27;[32mmvn:     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)&amp#27;[0m
      05:57:54.968 INFO  &amp#27;[32mmvn:     at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)&amp#27;[0m
      05:57:54.968 INFO  &amp#27;[32mmvn:     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)&amp#27;[0m
      05:57:54.968 INFO  &amp#27;[32mmvn:     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)&amp#27;[0m
      05:57:54.968 INFO  &amp#27;[32mmvn:     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)&amp#27;[0m
      05:57:54.968 INFO  &amp#27;[32mmvn:     at java.lang.reflect.Method.invoke (Method.java:566)&amp#27;[0m
      05:57:54.968 INFO  &amp#27;[32mmvn:     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)&amp#27;[0m
      05:57:54.968 INFO  &amp#27;[32mmvn:     at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)&amp#27;[0m
      05:57:54.968 INFO  &amp#27;[32mmvn:     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)&amp#27;[0m
      05:57:54.968 INFO  &amp#27;[32mmvn:     at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)&amp#27;[0m
      05:57:54.968 INFO  &amp#27;[32mmvn: Caused by: io.quarkus.builder.BuildException: Build failure: Build failed due to errors&amp#27;[0m
      05:57:54.968 INFO  &amp#27;[32mmvn: 	[error]: Build step io.quarkus.container.image.openshift.deployment.OpenshiftProcessor#openshiftBuildFromJar threw an exception: java.lang.RuntimeException: Execution of openshift build failed. See build output for more details&amp#27;[0m
      05:57:54.968 INFO  &amp#27;[32mmvn: 	at io.quarkus.container.image.openshift.deployment.OpenshiftProcessor.openshiftException(OpenshiftProcessor.java:502)&amp#27;[0m
      05:57:54.968 INFO  &amp#27;[32mmvn: 	at io.quarkus.container.image.openshift.deployment.OpenshiftProcessor.openshiftBuild(OpenshiftProcessor.java:448)&amp#27;[0m
      05:57:54.968 INFO  &amp#27;[32mmvn: 	at io.quarkus.container.image.openshift.deployment.OpenshiftProcessor.lambda$openshiftBuild$10(OpenshiftProcessor.java:401)&amp#27;[0m
      05:57:54.968 INFO  &amp#27;[32mmvn: 	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)&amp#27;[0m
      05:57:54.968 INFO  &amp#27;[32mmvn: 	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)&amp#27;[0m
      05:57:54.968 INFO  &amp#27;[32mmvn: 	at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177)&amp#27;[0m
      05:57:54.969 INFO  &amp#27;[32mmvn: 	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655)&amp#27;[0m
      05:57:54.969 INFO  &amp#27;[32mmvn: 	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)&amp#27;[0m
      05:57:54.969 INFO  &amp#27;[32mmvn: 	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)&amp#27;[0m
      05:57:54.969 INFO  &amp#27;[32mmvn: 	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)&amp#27;[0m
      05:57:54.969 INFO  &amp#27;[32mmvn: 	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)&amp#27;[0m
      05:57:54.969 INFO  &amp#27;[32mmvn: 	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)&amp#27;[0m
      05:57:54.969 INFO  &amp#27;[32mmvn: 	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497)&amp#27;[0m
      05:57:54.969 INFO  &amp#27;[32mmvn: 	at io.quarkus.container.image.openshift.deployment.OpenshiftProcessor.openshiftBuild(OpenshiftProcessor.java:401)&amp#27;[0m
      05:57:54.969 INFO  &amp#27;[32mmvn: 	at io.quarkus.container.image.openshift.deployment.OpenshiftProcessor.createContainerImage(OpenshiftProcessor.java:345)&amp#27;[0m
      05:57:54.969 INFO  &amp#27;[32mmvn: 	at io.quarkus.container.image.openshift.deployment.OpenshiftProcessor.openshiftBuildFromJar(OpenshiftProcessor.java:252)&amp#27;[0m
      05:57:54.969 INFO  &amp#27;[32mmvn: 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&amp#27;[0m
      05:57:54.969 INFO  &amp#27;[32mmvn: 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)&amp#27;[0m
      05:57:54.969 INFO  &amp#27;[32mmvn: 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&amp#27;[0m
      05:57:54.969 INFO  &amp#27;[32mmvn: 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)&amp#27;[0m
      05:57:54.969 INFO  &amp#27;[32mmvn: 	at io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:820)&amp#27;[0m
      05:57:54.969 INFO  &amp#27;[32mmvn: 	at io.quarkus.builder.BuildContext.run(BuildContext.java:277)&amp#27;[0m
      05:57:54.970 INFO  &amp#27;[32mmvn: 	at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)&amp#27;[0m
      05:57:54.970 INFO  &amp#27;[32mmvn: 	at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449)&amp#27;[0m
      05:57:54.970 INFO  &amp#27;[32mmvn: 	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1478)&amp#27;[0m
      05:57:54.970 INFO  &amp#27;[32mmvn: 	at java.base/java.lang.Thread.run(Thread.java:834)&amp#27;[0m
      05:57:54.970 INFO  &amp#27;[32mmvn: 	at org.jboss.threads.JBossThread.run(JBossThread.java:501)&amp#27;[0m
      05:57:54.970 INFO  &amp#27;[32mmvn: Caused by: java.io.IOException: Pipe closed&amp#27;[0m
      05:57:54.970 INFO  &amp#27;[32mmvn: 	at java.base/java.io.PipedInputStream.read(PipedInputStream.java:307)&amp#27;[0m
      05:57:54.970 INFO  &amp#27;[32mmvn: 	at java.base/java.io.PipedInputStream.read(PipedInputStream.java:377)&amp#27;[0m
      05:57:54.970 INFO  &amp#27;[32mmvn: 	at java.base/sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284)&amp#27;[0m
      05:57:54.970 INFO  &amp#27;[32mmvn: 	at java.base/sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326)&amp#27;[0m
      05:57:54.970 INFO  &amp#27;[32mmvn: 	at java.base/sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)&amp#27;[0m
      05:57:54.970 INFO  &amp#27;[32mmvn: 	at java.base/java.io.InputStreamReader.read(InputStreamReader.java:181)&amp#27;[0m
      05:57:54.970 INFO  &amp#27;[32mmvn: 	at java.base/java.io.BufferedReader.fill(BufferedReader.java:161)&amp#27;[0m
      05:57:54.970 INFO  &amp#27;[32mmvn: 	at java.base/java.io.BufferedReader.readLine(BufferedReader.java:326)&amp#27;[0m
      05:57:54.970 INFO  &amp#27;[32mmvn: 	at java.base/java.io.BufferedReader.readLine(BufferedReader.java:392)&amp#27;[0m
      05:57:54.970 INFO  &amp#27;[32mmvn: 	at io.quarkus.container.image.openshift.deployment.OpenshiftProcessor.openshiftBuild(OpenshiftProcessor.java:444)&amp#27;[0m
      05:57:54.970 INFO  &amp#27;[32mmvn: 	... 25 more&amp#27;[0m
      

      This issue has been solved by this PR in Main (2.3): https://github.com/quarkusio/quarkus/pull/20134

      I verified that with this change in 2.2, it works fine ++ it will make the OpenShift deployments more robust.

      Attachments

        Issue Links

          Activity

            People

              rhn-support-fdudinsk Fedor Dudinskii
              jcarvaja@redhat.com Jose Carvajal Hilario (Inactive)
              Fedor Dudinskii Fedor Dudinskii
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: