Skip to content

tentacle: rgw: java s3-tests change setting of JAVA_HOME - #68226

Merged
batrick merged 2 commits into
ceph:tentaclefrom
ivancich:wip-75880-tentacle
Apr 9, 2026
Merged

batrick merged 2 commits into
ceph:tentaclefrom
ivancich:wip-75880-tentacle

Conversation

@ivancich

@ivancich ivancich commented Apr 6, 2026

Copy link
Copy Markdown
Member

Previously s3tests_java.py set JAVA_HOME using the `alternatives`
command. That had issues in that `alternatives` is not present on all
Ubuntu systems, and some installations of Java don't update
alternatives. So instead we look for a "java-8" jvm in /usr/lib/jvm/
and set JAVA_HOME to the first one we find.

Signed-off-by: J. Eric Ivancich <[email protected]>
(cherry picked from commit b8e2796)
@ivancich
ivancich requested a review from a team as a code owner April 6, 2026 16:30
@ivancich ivancich added this to the tentacle milestone Apr 6, 2026
@ivancich ivancich added the rgw label Apr 6, 2026
@github-actions github-actions Bot added the tests label Apr 6, 2026
@ivancich
ivancich force-pushed the wip-75880-tentacle branch from f0b3727 to 792e8eb Compare April 7, 2026 01:00
@ivancich

ivancich commented Apr 7, 2026 •

Copy link
Copy Markdown
Member Author

Here are the previous results where Centos 9 failed but Ubuntu 22.04 succeeded:

https://pulpito.ceph.com/ivancich-2026-04-06_16:43:04-rgw-tentacle-distro-default-trial/

Needed to add a fix for Centos 9 so it accepts java-8 or java-1.8.

Here are the later teuthology results that show it now works on Centos 9:
https://pulpito.ceph.com/ivancich-2026-04-07_01:00:40-rgw-tentacle-distro-default-trial/

Under Centos 9 the Java 8 version is recognized by the substring
"java-1.8" rather than "java-8". So the grep has been modified to
accept either.

Signed-off-by: J. Eric Ivancich <[email protected]>
@ivancich
ivancich force-pushed the wip-75880-tentacle branch from 792e8eb to a49d444 Compare April 7, 2026 02:07
@ivancich ivancich added the TESTED label Apr 7, 2026
@ivancich
ivancich requested a review from cbodley April 7, 2026 13:42
@batrick batrick modified the milestones: tentacle, v20.2.2 Apr 7, 2026
@adamemerson

Copy link
Copy Markdown
Contributor

@batrick @yuriw Could you merge this? It's a needed test fix and validated.

@batrick
batrick merged commit ff309bb into ceph:tentacle Apr 9, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants