Uploaded image for project: 'ENTSBT'
  1. ENTSBT
  2. ENTSBT-1132

OCP service was not created

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.3.x
    • 2.3.x
    • dekorate
    • None
    • False
    • False
    • Undefined

      The OCP service resource was not created with Dekorate version 2.3.2.redhat-00002 (2.3.10.ER24 build).
      output:

      lfuka@lfuka-new-notebook:~/Git/rhoarqe/spring-boot-openshift-tests/test-sb/tmp/sources/dekorate-app12692216498443341563 (master *>)$ mvn clean package -Ddekorate.deploy=true
      [INFO] Scanning for projects...
      [INFO] 
      [INFO] ------------------------------------------------------------------------
      [INFO] Building Spring Boot rest application 2.0.0-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO] 
      [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ springboot-dekorate-app ---
      [INFO] Deleting /home/lfuka/Git/rhoarqe/spring-boot-openshift-tests/test-sb/tmp/sources/dekorate-app12692216498443341563/target
      [INFO] 
      [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ springboot-dekorate-app ---
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] Copying 1 resource
      [INFO] 
      [INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ springboot-dekorate-app ---
      [INFO] Changes detected - recompiling the module!
      [INFO] Compiling 2 source files to /home/lfuka/Git/rhoarqe/spring-boot-openshift-tests/test-sb/tmp/sources/dekorate-app12692216498443341563/target/classes
      [INFO] Initializing dekorate session.
      [INFO] Found Spring web annotation!
      [INFO] Found @SpringBootApplication on: com.redhat.xpass.RestApplication
      [INFO] Generating manifests.
      [INFO] Processing openshift configuration.
      [INFO] Processing s2i configuration.
      [INFO] Writing: file:///home/lfuka/Git/rhoarqe/spring-boot-openshift-tests/test-sb/tmp/sources/dekorate-app12692216498443341563/target/classes/META-INF/dekorate/openshift.json
      [INFO] Writing: file:///home/lfuka/Git/rhoarqe/spring-boot-openshift-tests/test-sb/tmp/sources/dekorate-app12692216498443341563/target/classes/META-INF/dekorate/openshift.yml
      15:45:37.761 [main] DEBUG io.fabric8.kubernetes.client.Config - Trying to configure client from Kubernetes config...
      15:45:37.762 [main] DEBUG io.fabric8.kubernetes.client.Config - Found for Kubernetes config at: [/home/lfuka/.kube/config].
      [INFO] Deleting stale build:springboot-dekorate-app-1
      [INFO] Applied: ImageStream openjdk-11-rhel7
      [INFO] Applied: ImageStream springboot-dekorate-app
      [INFO] Applied: BuildConfig springboot-dekorate-app
      15:45:41.259 [main] DEBUG io.fabric8.kubernetes.client.Config - Trying to configure client from Kubernetes config...
      15:45:41.259 [main] DEBUG io.fabric8.kubernetes.client.Config - Found for Kubernetes config at: [/home/lfuka/.kube/config].
      [INFO] Closing dekorate session.
      [INFO] 
      [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ springboot-dekorate-app ---
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] skip non existing resourceDirectory /home/lfuka/Git/rhoarqe/spring-boot-openshift-tests/test-sb/tmp/sources/dekorate-app12692216498443341563/src/test/resources
      [INFO] 
      [INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ springboot-dekorate-app ---
      [INFO] No sources to compile
      [INFO] 
      [INFO] --- maven-surefire-plugin:3.0.0-M5:test (default-test) @ springboot-dekorate-app ---
      [INFO] No tests to run.
      [INFO] 
      [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ springboot-dekorate-app ---
      [INFO] Building jar: /home/lfuka/Git/rhoarqe/spring-boot-openshift-tests/test-sb/tmp/sources/dekorate-app12692216498443341563/target/springboot-dekorate-app-2.0.0-SNAPSHOT.jar
      [INFO] 
      [INFO] --- spring-boot-maven-plugin:2.3.10.RELEASE:repackage (repackage) @ springboot-dekorate-app ---
      [INFO] Replacing main artifact with repackaged archive
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 7.663 s
      [INFO] Finished at: 2021-08-09T15:45:43+02:00
      [INFO] Final Memory: 43M/174M
      [INFO] ------------------------------------------------------------------------
      [INFO] Performing s2i build.
      Uploading directory "/home/lfuka/Git/rhoarqe/spring-boot-openshift-tests/test-sb/tmp/sources/dekorate-app12692216498443341563/target" as binary input for the build ...
      .....................
      Uploading finished
      build.build.openshift.io/springboot-dekorate-app-1 started
      Receiving source from STDIN as archive ...
      Using registry.access.redhat.com/openjdk/openjdk-11-rhel7@sha256:1d68b58a73f4cf15fcd886ab39fddf18be923b52b24cb8ec3ab1da2d3e9bd5f6 as the s2i builder image
      INFO S2I source build with plain binaries detected
      INFO Copying binaries from /tmp/src to /deployments ...
      springboot-dekorate-app-2.0.0-SNAPSHOT.jar
      springboot-dekorate-app-2.0.0-SNAPSHOT.jar.original
      .dekorate/
      .dekorate/.project.yml
      .dekorate/config/
      .dekorate/config/openshift.yml
      .dekorate/config/s2i.yml
      .dekorate/config/springapplication.yml
      classes/
      classes/logback-spring.xml
      classes/META-INF/
      classes/META-INF/dekorate/
      classes/META-INF/dekorate/openshift.json
      classes/META-INF/dekorate/openshift.yml
      classes/com/
      classes/com/redhat/
      classes/com/redhat/xpass/
      classes/com/redhat/xpass/RestApplication.class
      classes/com/redhat/xpass/service/
      classes/com/redhat/xpass/service/Controller.class
      generated-sources/
      generated-sources/annotations/
      maven-archiver/
      maven-archiver/pom.properties
      maven-status/
      maven-status/maven-compiler-plugin/
      maven-status/maven-compiler-plugin/compile/
      maven-status/maven-compiler-plugin/compile/default-compile/
      maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
      maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
      
      Pushing image docker-registry.default.svc:5000/lfuka/springboot-dekorate-app:2.0.0-SNAPSHOT ...
      Pushed 3/4 layers, 80% complete
      Pushed 4/4 layers, 100% complete
      Push successful
      Warning: oc apply should be used on resource created by either oc create --save-config or oc apply
      imagestream.image.openshift.io/openjdk-11-rhel7 configured
      Warning: oc apply should be used on resource created by either oc create --save-config or oc apply
      imagestream.image.openshift.io/springboot-dekorate-app configured
      Warning: oc apply should be used on resource created by either oc create --save-config or oc apply
      buildconfig.build.openshift.io/springboot-dekorate-app configured
      deploymentconfig.apps.openshift.io/springboot-dekorate-annotation configured
      route.route.openshift.io/springboot-dekorate-annotation configured
      The Service "springboot-dekorate-annotation" is invalid: spec.ports[1]: Duplicate value: core.ServicePort{Name:"", Protocol:"TCP", Port:80, TargetPort:intstr.IntOrString{Type:0, IntVal:0, StrVal:""}, NodePort:0}
      
      

            ikanello1@redhat.com Ioannis Kanellos
            lfuka Libor Fuka
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: