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

[ER1] SB2 quickstarts doesnt work with FMP

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Blocker Blocker
    • None
    • fuse-7.5-ER1
    • Examples, Fuse on Openshift
    • None
    • % %
    • Hide
      mvn -B -DarchetypeGroupId=org.jboss.fuse.fis.archetypes -DarchetypeArtifactId=spring-boot-camel-archetype -DarchetypeVersion=2.2.0.fuse-sb2-750004-redhat-00004 -DgroupId=com.redhat.xpaas.qe -DartifactId=spring2camel1 -Dversion=1.0-SNAPSHOT -Dpackage=com.redhat.xpaas.qe -e --batch-mode archetype:generate -U
      
      Show
      mvn -B -DarchetypeGroupId=org.jboss.fuse.fis.archetypes -DarchetypeArtifactId=spring-boot-camel-archetype -DarchetypeVersion=2.2.0.fuse-sb2-750004-redhat-00004 -DgroupId=com.redhat.xpaas.qe -DartifactId=spring2camel1 -Dversion=1.0-SNAPSHOT -Dpackage=com.redhat.xpaas.qe -e --batch-mode archetype:generate -U

      mvn clean install && mvn fabric8:deploy -Popenshift
      [INFO] Scanning for projects...
      [INFO]
      [INFO] -----------------< com.redhat.xpaas.qe:spring2camel1 >------------------
      [INFO] Building Fabric8 :: Quickstarts :: Spring-Boot :: Camel 1.0-SNAPSHOT
      [INFO] --------------------------------[ jar ]---------------------------------
      [INFO]
      [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ spring2camel1 ---
      [INFO]
      [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ spring2camel1 ---
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] Copying 3 resources
      [INFO]
      [INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ spring2camel1 ---
      [INFO] Changes detected - recompiling the module!
      [INFO] Compiling 1 source file to /Users/llowinge/Redhat/xpaas/archetypes/spring2camel1/target/classes
      [INFO]
      [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ spring2camel1 ---
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] skip non existing resourceDirectory /Users/llowinge/Redhat/xpaas/archetypes/spring2camel1/src/test/resources
      [INFO]
      [INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ spring2camel1 ---
      [INFO] Changes detected - recompiling the module!
      [INFO] Compiling 1 source file to /Users/llowinge/Redhat/xpaas/archetypes/spring2camel1/target/test-classes
      [INFO]
      [INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ spring2camel1 ---
      [INFO]
      [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ spring2camel1 ---
      [INFO] Building jar: /Users/llowinge/Redhat/xpaas/archetypes/spring2camel1/target/spring2camel1-1.0-SNAPSHOT.jar
      [INFO]
      [INFO] --- spring-boot-maven-plugin:7.5.0.fuse-sb2-750022-redhat-00001:repackage (default) @ spring2camel1 ---
      [INFO] Replacing main artifact with repackaged archive
      [INFO]
      [INFO] --- maven-install-plugin:2.4:install (default-install) @ spring2camel1 ---
      [INFO] Installing /Users/llowinge/Redhat/xpaas/archetypes/spring2camel1/target/spring2camel1-1.0-SNAPSHOT.jar to /Users/llowinge/.m2/repository/com/redhat/xpaas/qe/spring2camel1/1.0-SNAPSHOT/spring2camel1-1.0-SNAPSHOT.jar
      [INFO] Installing /Users/llowinge/Redhat/xpaas/archetypes/spring2camel1/pom.xml to /Users/llowinge/.m2/repository/com/redhat/xpaas/qe/spring2camel1/1.0-SNAPSHOT/spring2camel1-1.0-SNAPSHOT.pom
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 4.362 s
      [INFO] Finished at: 2019-10-03T16:22:18+02:00
      [INFO] ------------------------------------------------------------------------
      [INFO] Scanning for projects...
      [INFO]
      [INFO] -----------------< com.redhat.xpaas.qe:spring2camel1 >------------------
      [INFO] Building Fabric8 :: Quickstarts :: Spring-Boot :: Camel 1.0-SNAPSHOT
      [INFO] --------------------------------[ jar ]---------------------------------
      [INFO]
      [INFO] >>> fabric8-maven-plugin:7.5.0.fuse-sb2-750022-redhat-00001:deploy (default-cli) > install @ spring2camel1 >>>
      [INFO]
      [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ spring2camel1 ---
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] Copying 3 resources
      [INFO]
      [INFO] --- fabric8-maven-plugin:7.5.0.fuse-sb2-750022-redhat-00001:resource (default) @ spring2camel1 ---
      [INFO] F8: Running in OpenShift mode
      [INFO] F8: Using docker image name of namespace: llowinge
      [INFO] F8: Running generator spring-boot
      [INFO] F8: spring-boot: Using Docker image null/fuse-java-openshift:null as base / builder
      [INFO] F8: using resource templates from /Users/llowinge/Redhat/xpaas/archetypes/spring2camel1/src/main/fabric8
      Trying internal type for name:Deployment
      [INFO] F8: fmp-service: Adding a default service 'spring2camel1' with ports [8080]
      [INFO] F8: spring-boot-health-check: Adding readiness probe on port 8080, path='/actuator/health', scheme='HTTP', with initial delay 10 seconds
      [INFO] F8: spring-boot-health-check: Adding liveness probe on port 8080, path='/actuator/health', scheme='HTTP', with initial delay 180 seconds
      [INFO] F8: f8-service-discovery: Using first mentioned service port '8080'
      [INFO] F8: fmp-revision-history: Adding revision history limit to 2
      [INFO] F8: f8-icon: Adding icon for deployment
      [INFO] F8: f8-icon: Adding icon for service
      [INFO] F8: validating /Users/llowinge/Redhat/xpaas/archetypes/spring2camel1/target/classes/META-INF/fabric8/openshift/spring2camel1-svc.yml resource
      [INFO] F8: validating /Users/llowinge/Redhat/xpaas/archetypes/spring2camel1/target/classes/META-INF/fabric8/openshift/spring2camel1-route.yml resource
      [INFO] F8: validating /Users/llowinge/Redhat/xpaas/archetypes/spring2camel1/target/classes/META-INF/fabric8/openshift/spring2camel1-deploymentconfig.yml resource
      [INFO] F8: validating /Users/llowinge/Redhat/xpaas/archetypes/spring2camel1/target/classes/META-INF/fabric8/kubernetes/spring2camel1-deployment.yml resource
      [INFO] F8: validating /Users/llowinge/Redhat/xpaas/archetypes/spring2camel1/target/classes/META-INF/fabric8/kubernetes/spring2camel1-svc.yml resource
      [INFO]
      [INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ spring2camel1 ---
      [INFO] Nothing to compile - all classes are up to date
      [INFO]
      [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ spring2camel1 ---
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] skip non existing resourceDirectory /Users/llowinge/Redhat/xpaas/archetypes/spring2camel1/src/test/resources
      [INFO]
      [INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ spring2camel1 ---
      [INFO] Nothing to compile - all classes are up to date
      [INFO]
      [INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ spring2camel1 ---
      [INFO]
      [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ spring2camel1 ---
      [INFO] Building jar: /Users/llowinge/Redhat/xpaas/archetypes/spring2camel1/target/spring2camel1-1.0-SNAPSHOT.jar
      [INFO]
      [INFO] --- spring-boot-maven-plugin:7.5.0.fuse-sb2-750022-redhat-00001:repackage (default) @ spring2camel1 ---
      [INFO] Replacing main artifact with repackaged archive
      [INFO]
      [INFO] --- fabric8-maven-plugin:7.5.0.fuse-sb2-750022-redhat-00001:build (default) @ spring2camel1 ---
      [INFO] F8: Using OpenShift build with strategy S2I
      [INFO] F8: Running generator spring-boot
      [INFO] F8: spring-boot: Using ImageStreamTag 'fuse7-java-openshift:null' from namespace 'openshift' as builder image
      [INFO] Copying files to /Users/llowinge/Redhat/xpaas/archetypes/spring2camel1/target/docker/spring2camel1/latest/build/maven
      [INFO] Building tar: /Users/llowinge/Redhat/xpaas/archetypes/spring2camel1/target/docker/spring2camel1/latest/tmp/docker-build.tar
      [INFO] F8: [spring2camel1:latest] "spring-boot": Created docker source tar /Users/llowinge/Redhat/xpaas/archetypes/spring2camel1/target/docker/spring2camel1/latest/tmp/docker-build.tar
      [INFO] F8: Creating BuildServiceConfig spring2camel1-s2i for Source build
      [INFO] F8: Creating ImageStream spring2camel1
      [INFO] F8: Starting Build spring2camel1-s2i
      [ERROR] F8: OpenShift Error: [422 Failure] [Invalid] Error resolving ImageStreamTag fuse7-java-openshift:null in namespace openshift: unable to find latest tagged image
      [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: 13.030 s
      [INFO] Finished at: 2019-10-03T16:22:32+02:00
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.jboss.redhat-fuse:fabric8-maven-plugin:7.5.0.fuse-sb2-750022-redhat-00001:build (default) on project spring2camel1: Failed to execute the build: Unable to build the image using the OpenShift build service: Failure executing: POST at: https://master.foo-standalone-311.dos.fuse-qe.eng.rdu2.redhat.com:8443/apis/build.openshift.io/v1/namespaces/llowinge/buildconfigs/spring2camel1-s2i/instantiatebinary?commit=. Message: Error resolving ImageStreamTag fuse7-java-openshift:null in namespace openshift: unable to find latest tagged image. Received status: Status(apiVersion=v1, code=422, details=StatusDetails(causes=[StatusCause(field=from, message=Error resolving ImageStreamTag fuse7-java-openshift:null in namespace openshift: unable to find latest tagged image, reason=null, additionalProperties={})], group=null, kind=ImageStreamTag, name=fuse7-java-openshift:null, retryAfterSeconds=null, uid=null, additionalProperties={}), kind=Status, message=Error resolving ImageStreamTag fuse7-java-openshift:null in namespace openshift: unable to find latest tagged image, metadata=ListMeta(resourceVersion=null, selfLink=null, additionalProperties={}), reason=Invalid, status=Failure, additionalProperties={}). -> [Help 1]
      

              Unassigned Unassigned
              llowinge@redhat.com Lukas Lowinger
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: