Skip to content

rgw/test: install Java 8 under rocky linux - #18

Merged
ivancich merged 1 commit into
ceph:ceph-masterfrom
ivancich:wip-rocky10-java8
Apr 6, 2026
Merged

ivancich merged 1 commit into
ceph:ceph-masterfrom
ivancich:wip-rocky10-java8

Conversation

@ivancich

@ivancich ivancich commented Apr 1, 2026 •

Copy link
Copy Markdown
Member

Updates the bootstrap.sh script so it can install a version of Java 8.

Note: this depends on ceph/ceph#68208 .

Fixes: https://tracker.ceph.com/issues/73678

Comment thread bootstrap.sh
fi
sudo dnf -y install adoptium-temurin-java-repository
sudo dnf config-manager --set-enabled adoptium-temurin-java-repository
sudo dnf -y install temurin-8-jdk

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any idea how we would get away from our reliance on java 8 and gradle 6.0.1?

p.s. https://tracker.ceph.com/issues/73678 was reported against rhel 10. do you think this same logic would work there?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is one opportunity: https://ceph-storage.slack.com/archives/C07AK2NR2BV/p1775163148230939 .

Let me see if I can test this sequence against rhel 10.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't able to fully prove it would work but I got far enough such that it seems as long as other packages can be installed temurin java could be as well. My container image was locked down and I wasn't able to find the right subscription-manager invocations to allow access.

@ivancich

ivancich commented Apr 2, 2026

Copy link
Copy Markdown
Member Author

@cbodley So I added a listing of /usr/lib/jvm and here are the results (with the -l option). I think looking for an item that contains "java-8" would be sufficient. And then we can skip alternatives. What do you think?

Rocky 10

java -> /etc/alternatives/java_sdk
java-21 -> /etc/alternatives/java_sdk_21
java-21-openjdk
java-8-temurin-jdk
java-openjdk -> /etc/alternatives/java_sdk_openjdk
jre -> /etc/alternatives/jre
jre-21 -> /etc/alternatives/jre_21
jre-21-openjdk -> /etc/alternatives/jre_21_openjdk
jre-openjdk -> /etc/alternatives/jre_openjdk
temurin-8-jdk -> /usr/lib/jvm/java-8-temurin-jdk

Ubuntu Jammy

default-java -> java-1.11.0-openjdk-amd64
java-1.11.0-openjdk-amd64 -> java-11-openjdk-amd64
java-1.8.0-openjdk-amd64 -> java-8-openjdk-amd64
java-11-openjdk-amd64
java-8-openjdk-amd64

@ivancich

ivancich commented Apr 3, 2026

Copy link
Copy Markdown
Member Author

@ivancich ivancich added the enhancement New feature or request label Apr 3, 2026
@ivancich
ivancich requested a review from cbodley April 3, 2026 23:34
Updates the bootstrap.sh script so it can install a version of Java 8.

Signed-off-by: J. Eric Ivancich <[email protected]>
@ivancich
ivancich force-pushed the wip-rocky10-java8 branch from 0b45d3d to 837ac8f Compare April 3, 2026 23:36
@ivancich
ivancich merged commit c31dc90 into ceph:ceph-master Apr 6, 2026
@cbodley

cbodley commented Apr 6, 2026

Copy link
Copy Markdown

ivancich merged 1 commit into ceph:ceph-master from ivancich:wip-rocky10-java8 50 minutes ago

oops, this should have merged to ceph:master and been cherry-picked from there. i just pushed a cherry-pick to master

@cbodley

cbodley commented Apr 6, 2026

Copy link
Copy Markdown

@ivancich would you like me to cherry-pick for ceph-squid and ceph-tentacle also?

@ivancich

ivancich commented Apr 6, 2026

Copy link
Copy Markdown
Member Author

ivancich merged 1 commit into ceph:ceph-master from ivancich:wip-rocky10-java8 50 minutes ago

oops, this should have merged to ceph:master and been cherry-picked from there. i just pushed a cherry-pick to master

Sorry, I didn't understand the protocol!

@ivancich

ivancich commented Apr 6, 2026

Copy link
Copy Markdown
Member Author

@ivancich would you like me to cherry-pick for ceph-squid and ceph-tentacle also?

Oh, sure. Again, I haven't internalized how all this works. I just assumed all versions ran from ceph-master.

@ivancich

ivancich commented Apr 6, 2026

Copy link
Copy Markdown
Member Author

@cbodley My earlier tests running teuthology (before you added the commits to ceph-squid and ceph-tentacle) on tentacle and squid failed on centos 9 but worked on ubuntu. I don't think they needed this change, so maybe centos doesn't use /usr/lib/jvm? Currently looking into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants