-
Notifications
You must be signed in to change notification settings - Fork 60
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
ubi8-openjdk-11 S2I Image not working with Quarkus in Openshift #264
Comments
Can you confirm please the exact image versions that you have experienced this problem with (for example, registry.access.redhat.com/ubi8/openjdk-11:1.11-1 ?) and the OpenShift version you are running them on? My hunch is this is a permissions issue relating to the host, perhaps something to do with seccomp filters or selinux labels. |
I tried today (unsuccessfully) with: registry.access.redhat.com/ubi8/openjdk-11:1.11-2 The server versions are: Thnx |
You seem to be using an out-of-support version of OpenShift. The only still active version of the 3.x line is 3.11. See https://access.redhat.com/support/policy/updates/openshift_noncurrent Can you reproduce this with a supported OpenShift version? |
I tried with the following: OpenShift Master: Quarkus Ubi8 image Same results. |
Hi there, did you find a solution? I'm facing the same issue. |
carlossg/docker-maven#221 points to docker-library/openjdk#465 (comment) which points to this being a docker/podman (runc / security rules issue). However I can't see / trace down how that analysis was done or what actual issue these systems have that lead to this. |
I'm not entirely sure but if this is the same/similar issue to those reported at docker-maven and docker-library/openjdk (which are completely separate and unrelated images to here, fwiw), this could be to do with seccomp filters and a discrepancy between the calls used by the images and those in the filter policy on the host. OpenShift 3.11's End of Maintenance Schedule is June, 2022, or just under two weeks time. After that point (unless something changes) we are likely to make changes to these images which are incompatible with running on OCP 3.11. I would strongly recommend migrating to OCP 4. |
No.. |
https://github.com/zg-riband/testubi8jdk11s2iquarkus
(I added only .s2i directory with environment file)
oc import-image ubi8-openjdk-11 --from=registry.access.redhat.com/ubi8/openjdk-11 --confirm
oc new-app ubi8-openjdk-11 https://github.com/zg-riband/testubi8jdk11s2iquarkus.git --name=ubi8-openjdk-11-app
Than I got this error:
INFO Performing Maven build in /tmp/src
INFO Using MAVEN_OPTS -Xms32m -Xmx128m -XX:+UseParallelGC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -XX:+ExitOnOutOfMemoryError
ls: cannot access '/usr/bin/mvn': Operation not permitted
Error: Could not find or load main class org.codehaus.plexus.classworlds.launcher.Launcher
Caused by: java.lang.ClassNotFoundException: org.codehaus.plexus.classworlds.launcher.Launcher
INFO Using
INFO Running 'mvn -e -Popenshift -DskipTests -Dcom.redhat.xpaas.repo.redhatga -Dfabric8.skip=true -Djkube.skip=true --batch-mode -Djava.net.preferIPv4Stack=true -s /tmp/artifacts/configuration/settings.xml -Dmaven.repo.local=/tmp/artifacts/m2 package'
ls: cannot access '/usr/bin/mvn': Operation not permitted
Error: Could not find or load main class org.codehaus.plexus.classworlds.launcher.Launcher
Caused by: java.lang.ClassNotFoundException: org.codehaus.plexus.classworlds.launcher.Launcher
error: build error: non-zero (13) exit code from registry.access.redhat.com/ubi8/openjdk-11@sha256:e851770fd181ef49193111f7afcdbf872ad23f3a8234e0e07a742c4ca2882c3d
But when I create a new app from oc CLI with openjdk/openjdk-11-rhel7 image like this:
oc import-image openjdk-openjdk-11-rhel7 --from=registry.access.redhat.com/openjdk/openjdk-11-rhel7 --confirm
oc new-app openjdk-11-rhel7 https://github.com/zg-riband/testubi8jdk11s2iquarkus.git --name=openjdk-openjdk-11-rhel7-app
everything is ok and the app is created succesfully.
The problem also occurs with ubi8-openjdk-17, which is the real reason why I write, since there is no openjdk17rhel8 yet and I intend to use my quarkus app with java 17.
Waiting for your kind reply, thank you.
The text was updated successfully, but these errors were encountered: