snowdrop-zen / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
1 stars 0 forks source link

Failing OpenShift deployment not reporting the error to the Maven build #273

Closed snowdrop-bot closed 3 years ago

snowdrop-bot commented 3 years ago

When deploying a native app to OpenShift, I had the following error on deployment on the OpenShift side:

Receiving source from STDIN as archive ...
Pulling image "quay.io/quarkus/ubi-quarkus-native-binary-s2i@sha256:b28dc7f74d1619a1fe6d30337750d69e9e676f1784241d6394aa90351367edb0" ...
pulling image error : manifest for quay.io/quarkus/ubi-quarkus-native-binary-s2i@sha256:b28dc7f74d1619a1fe6d30337750d69e9e676f1784241d6394aa90351367edb0 not found
error: build error: unable to get quay.io/quarkus/ubi-quarkus-native-binary-s2i@sha256:b28dc7f74d1619a1fe6d30337750d69e9e676f1784241d6394aa90351367edb0

and my app wasn't deployed.

The Maven build was successful though:

[INFO] Checking for existing resources in: /data/home/gsmet/git/my-java-app/src/main/kubernetes.
[INFO] [io.quarkus.container.image.openshift.deployment.OpenshiftProcessor] Performing openshift binary build with native image on server: https://api.pro-us-east-1.openshift.com:443/ in namespace:quarkusio.
[INFO] [io.quarkus.container.image.openshift.deployment.OpenshiftProcessor] Applied: ImageStream my-java-app
[INFO] [io.quarkus.container.image.openshift.deployment.OpenshiftProcessor] Found: ImageStream ubi-quarkus-native-binary-s2i repository: quay.io/quarkus/ubi-quarkus-native-binary-s2i
[INFO] [io.quarkus.container.image.openshift.deployment.OpenshiftProcessor] Applied: BuildConfig my-java-app
[INFO] [io.quarkus.container.image.openshift.deployment.OpenshiftProcessor] Receiving source from STDIN as archive ...
[INFO] [io.quarkus.kubernetes.deployment.KubernetesDeployer] Deploying to openshift server: https://api.pro-us-east-1.openshift.com:443/ in namespace: quarkusio.
[INFO] [io.quarkus.kubernetes.deployment.KubernetesDeployer] Applied: Service my-java-app.
[INFO] [io.quarkus.kubernetes.deployment.KubernetesDeployer] Applied: ImageStream my-java-app.
[INFO] [io.quarkus.kubernetes.deployment.KubernetesDeployer] Applied: ImageStream ubi-quarkus-native-binary-s2i.
[INFO] [io.quarkus.kubernetes.deployment.KubernetesDeployer] Applied: BuildConfig my-java-app.
[INFO] [io.quarkus.kubernetes.deployment.KubernetesDeployer] Applied: DeploymentConfig my-java-app.
[INFO] [io.quarkus.deployment.QuarkusAugmentor] Quarkus augmentation completed in 111727ms
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:54 min
[INFO] Finished at: 2020-11-29T22:08:58+01:00
[INFO] ------------------------------------------------------------------------

but here is the output of a really successful build:

[INFO] [io.quarkus.container.image.openshift.deployment.OpenshiftProcessor] Performing openshift binary build with native image on server: https://api.pro-us-east-1.openshift.com:443/ in namespace:quarkusio.
[INFO] [io.quarkus.container.image.openshift.deployment.OpenshiftProcessor] Applied: ImageStream my-java-app
[INFO] [io.quarkus.container.image.openshift.deployment.OpenshiftProcessor] Found: ImageStream ubi-quarkus-native-binary-s2i repository: quay.io/quarkus/ubi-quarkus-native-binary-s2i
[INFO] [io.quarkus.container.image.openshift.deployment.OpenshiftProcessor] Applied: BuildConfig my-java-app
[INFO] [io.quarkus.container.image.openshift.deployment.OpenshiftProcessor] Receiving source from STDIN as archive ...
[INFO] [io.quarkus.container.image.openshift.deployment.OpenshiftProcessor] Pulling image "quay.io/quarkus/ubi-quarkus-native-binary-s2i@sha256:aa9945131aa18d716def675cee0f565817c5315bc44c38326d321b5e66e8cfff" ...
[INFO] [io.quarkus.container.image.openshift.deployment.OpenshiftProcessor] Using quay.io/quarkus/ubi-quarkus-native-binary-s2i@sha256:aa9945131aa18d716def675cee0f565817c5315bc44c38326d321b5e66e8cfff as the s2i builder image
[INFO] [io.quarkus.container.image.openshift.deployment.OpenshiftProcessor] Building with uploaded src from /tmp/src/
[INFO] [io.quarkus.container.image.openshift.deployment.OpenshiftProcessor] Assemblying
[INFO] [io.quarkus.container.image.openshift.deployment.OpenshiftProcessor] + SRC_DIR=/tmp/src/
[INFO] [io.quarkus.container.image.openshift.deployment.OpenshiftProcessor] + echo 'Building with uploaded src from /tmp/src/'
[INFO] [io.quarkus.container.image.openshift.deployment.OpenshiftProcessor] + echo Assemblying
[INFO] [io.quarkus.container.image.openshift.deployment.OpenshiftProcessor] ++ wc -l
[INFO] [io.quarkus.container.image.openshift.deployment.OpenshiftProcessor] ++ ls /tmp/src//my-java-app-1.0-SNAPSHOT-runner
[INFO] [io.quarkus.container.image.openshift.deployment.OpenshiftProcessor] + '[' 1 -eq 1 ']'
[INFO] [io.quarkus.container.image.openshift.deployment.OpenshiftProcessor] ++ ls /tmp/src//my-java-app-1.0-SNAPSHOT-runner
[INFO] [io.quarkus.container.image.openshift.deployment.OpenshiftProcessor] + app_path=/tmp/src//my-java-app-1.0-SNAPSHOT-runner
[INFO] [io.quarkus.container.image.openshift.deployment.OpenshiftProcessor] + cp -v /tmp/src//my-java-app-1.0-SNAPSHOT-runner /home/quarkus/application
[INFO] [io.quarkus.container.image.openshift.deployment.OpenshiftProcessor] '/tmp/src//my-java-app-1.0-SNAPSHOT-runner' -> '/home/quarkus/application'
[INFO] [io.quarkus.container.image.openshift.deployment.OpenshiftProcessor] + chmod +x /home/quarkus/application
[INFO] [io.quarkus.container.image.openshift.deployment.OpenshiftProcessor] + chmod +rx /home/quarkus
[INFO] [io.quarkus.container.image.openshift.deployment.OpenshiftProcessor] + chmod +x /home/quarkus/application
[INFO] [io.quarkus.container.image.openshift.deployment.OpenshiftProcessor] 
[INFO] [io.quarkus.container.image.openshift.deployment.OpenshiftProcessor] Pushing image docker-registry.default.svc:5000/quarkusio/my-java-app:1.0-SNAPSHOT ...
[INFO] [io.quarkus.container.image.openshift.deployment.OpenshiftProcessor] Pushed 2/4 layers, 52% complete
[INFO] [io.quarkus.container.image.openshift.deployment.OpenshiftProcessor] Pushed 3/4 layers, 96% complete
[INFO] [io.quarkus.container.image.openshift.deployment.OpenshiftProcessor] Pushed 4/4 layers, 100% complete
[INFO] [io.quarkus.container.image.openshift.deployment.OpenshiftProcessor] Push successful
[INFO] [io.quarkus.kubernetes.deployment.KubernetesDeployer] Deploying to openshift server: https://api.pro-us-east-1.openshift.com:443/ in namespace: quarkusio.
[INFO] [io.quarkus.kubernetes.deployment.KubernetesDeployer] Applied: Service my-java-app.
[INFO] [io.quarkus.kubernetes.deployment.KubernetesDeployer] Applied: ImageStream my-java-app.
[INFO] [io.quarkus.kubernetes.deployment.KubernetesDeployer] Applied: ImageStream ubi-quarkus-native-binary-s2i.
[INFO] [io.quarkus.kubernetes.deployment.KubernetesDeployer] Applied: BuildConfig my-java-app.
[INFO] [io.quarkus.kubernetes.deployment.KubernetesDeployer] Applied: DeploymentConfig my-java-app.
[INFO] [io.quarkus.deployment.QuarkusAugmentor] Quarkus augmentation completed in 133950ms

As you can see, it has a lot more steps.

So it looks like we are not propagating the error correctly to the Quarkus side.


https://github.com/quarkusio/quarkus/issues/13542


$upstream:13542$