jmesnil / microprofile-openshift-example

Example of MicroProfile Application deployed on OpenShift
4 stars 3 forks source link

Is this still working for you? #1

Open starksm64 opened 5 years ago

starksm64 commented 5 years ago

Jeff, I was trying this today and it is failing in various spots with a new openshift online account, and the furthest I was able to get to was:

Scotts-iMacPro:microprofile-openshift-example starksm$ mvn -Popenshift fabric8:deploy
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for net.jmesnil:microprofile-openshift-example:war:1.0.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for io.fabric8:fabric8-maven-plugin is missing. @ line 83, column 19
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-war-plugin is missing. @ line 47, column 15
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO] 
[INFO] -------------< net.jmesnil:microprofile-openshift-example >-------------
[INFO] Building MicroProfile and OpenShift Example 1.0.0-SNAPSHOT
[INFO] --------------------------------[ war ]---------------------------------
[INFO] 
[INFO] >>> fabric8-maven-plugin:4.1.0:deploy (default-cli) > install @ microprofile-openshift-example >>>
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ microprofile-openshift-example ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- fabric8-maven-plugin:4.1.0:resource (default) @ microprofile-openshift-example ---
[INFO] F8: Using docker image name of namespace: microprofile-openshift-example
[INFO] F8: Running generator wildfly-swarm
[INFO] F8: wildfly-swarm: Using Docker image fabric8/s2i-java:2.3 as base / builder
[INFO] F8: using resource templates from /Users/starksm/Dev/JBoss/Microprofile/microprofile-openshift-example/src/main/fabric8
[INFO] F8: fmp-controller: Adding a default Deployment
[INFO] F8: fmp-service: Adding a default service 'microprofile-openshift-example' with ports [8080]
[INFO] F8: f8-healthcheck-wildfly-swarm: Adding readiness probe on port 8080, path='/health', scheme='HTTP', with initial delay 10 seconds
[INFO] F8: f8-healthcheck-wildfly-swarm: Adding liveness probe on port 8080, path='/health', scheme='HTTP', with initial delay 180 seconds
[INFO] F8: fmp-revision-history: Adding revision history limit to 2
[INFO] F8: validating /Users/starksm/Dev/JBoss/Microprofile/microprofile-openshift-example/target/classes/META-INF/fabric8/kubernetes/microprofile-openshift-example-deployment.yml resource
[INFO] F8: validating /Users/starksm/Dev/JBoss/Microprofile/microprofile-openshift-example/target/classes/META-INF/fabric8/kubernetes/microprofile-openshift-example-service.yml resource
[INFO] F8: validating /Users/starksm/Dev/JBoss/Microprofile/microprofile-openshift-example/target/classes/META-INF/fabric8/kubernetes/microprofile-openshift-example-route.yml resource
[INFO] F8: using resource templates from /Users/starksm/Dev/JBoss/Microprofile/microprofile-openshift-example/src/main/fabric8
[INFO] F8: fmp-controller: Adding a default DeploymentConfig
[INFO] F8: fmp-service: Adding a default service 'microprofile-openshift-example' with ports [8080]
[INFO] F8: f8-healthcheck-wildfly-swarm: Adding readiness probe on port 8080, path='/health', scheme='HTTP', with initial delay 10 seconds
[INFO] F8: f8-healthcheck-wildfly-swarm: Adding liveness probe on port 8080, path='/health', scheme='HTTP', with initial delay 180 seconds
[INFO] F8: fmp-revision-history: Adding revision history limit to 2
[INFO] F8: validating /Users/starksm/Dev/JBoss/Microprofile/microprofile-openshift-example/target/classes/META-INF/fabric8/openshift/microprofile-openshift-example-deploymentconfig.yml resource
[INFO] F8: validating /Users/starksm/Dev/JBoss/Microprofile/microprofile-openshift-example/target/classes/META-INF/fabric8/openshift/microprofile-openshift-example-service.yml resource
[INFO] F8: validating /Users/starksm/Dev/JBoss/Microprofile/microprofile-openshift-example/target/classes/META-INF/fabric8/openshift/microprofile-openshift-example-route.yml resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ microprofile-openshift-example ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ microprofile-openshift-example ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/starksm/Dev/JBoss/Microprofile/microprofile-openshift-example/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ microprofile-openshift-example ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ microprofile-openshift-example ---
[INFO] No tests to run.
[INFO] 
[INFO] --- maven-war-plugin:2.2:war (default-war) @ microprofile-openshift-example ---
[INFO] Packaging webapp
[INFO] Assembling webapp [microprofile-openshift-example] in [/Users/starksm/Dev/JBoss/Microprofile/microprofile-openshift-example/target/numbers]
[INFO] Processing war project
[INFO] Webapp assembled in [141 msecs]
[INFO] Building war: /Users/starksm/Dev/JBoss/Microprofile/microprofile-openshift-example/target/numbers.war
[INFO] 
[INFO] --- wildfly-swarm-plugin:2017.12.1:package (default) @ microprofile-openshift-example ---
Resolving 100 out of 345 artifacts
[INFO] Repackaging .war: /Users/starksm/Dev/JBoss/Microprofile/microprofile-openshift-example/target/numbers.war
[INFO] Repackaged .war: /Users/starksm/Dev/JBoss/Microprofile/microprofile-openshift-example/target/numbers.war
[INFO] 
[INFO] --- fabric8-maven-plugin:4.1.0:build (default) @ microprofile-openshift-example ---
[INFO] F8: Running in OpenShift mode
[INFO] F8: Using OpenShift build with strategy S2I
[INFO] F8: Running generator wildfly-swarm
[INFO] F8: wildfly-swarm: Using Docker image fabric8/s2i-java:2.3 as base / builder
[INFO] Copying files to /Users/starksm/Dev/JBoss/Microprofile/microprofile-openshift-example/target/docker/microprofile-openshift-example/latest/build/maven
[INFO] Building tar: /Users/starksm/Dev/JBoss/Microprofile/microprofile-openshift-example/target/docker/microprofile-openshift-example/latest/tmp/docker-build.tar
[INFO] F8: [microprofile-openshift-example:latest] "wildfly-swarm": Created docker source tar /Users/starksm/Dev/JBoss/Microprofile/microprofile-openshift-example/target/docker/microprofile-openshift-example/latest/tmp/docker-build.tar
[INFO] F8: Creating BuildServiceConfig microprofile-openshift-example-s2i for Source build
[INFO] F8: Creating ImageStream microprofile-openshift-example
[INFO] F8: Starting Build microprofile-openshift-example-s2i
[INFO] F8: Waiting for build microprofile-openshift-example-s2i-1 to complete...
[INFO] F8: Caching blobs under "/var/cache/blobs".
[INFO] F8: Getting image source signatures
[INFO] F8: Copying blob sha256:d6fff4bb0996493ee898ab513fb1570c797d91a2d77365cb8ce60ac995d61bef
[INFO] F8: Copying blob sha256:1fdb7be5b7e04d78c06271c1fac140923afd7fceba99e670b43a4caeb9e12fe7
[INFO] F8: Copying blob sha256:7dc0dca2b1516961d6b3200564049db0a6e0410b370bb2189e2efae0d368616f
[INFO] F8: Copying blob sha256:e39e0acd05a132f9851ab89aa9c003304acaea15239d98a49e66e1a9c82b897f
[INFO] F8: Copying blob sha256:4b44292fec1d5442d3e34b2c3adb430711d3c231d70954a9d42d2217f959a3a5
[INFO] F8: Copying blob sha256:2fab1038512362e3ecc53bd088d15b573554228e40c3a8c2b6a35dd034319d2e
[INFO] F8: Copying blob sha256:3b0e4c1fe20d89e41b1a408582ee80141da58e972e1e85bb67a3bbb723ac5ba9
[INFO] F8: Copying blob sha256:edd9a9ea806e66bc81595225cd1eb3587288e91c3f0e7a0e050d090529da899c
[INFO] F8: Copying blob sha256:279f9e9dbd81ffde465c3613c8d42668fc7f90fcdd0ea2fc096dbe00d422ad3d
[INFO] F8: Copying blob sha256:444e42197d037bb691bfd39d27dadfddf260c117e648287ffdc9d06b0deb9d9b
[INFO] F8: Copying blob sha256:728478adadf64ecda279321079d1a30871f5698a434390e893f4924cc3f3772b
[INFO] F8: Copying blob sha256:e7886c5bdbb9091a5fa49fecb3b38ae3b86b4dc3d898f35868ea304a07858fb1
[INFO] F8: Copying blob sha256:d4feb2e228a99db66740d8a9716e7b425433cf76c6c96ace4a240a48db221b8a
[INFO] F8: Copying blob sha256:05562722fbe3d386d80195a54e38230f27521c800957f861bbe1f4aa16cee114
[INFO] F8: Copying blob sha256:8700ab630acc9c991fd8c8d432f57f8e667269a84cd6c4af7d4bb526d39a7fbd
[INFO] F8: Copying blob sha256:5d7ab3a9fe79144e76610e53f4ca88facbaa68d78a4d652dd5ec01b502a15eef
[INFO] F8: Copying blob sha256:6df3de21051156aa46c745270ffeaad903d7457901761412c7fdcc175425b11c
[INFO] F8: Copying blob sha256:86b908ea994135af1d1bebc0376f820b833c710d54db966a6248bfce32a6b0f0
[INFO] F8: Copying blob sha256:b1e6f56c9412d73422f3d05a420d8060910afe9df98eab26b64f2419be72b41c
[INFO] F8: Copying blob sha256:5530204593f325c8521f77e253694b97cc5390d1e14d0493c35b0eb75f4bc57e
[INFO] F8: Copying blob sha256:dd32d2faf9fa4e68f8a7195033339c20be7c43096b490f7e39f9778f2ba56e8b
[INFO] F8: Copying blob sha256:2bea995a93a4fb35fffb148c149f340652271706e452e5f49f7e30988b29fe33
[INFO] F8: Copying blob sha256:dde9d98ac0071a3ace2bd04b41e99cc440183f7a26083253bb612b9e5955f8ee
[INFO] F8: Copying blob sha256:94b14ee1a4420484af51a0ed5b9457c83523b69effdbfa57c0704501f19431e2
[INFO] F8: Copying blob sha256:854b48faa47da5e0268a141d13643359a3c01bbf40ef42361d2ee884715ecdf8
[INFO] F8: Copying blob sha256:b66cdd67f702702aa7ed8edbac84cd97c42e8357a5a519e57d94dc23ad144a64
[INFO] F8: Copying config sha256:10a0b9c43308245e87a0fef6a30e759ff18af8412788b28161afe04d02c990aa
[INFO] F8: Writing manifest to image destination
[INFO] F8: Storing signatures
[INFO] F8: Generating dockerfile with builder image fabric8/s2i-java:2.3
[INFO] F8: STEP 1: FROM fabric8/s2i-java:2.3
[INFO] F8: STEP 2: LABEL "io.openshift.build.image"="fabric8/s2i-java:2.3" "io.openshift.build.source-location"="/tmp/build/inputs"
[INFO] F8: STEP 3: ENV AB_PROMETHEUS_OFF="true" JAVA_APP_DIR="/deployments" OPENSHIFT_BUILD_NAME="microprofile-openshift-example-s2i-1" OPENSHIFT_BUILD_NAMESPACE="microprofile-openshift-example"
[INFO] F8: STEP 4: USER root
[INFO] F8: STEP 5: COPY upload/src /tmp/src
[INFO] F8: STEP 6: RUN chown -R 1000:0 /tmp/src
[INFO] F8: time="2019-06-28T04:39:14Z" level=warning msg="pkg/chroot: error unmounting \"/tmp/buildah134696821/mnt/rootfs\": error checking if \"/tmp/buildah134696821/mnt/rootfs/sys/fs/cgroup/blkio\" is mounted: no such file or directory"
[INFO] F8: time="2019-06-28T04:39:14Z" level=warning msg="pkg/bind: error unmounting \"/tmp/buildah134696821/mnt/rootfs\": error checking if \"/tmp/buildah134696821/mnt/rootfs/sys/fs/cgroup/blkio\" is mounted: no such file or directory"
[INFO] F8: STEP 7: USER 1000
[INFO] F8: STEP 8: RUN /usr/local/s2i/assemble
[INFO] F8: ==================================================================
[INFO] F8: Starting S2I Java Build .....
[INFO] F8: S2I binary build from fabric8-maven-plugin detected
[INFO] F8: Copying binaries from /tmp/src/maven to /deployments ...
[INFO] F8: Checking for fat jar archive...
[INFO] F8: Found numbers-swarm.jar...
[INFO] F8: ... done
[INFO] F8: time="2019-06-28T04:39:15Z" level=warning msg="pkg/chroot: error unmounting \"/tmp/buildah590448726/mnt/rootfs\": error checking if \"/tmp/buildah590448726/mnt/rootfs/sys/fs/cgroup/blkio\" is mounted: no such file or directory"
[INFO] F8: time="2019-06-28T04:39:15Z" level=warning msg="pkg/bind: error unmounting \"/tmp/buildah590448726/mnt/rootfs\": error checking if \"/tmp/buildah590448726/mnt/rootfs/sys/fs/cgroup/blkio\" is mounted: no such file or directory"
[INFO] F8: STEP 9: CMD /usr/local/s2i/run
[INFO] F8: STEP 10: COMMIT temp.builder.openshift.io/microprofile-openshift-example/microprofile-openshift-example-s2i-1:e50f8816
[INFO] F8: Getting image source signatures
[INFO] F8: Copying blob sha256:bcc97fbfc9e1a709f0eb78c1da59caeb65f43dc32cd5deeb12b8c1784e5b8237
[INFO] F8: Copying blob sha256:4dbf6f8e65266ba1033bc933ee4e93e4fd5a5c912fe312ae0bd4b8349315c927
[INFO] F8: Copying blob sha256:f515d4009e192a6828b8cbfe57b44282f3f7f94dd770bc24fbd7667b46104402
[INFO] F8: Copying blob sha256:187068858de1a1bfe819ed2daaedf98165ff4f2fdfa94688a8a210da94d03a5a
[INFO] F8: Copying blob sha256:67f9d5f2d2adc7dc615c7c19bb2d359cc09542507f580aa1063447b11888f2c1
[INFO] F8: Copying blob sha256:b0e776602fb699508f7542ff79226b4989e682fc6e8c9ad333c415036163dada
[INFO] F8: Copying blob sha256:99655d012649feba5723686e613e7043b922763d4eb32bf8e8fbae22197eb422
[INFO] F8: Copying blob sha256:5cf9675b81d43432c669204eaa519cdff16a72ad77840c65422a9140f9069259
[INFO] F8: Copying blob sha256:204e205d6a8324c6f2bf8a87c03da3aae056c7a3a05891e78ae10bb9669ec506
[INFO] F8: Copying blob sha256:44c74b2d9af7905e9a48f6b246fada3954d8bfaffa632b4e3d4544dd7d098e0b
[INFO] F8: Copying blob sha256:b0de499398d7e7688d6dc462fd86c3700e450d71056b0914f20c044ecb3900c8
[INFO] F8: Copying blob sha256:78420d45c69a3114490cd4860235c1be87f4aa1e8e184fb25ae87f90df6a9e5e
[INFO] F8: Copying blob sha256:3a434c575e66c5a1f9fe176493327c1217530137ccb9ce9358ec9eaf15c85f5e
[INFO] F8: Copying blob sha256:2db8eeafbb0b25b92852fe703d16dbac4f4a0e463f414c48622d983ef35c56d8
[INFO] F8: Copying blob sha256:c449eef1f16d06a058450cd46b21c68209faf63df9fafc96beff11b1f6741436
[INFO] F8: Copying blob sha256:f0846f8cd3abd07702a44e64f03fec86d4c1ed62ce34800d966dd612dc9aa706
[INFO] F8: Copying blob sha256:26c09e9455ec6c4f46ebe63c8bd0e66462a66387e84c47b57960903ec561e651
[INFO] F8: Copying blob sha256:b46fa3b23bb587f36e2ddc7302325a0656612d3e25f1014ea1542ef1a7a11f18
[INFO] F8: Copying blob sha256:4cc79f25d469867943caffadc23cbbf04fd0fa197f9970971a895e87e9144c2f
[INFO] F8: Copying blob sha256:836bbeb65dcf9de34a98d9d5014115599a2d0a96f45a2c27467d163e6a2e65a1
[INFO] F8: Copying blob sha256:f38efdc13981a067765e03cbdb73a0396c13f201d60fe2af5587dcf3f2c7e4a8
[INFO] F8: Copying blob sha256:e42b0d9852430bd040f4dd7c456f5e0f8a7610bea08c17d0a8052ca65fcfc7dd
[INFO] F8: Copying blob sha256:e91c797f917d1e3084836cd13ba0d6328951853f08da7d9791af51ce22bcc7e1
[INFO] F8: Copying blob sha256:7d50259746069942dcb4ea1a531ed9d7294f264597519ef328a84cadd66a5a12
[INFO] F8: Copying blob sha256:51386491d44c61f9d5572100154a295567450ffcdaf49a4a3cce1fab90583604
[INFO] F8: Copying blob sha256:5bb5ed700464aea14a6c007e8fea1c7a2dd8776701bb72b91332f3cf9abe7291
[INFO] F8: Copying blob sha256:c77c1ced83cda2d3099400b91da1aaedbb0c260df62e0d6f4a0b699ea42d9bd2
[INFO] F8: Copying config sha256:fa48a9665326dda7f9adb921f30d1e38ca42c9c661c7998c3363a80e42967294
[INFO] F8: Writing manifest to image destination
[INFO] F8: Storing signatures
[INFO] F8: --> fa48a9665326dda7f9adb921f30d1e38ca42c9c661c7998c3363a80e42967294
[INFO] F8: 
[INFO] F8: Pushing image image-registry.openshift-image-registry.svc:5000/microprofile-openshift-example/microprofile-openshift-example:latest ...
[INFO] F8: Getting image source signatures
[INFO] F8: Copying blob sha256:7dc0dca2b1516961d6b3200564049db0a6e0410b370bb2189e2efae0d368616f
[INFO] F8: Copying blob sha256:1fdb7be5b7e04d78c06271c1fac140923afd7fceba99e670b43a4caeb9e12fe7
[INFO] F8: Copying blob sha256:e39e0acd05a132f9851ab89aa9c003304acaea15239d98a49e66e1a9c82b897f
[INFO] F8: Copying blob sha256:4b44292fec1d5442d3e34b2c3adb430711d3c231d70954a9d42d2217f959a3a5
[INFO] F8: Copying blob sha256:d6fff4bb0996493ee898ab513fb1570c797d91a2d77365cb8ce60ac995d61bef
[INFO] F8: Copying blob sha256:2fab1038512362e3ecc53bd088d15b573554228e40c3a8c2b6a35dd034319d2e
[INFO] F8: Copying blob sha256:edd9a9ea806e66bc81595225cd1eb3587288e91c3f0e7a0e050d090529da899c
[INFO] F8: Copying blob sha256:3b0e4c1fe20d89e41b1a408582ee80141da58e972e1e85bb67a3bbb723ac5ba9
[INFO] F8: Copying blob sha256:279f9e9dbd81ffde465c3613c8d42668fc7f90fcdd0ea2fc096dbe00d422ad3d
[INFO] F8: Copying blob sha256:444e42197d037bb691bfd39d27dadfddf260c117e648287ffdc9d06b0deb9d9b
[INFO] F8: Copying blob sha256:d4feb2e228a99db66740d8a9716e7b425433cf76c6c96ace4a240a48db221b8a
[INFO] F8: Copying blob sha256:728478adadf64ecda279321079d1a30871f5698a434390e893f4924cc3f3772b
[INFO] F8: Copying blob sha256:e7886c5bdbb9091a5fa49fecb3b38ae3b86b4dc3d898f35868ea304a07858fb1
[INFO] F8: Copying blob sha256:05562722fbe3d386d80195a54e38230f27521c800957f861bbe1f4aa16cee114
[INFO] F8: Copying blob sha256:8700ab630acc9c991fd8c8d432f57f8e667269a84cd6c4af7d4bb526d39a7fbd
[INFO] F8: Copying blob sha256:6df3de21051156aa46c745270ffeaad903d7457901761412c7fdcc175425b11c
[INFO] F8: Copying blob sha256:5d7ab3a9fe79144e76610e53f4ca88facbaa68d78a4d652dd5ec01b502a15eef
[INFO] F8: Copying blob sha256:86b908ea994135af1d1bebc0376f820b833c710d54db966a6248bfce32a6b0f0
[INFO] F8: Copying blob sha256:b1e6f56c9412d73422f3d05a420d8060910afe9df98eab26b64f2419be72b41c
[INFO] F8: Copying blob sha256:5530204593f325c8521f77e253694b97cc5390d1e14d0493c35b0eb75f4bc57e
[INFO] F8: Copying blob sha256:2bea995a93a4fb35fffb148c149f340652271706e452e5f49f7e30988b29fe33
[INFO] F8: Copying blob sha256:dd32d2faf9fa4e68f8a7195033339c20be7c43096b490f7e39f9778f2ba56e8b
[INFO] F8: Copying blob sha256:dde9d98ac0071a3ace2bd04b41e99cc440183f7a26083253bb612b9e5955f8ee
[INFO] F8: Copying blob sha256:94b14ee1a4420484af51a0ed5b9457c83523b69effdbfa57c0704501f19431e2
[INFO] F8: Copying blob sha256:854b48faa47da5e0268a141d13643359a3c01bbf40ef42361d2ee884715ecdf8
[INFO] F8: Copying blob sha256:b66cdd67f702702aa7ed8edbac84cd97c42e8357a5a519e57d94dc23ad144a64
[INFO] F8: Copying blob sha256:c77c1ced83cda2d3099400b91da1aaedbb0c260df62e0d6f4a0b699ea42d9bd2
[INFO] F8: Copying config sha256:fa48a9665326dda7f9adb921f30d1e38ca42c9c661c7998c3363a80e42967294
[INFO] F8: Writing manifest to image destination
[INFO] F8: Storing signatures
[INFO] F8: Push successful
[INFO] F8: Build microprofile-openshift-example-s2i-1 in status Complete
[INFO] F8: Found tag on ImageStream microprofile-openshift-example tag: sha256:49f2eedb07a78572b649f49fee09abd03e65dd82bfc5101aed517dcd8e6629e2
[INFO] F8: ImageStream microprofile-openshift-example written to /Users/starksm/Dev/JBoss/Microprofile/microprofile-openshift-example/target/microprofile-openshift-example-is.yml
[INFO] 
[INFO] --- maven-install-plugin:2.4:install (default-install) @ microprofile-openshift-example ---
[INFO] Installing /Users/starksm/Dev/JBoss/Microprofile/microprofile-openshift-example/target/numbers.war to /Users/starksm/.m2/repository/net/jmesnil/microprofile-openshift-example/1.0.0-SNAPSHOT/microprofile-openshift-example-1.0.0-SNAPSHOT.war
[INFO] Installing /Users/starksm/Dev/JBoss/Microprofile/microprofile-openshift-example/pom.xml to /Users/starksm/.m2/repository/net/jmesnil/microprofile-openshift-example/1.0.0-SNAPSHOT/microprofile-openshift-example-1.0.0-SNAPSHOT.pom
[INFO] Installing /Users/starksm/Dev/JBoss/Microprofile/microprofile-openshift-example/target/classes/META-INF/fabric8/kubernetes.yml to /Users/starksm/.m2/repository/net/jmesnil/microprofile-openshift-example/1.0.0-SNAPSHOT/microprofile-openshift-example-1.0.0-SNAPSHOT-kubernetes.yml
[INFO] Installing /Users/starksm/Dev/JBoss/Microprofile/microprofile-openshift-example/target/classes/META-INF/fabric8/openshift.yml to /Users/starksm/.m2/repository/net/jmesnil/microprofile-openshift-example/1.0.0-SNAPSHOT/microprofile-openshift-example-1.0.0-SNAPSHOT-openshift.yml
[INFO] Installing /Users/starksm/Dev/JBoss/Microprofile/microprofile-openshift-example/target/numbers-swarm.jar to /Users/starksm/.m2/repository/net/jmesnil/microprofile-openshift-example/1.0.0-SNAPSHOT/microprofile-openshift-example-1.0.0-SNAPSHOT-swarm.jar
[INFO] Installing /Users/starksm/Dev/JBoss/Microprofile/microprofile-openshift-example/target/microprofile-openshift-example-is.yml to /Users/starksm/.m2/repository/net/jmesnil/microprofile-openshift-example/1.0.0-SNAPSHOT/microprofile-openshift-example-1.0.0-SNAPSHOT-is.yml
[INFO] 
[INFO] <<< fabric8-maven-plugin:4.1.0:deploy (default-cli) < install @ microprofile-openshift-example <<<
[INFO] 
[INFO] 
[INFO] --- fabric8-maven-plugin:4.1.0:deploy (default-cli) @ microprofile-openshift-example ---
[INFO] F8: Using OpenShift at https://api.us-west-2.online-starter.openshift.com:6443/ in namespace microprofile-openshift-example with manifest /Users/starksm/Dev/JBoss/Microprofile/microprofile-openshift-example/target/classes/META-INF/fabric8/openshift.yml 
[INFO] OpenShift platform detected
[INFO] F8: Using project: microprofile-openshift-example
[INFO] F8: Creating a Service from openshift.yml namespace microprofile-openshift-example name microprofile-openshift-example
[INFO] F8: Created Service: target/fabric8/applyJson/microprofile-openshift-example/service-microprofile-openshift-example.json
[INFO] F8: Creating a DeploymentConfig from openshift.yml namespace microprofile-openshift-example name microprofile-openshift-example
[INFO] F8: Created DeploymentConfig: target/fabric8/applyJson/microprofile-openshift-example/deploymentconfig-microprofile-openshift-example.json
[INFO] F8: Creating Route microprofile-openshift-example:microprofile-openshift-example host: null
[ERROR] F8: Failed to create Route from openshift.yml. io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: POST at: https://api.us-west-2.online-starter.openshift.com:6443/oapi/v1/namespaces/microprofile-openshift-example/routes. Message: Forbidden! User si-redhat/api-us-west-2-online-starter-openshift-com:6443 doesn't have permission. forbidden: User "si-redhat" cannot post path "/oapi/v1/namespaces/microprofile-openshift-example/routes".. Route(apiVersion=v1, kind=Route, metadata=ObjectMeta(annotations=null, clusterName=null, creationTimestamp=null, deletionGracePeriodSeconds=null, deletionTimestamp=null, finalizers=[], generateName=null, generation=null, initializers=null, labels={app=microprofile-openshift-example, provider=fabric8, version=1.0.0-SNAPSHOT, group=net.jmesnil}, name=microprofile-openshift-example, namespace=null, ownerReferences=[], resourceVersion=null, selfLink=null, uid=null, additionalProperties={}), spec=RouteSpec(alternateBackends=[], host=null, path=null, port=RoutePort(targetPort=IntOrString(IntVal=8080, Kind=null, StrVal=null, additionalProperties={}), additionalProperties={}), tls=null, to=RouteTargetReference(kind=Service, name=microprofile-openshift-example, weight=null, additionalProperties={}), wildcardPolicy=null, additionalProperties={}), status=null, additionalProperties={}): io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: POST at: https://api.us-west-2.online-starter.openshift.com:6443/oapi/v1/namespaces/microprofile-openshift-example/routes. Message: Forbidden! User si-redhat/api-us-west-2-online-starter-openshift-com:6443 doesn't have permission. forbidden: User "si-redhat" cannot post path "/oapi/v1/namespaces/microprofile-openshift-example/routes".
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  02:01 min
[INFO] Finished at: 2019-06-27T21:39:43-07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.fabric8:fabric8-maven-plugin:4.1.0:deploy (default-cli) on project microprofile-openshift-example: Failed to create Route from openshift.yml. io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: POST at: https://api.us-west-2.online-starter.openshift.com:6443/oapi/v1/namespaces/microprofile-openshift-example/routes. Message: Forbidden! User si-redhat/api-us-west-2-online-starter-openshift-com:6443 doesn't have permission. forbidden: User "si-redhat" cannot post path "/oapi/v1/namespaces/microprofile-openshift-example/routes".. Route(apiVersion=v1, kind=Route, metadata=ObjectMeta(annotations=null, clusterName=null, creationTimestamp=null, deletionGracePeriodSeconds=null, deletionTimestamp=null, finalizers=[], generateName=null, generation=null, initializers=null, labels={app=microprofile-openshift-example, provider=fabric8, version=1.0.0-SNAPSHOT, group=net.jmesnil}, name=microprofile-openshift-example, namespace=null, ownerReferences=[], resourceVersion=null, selfLink=null, uid=null, additionalProperties={}), spec=RouteSpec(alternateBackends=[], host=null, path=null, port=RoutePort(targetPort=IntOrString(IntVal=8080, Kind=null, StrVal=null, additionalProperties={}), additionalProperties={}), tls=null, to=RouteTargetReference(kind=Service, name=microprofile-openshift-example, weight=null, additionalProperties={}), wildcardPolicy=null, additionalProperties={}), status=null, 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
Scotts-iMacPro:microprofile-openshift-example starksm$ 

I suppose the fabric8 plugin or something is out of date. Have you run this recently?

jmesnil commented 5 years ago

@starksm64 I've not run it recently. It's likely the fabric8 plugin is not up to date with the latest openshift.

Using mvn fabric8:create-routes might give some additional info https://fabric8.io/guide/mavenFabric8CreateRoutes.html

jmesnil commented 5 years ago

or creating a route from route.yml may no longer be valid on OpenShift Online...

eformat commented 5 years ago

try changing to Route api version in your fragment that matches OCP 4.X

apiVersion: route.openshift.io/v1

and reapply

 mvn fabric8:resource fabric8:resource-apply

i tested using the 4.2.0 mfp version. hth