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 #13542

Closed
gsmet opened this issue Nov 29, 2020 · 3 comments · Fixed by #15584
Closed

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

gsmet opened this issue Nov 29, 2020 · 3 comments · Fixed by #15584
Assignees
Labels
Milestone

Comments

@gsmet
Copy link
Member

gsmet commented Nov 29, 2020

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.

@gsmet gsmet added the kind/bug Something isn't working label Nov 29, 2020
@ghost
Copy link

ghost commented Nov 29, 2020

/cc @geoand, @quarkusio/devtools

@maxandersen
Copy link
Member

@iocanel is that similar to the bug you mentoined last week about mvn build not failing properly ?

@iocanel
Copy link
Contributor

iocanel commented Nov 29, 2020

@maxandersen yeah, it's the exact same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants