Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
snowdrop-bot opened this issue Feb 17, 2021 · 0 comments
Closed
Assignees
Labels
7 - Community development upstream/closed The issue has been closed in the upstream repository

Comments

@snowdrop-bot
Copy link
Collaborator

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.


quarkusio#13542


$upstream:13542$

@snowdrop-bot snowdrop-bot added the upstream/closed The issue has been closed in the upstream repository label Mar 11, 2021
@iocanel iocanel closed this as completed Mar 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
7 - Community development upstream/closed The issue has been closed in the upstream repository
Projects
None yet
Development

No branches or pull requests

2 participants