Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: FIS 1.0 - OpenShift Fuse 3.1-GA
    • Fix Version/s: FIS 2.0
    • Component/s: FIS-Fabric8
    • Labels:
      None

      Description

      When using the Fabric8 workflow with FIS v1.0 on CDK, this works fluently, but when using a normal installation on Amazon EC2 it doesn't:

      $ mvn clean install docker:build docker:push fabric8:json
      fabric8:apply -Dfabric8.recreate=true -Dfabric8.useDeploymentConfig=true
      -Ddocker.registry=registry.t-openshift.finalist.lcl -Ddocker.username=$(oc
      whoami) -Ddocker.password=$(oc whoami -t) -Dfabric8.dockerUser=$(oc project
      -q)/ -Ddocker.from=
      registry.access.redhat.com/jboss-fuse-6/fis-java-openshift
      [INFO] Scanning for projects...
      [INFO]
      [INFO]
      ------------------------------------------------------------------------
      [INFO] Building Fabric8 :: Quickstarts :: CDI :: Camel with Jetty as HTTP
      server 1.0.0-SNAPSHOT
      [INFO]
      ------------------------------------------------------------------------
      [INFO]
      [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @
      cdi-camel-jetty-example ---
      [INFO] Deleting
      /Users/ton/Documents/PaaS/openshift-jboss-fuse-integration-services-examples/cdi-camel-jetty-example/target
      [INFO]
      [INFO] --- fabric8-maven-plugin:2.2.0.redhat-079:json (json) @
      cdi-camel-jetty-example ---
      [INFO] Configured with file:
      /Users/ton/Documents/PaaS/openshift-jboss-fuse-integration-services-examples/cdi-camel-jetty-example/target/classes/kubernetes.json
      2016-11-17 10:39:43 INFO  Version:17 - HV000001: Hibernate Validator
      5.2.2.Final
      [INFO] Generated env mappings: {}
      [INFO] Generated port mappings: {http=ContainerPort(containerPort=8080,
      hostIP=null, hostPort=null, name=http, protocol=null,
      additionalProperties={}), jolokia=ContainerPort(containerPort=8778,
      hostIP=null, hostPort=null, name=jolokia, protocol=null,
      additionalProperties={})}
      [INFO] Removed 'version' label from service selector for service
      `qs-cdi-camel-jetty`
      [INFO] Generated ports: [ServicePort(name=null, nodePort=null, port=9102,
      protocol=TCP, targetPort=IntOrString(IntVal=8080, Kind=null, StrVal=null,
      additionalProperties={}), additionalProperties={})]
      [INFO] Icon URL:
      https://cdn.rawgit.com/fabric8io/fabric8/master/fabric8-maven-plugin/src/main/resources/icons/camel.svg
      [INFO] Wrapped in DeploymentConfigs:
      [INFO]     Service qs-cdi-camel-jetty selector: {container=java,
      project=cdi-camel-jetty-example, component=cdi-camel-jetty-example,
      provider=fabric8, group=quickstarts} ports: 9102
      [INFO]     EditableImageStream cdi-camel-jetty-example
      [INFO]     EditableDeploymentConfig cdi-camel-jetty-example replicas: 1,
      image: test-cxf/cdi-camel-jetty-example:1.0.0-SNAPSHOT
      [INFO] Template is now:
      [INFO]     Service qs-cdi-camel-jetty selector: {container=java,
      project=cdi-camel-jetty-example, component=cdi-camel-jetty-example,
      provider=fabric8, group=quickstarts} ports: 9102
      [INFO]     EditableImageStream cdi-camel-jetty-example
      [INFO]     EditableDeploymentConfig cdi-camel-jetty-example replicas: 1,
      image: test-cxf/cdi-camel-jetty-example:1.0.0-SNAPSHOT
      [INFO] Added environment annotations:
      [INFO]     Service qs-cdi-camel-jetty selector: {container=java,
      project=cdi-camel-jetty-example, component=cdi-camel-jetty-example,
      provider=fabric8, group=quickstarts} ports: 9102
      [INFO]     ImageStream cdi-camel-jetty-example
      [INFO]     DeploymentConfig cdi-camel-jetty-example replicas: 1, image:
      test-cxf/cdi-camel-jetty-example:1.0.0-SNAPSHOT
      [INFO] Template is now:
      [INFO]     Service qs-cdi-camel-jetty selector: {container=java,
      project=cdi-camel-jetty-example, component=cdi-camel-jetty-example,
      provider=fabric8, group=quickstarts} ports: 9102
      [INFO]     ImageStream cdi-camel-jetty-example
      [INFO]     DeploymentConfig cdi-camel-jetty-example replicas: 1, image:
      test-cxf/cdi-camel-jetty-example:1.0.0-SNAPSHOT
      [INFO]
      [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @
      cdi-camel-jetty-example ---
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] Copying 2 resources
      [INFO]
      [INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @
      cdi-camel-jetty-example ---
      [INFO] Changes detected - recompiling the module!
      [INFO] Compiling 1 source file to
      /Users/ton/Documents/PaaS/openshift-jboss-fuse-integration-services-examples/cdi-camel-jetty-example/target/classes
      [INFO]
      [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources)
      @ cdi-camel-jetty-example ---
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] Copying 1 resource
      [INFO]
      [INFO] --- maven-compiler-plugin:3.3:testCompile (default-testCompile) @
      cdi-camel-jetty-example ---
      [INFO] Changes detected - recompiling the module!
      [INFO] Compiling 1 source file to
      /Users/ton/Documents/PaaS/openshift-jboss-fuse-integration-services-examples/cdi-camel-jetty-example/target/test-classes
      [INFO]
      [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @
      cdi-camel-jetty-example ---
      [INFO]
      [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ cdi-camel-jetty-example
      ---
      [INFO] Building jar:
      /Users/ton/Documents/PaaS/openshift-jboss-fuse-integration-services-examples/cdi-camel-jetty-example/target/cdi-camel-jetty-example.jar
      [INFO]
      [INFO] --- fabric8-maven-plugin:2.2.0.redhat-079:attach (attach) @
      cdi-camel-jetty-example ---
      [INFO] Generated Kubernetes JSON resources:
      [INFO]   Template cdi-camel-jetty-example parameters:
      [INFO]     Service qs-cdi-camel-jetty selector: {container=java,
      project=cdi-camel-jetty-example, component=cdi-camel-jetty-example,
      provider=fabric8, group=quickstarts} ports: 9102
      [INFO]     ImageStream cdi-camel-jetty-example
      [INFO]     DeploymentConfig cdi-camel-jetty-example replicas: 1, image:
      test-cxf/cdi-camel-jetty-example:1.0.0-SNAPSHOT
      [INFO] Attaching kubernetes json file:
      /Users/ton/Documents/PaaS/openshift-jboss-fuse-integration-services-examples/cdi-camel-jetty-example/target/classes/kubernetes.json
      to the build
      [INFO]
      [INFO] --- hawt-app-maven-plugin:2.2.0.redhat-079:build (hawt-app) @
      cdi-camel-jetty-example ---
      [INFO] Building tar:
      /Users/ton/Documents/PaaS/openshift-jboss-fuse-integration-services-examples/cdi-camel-jetty-example/target/cdi-camel-jetty-example-1.0.0-SNAPSHOT-app.tar.gz
      [INFO]
      [INFO] --- maven-install-plugin:2.4:install (default-install) @
      cdi-camel-jetty-example ---
      [INFO] Installing
      /Users/ton/Documents/PaaS/openshift-jboss-fuse-integration-services-examples/cdi-camel-jetty-example/target/cdi-camel-jetty-example.jar
      to
      /Users/ton/.m2/repository/nl/finalist/cdi-camel-jetty-example/1.0.0-SNAPSHOT/cdi-camel-jetty-example-1.0.0-SNAPSHOT.jar
      [INFO] Installing
      /Users/ton/Documents/PaaS/openshift-jboss-fuse-integration-services-examples/cdi-camel-jetty-example/pom.xml
      to
      /Users/ton/.m2/repository/nl/finalist/cdi-camel-jetty-example/1.0.0-SNAPSHOT/cdi-camel-jetty-example-1.0.0-SNAPSHOT.pom
      [INFO] Installing
      /Users/ton/Documents/PaaS/openshift-jboss-fuse-integration-services-examples/cdi-camel-jetty-example/target/classes/kubernetes.json
      to
      /Users/ton/.m2/repository/nl/finalist/cdi-camel-jetty-example/1.0.0-SNAPSHOT/cdi-camel-jetty-example-1.0.0-SNAPSHOT-kubernetes.json
      [INFO] Installing
      /Users/ton/Documents/PaaS/openshift-jboss-fuse-integration-services-examples/cdi-camel-jetty-example/target/cdi-camel-jetty-example-1.0.0-SNAPSHOT-app.tar.gz
      to
      /Users/ton/.m2/repository/nl/finalist/cdi-camel-jetty-example/1.0.0-SNAPSHOT/cdi-camel-jetty-example-1.0.0-SNAPSHOT-app.tar.gz
      [INFO]
      [INFO] --- docker-maven-plugin:0.13.6:build (default-cli) @
      cdi-camel-jetty-example ---
      [INFO] Copying files to
      /Users/ton/Documents/PaaS/openshift-jboss-fuse-integration-services-examples/cdi-camel-jetty-example/target/docker/test-cxf/cdi-camel-jetty-example/1.0.0-SNAPSHOT/build/maven
      [INFO] Building tar:
      /Users/ton/Documents/PaaS/openshift-jboss-fuse-integration-services-examples/cdi-camel-jetty-example/target/docker/test-cxf/cdi-camel-jetty-example/1.0.0-SNAPSHOT/tmp/docker-build.tar
      [INFO] DOCKER> [test-cxf/cdi-camel-jetty-example:1.0.0-SNAPSHOT] : Built
      image sha256:7cfdd
      [INFO]
      [INFO] --- docker-maven-plugin:0.13.6:push (default-cli) @
      cdi-camel-jetty-example ---
      [INFO] DOCKER> ... The push refers to a repository
      [registry.t-openshift.finalist.lcl/test-cxf/cdi-camel-jetty-example]
      [INFO] DOCKER> ... 0f15ac54b8a8 Preparing
      [INFO] DOCKER> ... a2561e611bf4 Preparing
      [INFO] DOCKER> ... 2f2c71ba7d1a Preparing
      [INFO] DOCKER> ... a2de66622680 Preparing
      [INFO] DOCKER> ... 22426f366c51 Preparing
      [INFO] DOCKER> ... 94b2db70f747 Preparing
      [INFO] DOCKER> ... 94b2db70f747 Waiting
             = 60% = 120% = 190% = 250% = 310% = 380% = 440% = 540% = 690% =
      1270% == 27660% = 55900% ===== 66840% = 85990% = 102270% = 120900% ==
      139410% == 144430% === 191060% === 239900% == 288750% ==== 337600% =======
      386440% === 435290% ===== 484140% ======= 532980% ======
      [INFO] DOCKER> ... 22426f366c51 Pushed
             = 20% == 30% ====== 40% =========================== 50%
      ===================== 60% =================== 70% ==================== 80%
      =================== 90% ========================== 100% ===============
      110% ============ 120% =========== 130% =========== 140% =========== 150%
      ============ 160% =========
      [INFO] DOCKER> ... a2de66622680 Pushed
             = 50% ======= 60% ===================== 70% ===============
      [INFO] DOCKER> ... a2561e611bf4 Pushed
             = 70% ========= 80% ================== 90% ================= 100%
      ============= 110% ====== 120% ======== 130%
      [INFO] DOCKER> ... 0f15ac54b8a8 Pushed
             = 20% ================== 30% ====================================
      40% ==================================== 50%
      ==================================== 60%
      ===================================================== 70%
      ========================================================= 80%
      ============================================================= 90%
      ===========================================================================================
      100% =========================================================
      [INFO] DOCKER> ... 2f2c71ba7d1a Pushed
             = 50% =========================== 60%
      ===================================== 70%
      ====================================== 80%
      ===================================== 90%
      ===================================== 100% ==================
      [INFO] DOCKER> ... 94b2db70f747 Pushed
      [INFO] DOCKER> ... 1.0.0-SNAPSHOT: digest:
      sha256:c24a5df3be209f2d67c4112e1a3c0c7b046a7d338ebb512cab680d56b9a3e124
      size: 8791
      [INFO] DOCKER> ...
      [INFO]
      [INFO] --- fabric8-maven-plugin:2.2.0.redhat-079:json (default-cli) @
      cdi-camel-jetty-example ---
      [INFO] Configured with file:
      /Users/ton/Documents/PaaS/openshift-jboss-fuse-integration-services-examples/cdi-camel-jetty-example/target/classes/kubernetes.json
      [INFO] Generated env mappings: {}
      [INFO] Generated port mappings: {http=ContainerPort(containerPort=8080,
      hostIP=null, hostPort=null, name=http, protocol=null,
      additionalProperties={}), jolokia=ContainerPort(containerPort=8778,
      hostIP=null, hostPort=null, name=jolokia, protocol=null,
      additionalProperties={})}
      [INFO] Removed 'version' label from service selector for service
      `qs-cdi-camel-jetty`
      [INFO] Generated ports: [ServicePort(name=null, nodePort=null, port=9102,
      protocol=TCP, targetPort=IntOrString(IntVal=8080, Kind=null, StrVal=null,
      additionalProperties={}), additionalProperties={})]
      [INFO] Icon URL:
      https://cdn.rawgit.com/fabric8io/fabric8/master/fabric8-maven-plugin/src/main/resources/icons/camel.svg
      [INFO] Wrapped in DeploymentConfigs:
      [INFO]     Service qs-cdi-camel-jetty selector: {container=java,
      project=cdi-camel-jetty-example, component=cdi-camel-jetty-example,
      provider=fabric8, group=quickstarts} ports: 9102
      [INFO]     EditableImageStream cdi-camel-jetty-example
      [INFO]     EditableDeploymentConfig cdi-camel-jetty-example replicas: 1,
      image: test-cxf/cdi-camel-jetty-example:1.0.0-SNAPSHOT
      [INFO] Template is now:
      [INFO]     Service qs-cdi-camel-jetty selector: {container=java,
      project=cdi-camel-jetty-example, component=cdi-camel-jetty-example,
      provider=fabric8, group=quickstarts} ports: 9102
      [INFO]     EditableImageStream cdi-camel-jetty-example
      [INFO]     EditableDeploymentConfig cdi-camel-jetty-example replicas: 1,
      image: test-cxf/cdi-camel-jetty-example:1.0.0-SNAPSHOT
      [INFO] Added environment annotations:
      [INFO]     Service qs-cdi-camel-jetty selector: {container=java,
      project=cdi-camel-jetty-example, component=cdi-camel-jetty-example,
      provider=fabric8, group=quickstarts} ports: 9102
      [INFO]     ImageStream cdi-camel-jetty-example
      [INFO]     DeploymentConfig cdi-camel-jetty-example replicas: 1, image:
      test-cxf/cdi-camel-jetty-example:1.0.0-SNAPSHOT
      [INFO] Template is now:
      [INFO]     Service qs-cdi-camel-jetty selector: {container=java,
      project=cdi-camel-jetty-example, component=cdi-camel-jetty-example,
      provider=fabric8, group=quickstarts} ports: 9102
      [INFO]     ImageStream cdi-camel-jetty-example
      [INFO]     DeploymentConfig cdi-camel-jetty-example replicas: 1, image:
      test-cxf/cdi-camel-jetty-example:1.0.0-SNAPSHOT
      [INFO]
      [INFO] --- fabric8-maven-plugin:2.2.0.redhat-079:apply (default-cli) @
      cdi-camel-jetty-example ---
      [INFO] Using kubernetes at: https://t-openshift.finalist.lcl:8443/ in
      namespace test-cxf
      [INFO] Kubernetes JSON:
      /Users/ton/Documents/PaaS/openshift-jboss-fuse-integration-services-examples/cdi-camel-jetty-example/target/classes/kubernetes.json
      [INFO] OpenShift platform detected
      [INFO] Using namespace: test-cxf
      [INFO] Creating a Template from kubernetes.json namespace test-cxf name
      cdi-camel-jetty-example
      [INFO] Created Template:
      target/fabric8/applyJson/test-cxf/template-cdi-camel-jetty-example.json
      [INFO] Creating a Service from kubernetes.json namespace test-cxf name
      qs-cdi-camel-jetty
      [INFO] Created Service:
      target/fabric8/applyJson/test-cxf/service-qs-cdi-camel-jetty.json
      [ERROR] Failed to create BuildConfig from kubernetes.json.
      io.fabric8.kubernetes.client.KubernetesClientException: Failure executing:
      POST at:
      https://t-openshift.finalist.lcl:8443/oapi/v1/namespaces/test-cxf/imagestreams.
      Message: imagestreams "cdi-camel-jetty-example" already exists. Received
      status: Status(apiVersion=v1, code=409, details=StatusDetails(causes=[],
      kind=imagestreams, name=cdi-camel-jetty-example, retryAfterSeconds=null,
      additionalProperties={}), kind=Status, message=imagestreams
      "cdi-camel-jetty-example" already exists,
      metadata=ListMeta(resourceVersion=null, selfLink=null,
      additionalProperties={}), reason=AlreadyExists, status=Failure,
      additionalProperties={}).
      io.fabric8.kubernetes.client.KubernetesClientException: Failure executing:
      POST at:
      https://t-openshift.finalist.lcl:8443/oapi/v1/namespaces/test-cxf/imagestreams.
      Message: imagestreams "cdi-camel-jetty-example" already exists. Received
      status: Status(apiVersion=v1, code=409, details=StatusDetails(causes=[],
      kind=imagestreams, name=cdi-camel-jetty-example, retryAfterSeconds=null,
      additionalProperties={}), kind=Status, message=imagestreams
      "cdi-camel-jetty-example" already exists,
      metadata=ListMeta(resourceVersion=null, selfLink=null,
      additionalProperties={}), reason=AlreadyExists, status=Failure,
      additionalProperties={}).
          at
      io.fabric8.kubernetes.client.dsl.base.OperationSupport.requestFailure(OperationSupport.java:242)
          at
      io.fabric8.kubernetes.client.dsl.base.OperationSupport.assertResponseCode(OperationSupport.java:213)
          at
      io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:186)
          at
      io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleCreate(OperationSupport.java:164)
          at
      io.fabric8.kubernetes.client.dsl.base.BaseOperation.handleCreate(BaseOperation.java:463)
          at
      io.fabric8.kubernetes.client.dsl.base.BaseOperation.create(BaseOperation.java:199)
          at
      io.fabric8.kubernetes.api.Controller.applyImageStream(Controller.java:659)
          at io.fabric8.kubernetes.api.Controller.applyEntity(Controller.java:231)
          at io.fabric8.kubernetes.api.Controller.apply(Controller.java:208)
          at io.fabric8.maven.ApplyMojo.execute(ApplyMojo.java:247)
          at
      org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
          at
      org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
          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)
      [INFO]
      ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO]
      ------------------------------------------------------------------------
      [INFO] Total time: 01:23 min
      [INFO] Finished at: 2016-11-17T10:41:03+01:00
      [INFO] Final Memory: 58M/792M
      [INFO]
      ------------------------------------------------------------------------
      [ERROR] Failed to execute goal
      io.fabric8:fabric8-maven-plugin:2.2.0.redhat-079:apply (default-cli) on
      project cdi-camel-jetty-example: Failed to create BuildConfig from
      kubernetes.json. io.fabric8.kubernetes.client.KubernetesClientException:
      Failure executing: POST at:
      https://t-openshift.finalist.lcl:8443/oapi/v1/namespaces/test-cxf/imagestreams.
      Message: imagestreams "cdi-camel-jetty-example" already exists. Received
      status: Status(apiVersion=v1, code=409, details=StatusDetails(causes=[],
      kind=imagestreams, name=cdi-camel-jetty-example, retryAfterSeconds=null,
      additionalProperties={}), kind=Status, message=imagestreams
      "cdi-camel-jetty-example" already exists,
      metadata=ListMeta(resourceVersion=null, selfLink=null,
      additionalProperties={}), reason=AlreadyExists, status=Failure,
      additionalProperties={}). -> [Help 1]
      [ERROR]
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
      switch.
      [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
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                rhn-support-aboucham Abel Bouchama
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: