Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: fuse-7.1.1
    • Fix Version/s: fuse-7.2
    • Component/s: FIS
    • Labels:
      None
    • Sprint:
      Fuse 7.2 Sprint 36

      Description

      See https://github.com/jboss-fuse/application-templates/blob/application-templates-2.1.fuse-711004-redhat-00003/fis-image-streams.json#L270, there is no jboss-fuse70-karaf-openshift:1.1 which org.jboss.redhat-fuse:fabric8-maven-plugin:7.1.1.fuse-711004-redhat-00002 expects.

      [INFO] --- fabric8-maven-plugin:7.1.1.fuse-711004-redhat-00002:build (build-image) @ karaf-camel-rest-sql ---
      [INFO] F8: Using OpenShift build with strategy S2I
      [INFO] F8: Running generator karaf
      [INFO] F8: karaf: Using ImageStreamTag 'jboss-fuse70-karaf-openshift:1.1' from namespace 'openshift' as builder image
      [INFO] Copying files to /mnt/hudson_workspace/workspace/fis-7.1-xpaasqe/xpaas-qe/test-fuse/tmp/karaf-camel-rest-sql4831320806979592268/karaf-camel-rest-sql/target/docker/karaf-camel-rest-sql/latest/build/maven
      [INFO] Building tar: /mnt/hudson_workspace/workspace/fis-7.1-xpaasqe/xpaas-qe/test-fuse/tmp/karaf-camel-rest-sql4831320806979592268/karaf-camel-rest-sql/target/docker/karaf-camel-rest-sql/latest/tmp/docker-build.tar
      [INFO] F8: [karaf-camel-rest-sql:latest] "karaf": Created docker source tar /mnt/hudson_workspace/workspace/fis-7.1-xpaasqe/xpaas-qe/test-fuse/tmp/karaf-camel-rest-sql4831320806979592268/karaf-camel-rest-sql/target/docker/karaf-camel-rest-sql/latest/tmp/docker-build.tar
      [INFO] F8: Creating BuildServiceConfig karaf-camel-rest-sql-s2i for Source build
      [INFO] F8: Creating ImageStream karaf-camel-rest-sql
      [INFO] F8: Starting Build karaf-camel-rest-sql-s2i
      [ERROR] F8: OpenShift Error: [422 Failure] [Invalid] Error resolving ImageStreamTag jboss-fuse70-karaf-openshift:1.1 in namespace openshift: imagestreams.image.openshift.io "jboss-fuse70-karaf-openshift" not found
      [ERROR] F8: Failed to execute the build [Unable to build the image using the OpenShift build service]
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 01:32 min
      [INFO] Finished at: 2018-10-18T16:24:29-04:00
      [INFO] Final Memory: 65M/702M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.jboss.redhat-fuse:fabric8-maven-plugin:7.1.1.fuse-711004-redhat-00002:build (build-image) on project karaf-camel-rest-sql: Failed to execute the build: Unable to build the image using the OpenShift build service: Failure executing: POST at: https://10.8.250.204:8443/apis/build.openshift.io/v1/namespaces/quickstarts-automated/buildconfigs/karaf-camel-rest-sql-s2i/instantiatebinary?commit=. Message: Error resolving ImageStreamTag jboss-fuse70-karaf-openshift:1.1 in namespace openshift: imagestreams.image.openshift.io "jboss-fuse70-karaf-openshift" not found. Received status: Status(apiVersion=v1, code=422, details=StatusDetails(causes=[StatusCause(field=from, message=Error resolving ImageStreamTag jboss-fuse70-karaf-openshift:1.1 in namespace openshift: imagestreams.image.openshift.io "jboss-fuse70-karaf-openshift" not found, reason=null, additionalProperties={})], group=null, kind=ImageStreamTag, name=jboss-fuse70-karaf-openshift:1.1, retryAfterSeconds=null, uid=null, additionalProperties={}), kind=Status, message=Error resolving ImageStreamTag jboss-fuse70-karaf-openshift:1.1 in namespace openshift: imagestreams.image.openshift.io "jboss-fuse70-karaf-openshift" not found, metadata=ListMeta(resourceVersion=null, selfLink=null, additionalProperties={}), reason=Invalid, status=Failure, additionalProperties={}). -> [Help 1]
      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.jboss.redhat-fuse:fabric8-maven-plugin:7.1.1.fuse-711004-redhat-00002:build (build-image) on project karaf-camel-rest-sql: Failed to execute the build
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.executeForkedExecutions(MojoExecutor.java:352)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:197)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
      	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
      	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
      	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
      	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
      	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
      	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
      	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
      	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
      	at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
      Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to execute the build
      	at io.fabric8.maven.plugin.mojo.build.BuildMojo.buildAndTag(BuildMojo.java:252)
      	at io.fabric8.maven.docker.BuildMojo.executeInternal(BuildMojo.java:44)
      	at io.fabric8.maven.plugin.mojo.build.BuildMojo.executeInternal(BuildMojo.java:229)
      	at io.fabric8.maven.docker.AbstractDockerMojo.execute(AbstractDockerMojo.java:222)
      	at io.fabric8.maven.plugin.mojo.build.BuildMojo.execute(BuildMojo.java:200)
      	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
      	... 24 more
      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:114)
      	at io.fabric8.maven.plugin.mojo.build.BuildMojo.buildAndTag(BuildMojo.java:249)
      	... 30 more
      Caused by: io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: POST at: https://10.8.250.204:8443/apis/build.openshift.io/v1/namespaces/quickstarts-automated/buildconfigs/karaf-camel-rest-sql-s2i/instantiatebinary?commit=. Message: Error resolving ImageStreamTag jboss-fuse70-karaf-openshift:1.1 in namespace openshift: imagestreams.image.openshift.io "jboss-fuse70-karaf-openshift" not found. Received status: Status(apiVersion=v1, code=422, details=StatusDetails(causes=[StatusCause(field=from, message=Error resolving ImageStreamTag jboss-fuse70-karaf-openshift:1.1 in namespace openshift: imagestreams.image.openshift.io "jboss-fuse70-karaf-openshift" not found, reason=null, additionalProperties={})], group=null, kind=ImageStreamTag, name=jboss-fuse70-karaf-openshift:1.1, retryAfterSeconds=null, uid=null, additionalProperties={}), kind=Status, message=Error resolving ImageStreamTag jboss-fuse70-karaf-openshift:1.1 in namespace openshift: imagestreams.image.openshift.io "jboss-fuse70-karaf-openshift" not found, metadata=ListMeta(resourceVersion=null, selfLink=null, additionalProperties={}), reason=Invalid, status=Failure, additionalProperties={}).
      	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.requestFailure(OperationSupport.java:470)
      	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.assertResponseCode(OperationSupport.java:409)
      	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:379)
      	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:359)
      	at io.fabric8.openshift.client.dsl.internal.BuildConfigOperationsImpl.fromInputStream(BuildConfigOperationsImpl.java:274)
      	at io.fabric8.openshift.client.dsl.internal.BuildConfigOperationsImpl.fromFile(BuildConfigOperationsImpl.java:231)
      	at io.fabric8.openshift.client.dsl.internal.BuildConfigOperationsImpl.fromFile(BuildConfigOperationsImpl.java:68)
      	at io.fabric8.maven.core.service.openshift.OpenshiftBuildService.startBuild(OpenshiftBuildService.java:324)
      	at io.fabric8.maven.core.service.openshift.OpenshiftBuildService.build(OpenshiftBuildService.java:104)
      	... 31 more
      [ERROR] 
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR] 
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
      
      	at org.apache.maven.it.Verifier.executeGoals(Verifier.java:1359)
      	at org.apache.maven.it.Verifier.executeGoals(Verifier.java:1241)
      	at cz.xtf.maven.MavenUtil.executeGoals(MavenUtil.java:82)
      	at cz.xtf.maven.Fabric8MavenWrapper.executeGoals(Fabric8MavenWrapper.java:305)
      	at com.redhat.xpaas.fuse.archetypes.AbstractArchetypeTest.deployFabricArchetype(AbstractArchetypeTest.java:656)
      	at com.redhat.xpaas.fuse.archetypes.fabric.KarafCamelRestSqlFabricTest.deploy(KarafCamelRestSqlFabricTest.java:65)
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                tcunning Thomas Cunningham
                Reporter:
                llowinge Lukáš Löwinger
                Tester:
                Lukáš Löwinger
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: