Question regarding java-11-openjdk-headless

Problem:
Around the end of the month java-11openjdk will be EOL:
Red Hat build of OpenJDK | endoflife.date I was able to remove this from Satellite but on Foreman-Katello i noticed it would remove alot of deps and also Katello

Expected outcome:
I expected that i could remove java-11openjdk withoud removing other dependencies/breaking Katello. I could also have missed news regarding this aswell!

Foreman and Proxy versions:
Version 3.12.0

Foreman and Proxy plugin versions:
ansible-collection-theforeman-foreman-4.2.0-1.el9.noarch
candlepin-4.4.16-1.el9.noarch
candlepin-selinux-4.4.16-1.el9.noarch
dynflow-utils-1.6.3-1.el9.x86_64
foreman-3.12.0-1.el9.noarch
foreman-cli-3.12.0-1.el9.noarch
foreman-dynflow-sidekiq-3.12.0-1.el9.noarch
foreman-installer-3.12.0-1.el9.noarch
foreman-installer-katello-3.12.0-1.el9.noarch
foreman-obsolete-packages-1.10-1.el9.noarch
foreman-postgresql-3.12.0-1.el9.noarch
foreman-proxy-3.12.0-1.el9.noarch
foreman-redis-3.12.0-1.el9.noarch
foreman-release-3.12.0-1.el9.noarch
foreman-selinux-3.12.0-1.el9.noarch
foreman-service-3.12.0-1.el9.noarch
katello-4.14.0-1.el9.noarch
katello-ca-consumer-vcdsat01.virtualcenter.lan-1.0-7.noarch
katello-certs-tools-2.10.0-1.el9.noarch
katello-client-bootstrap-1.7.9-2.el9.noarch
katello-common-4.14.0-1.el9.noarch
katello-repos-4.14.0-1.el9.noarch
katello-selinux-5.0.2-1.el9.noarch
pulpcore-obsolete-packages-1.2.0-1.el9.noarch
pulpcore-selinux-2.0.1-1.el9.x86_64
python3.11-pulp-ansible-0.21.8-1.el9.noarch
python3.11-pulp-cli-0.27.2-1.el9.noarch
python3.11-pulp-container-2.20.3-1.el9.noarch
python3.11-pulp-deb-3.2.1-1.el9.noarch
python3.11-pulp-glue-0.27.2-1.el9.noarch
python3.11-pulp-python-3.11.3-1.el9.noarch
python3.11-pulp-rpm-3.26.1-1.el9.noarch
python3.11-pulpcore-3.49.21-1.el9.noarch
rubygem-dynflow-1.9.0-1.el9.noarch
rubygem-foreman-tasks-9.2.3-1.fm3_12.el9.noarch
rubygem-foreman_ansible-14.2.1-1.fm3_12.el9.noarch
rubygem-foreman_azure_rm-2.3.0-1.fm3_11.el9.noarch
rubygem-foreman_discovery-24.0.2-1.fm3_12.el9.noarch
rubygem-foreman_maintain-1.7.4-1.el9.noarch
rubygem-foreman_openscap-9.0.4-1.fm3_12.el9.noarch
rubygem-foreman_remote_execution-13.2.5-1.fm3_12.el9.noarch
rubygem-foreman_rh_cloud-10.0.1-1.fm3_12.el9.noarch
rubygem-hammer_cli-3.12.0-1.el9.noarch
rubygem-hammer_cli_foreman-3.12.0-1.el9.noarch
rubygem-hammer_cli_foreman_ansible-0.7.0-1.fm3_11.el9.noarch
rubygem-hammer_cli_foreman_azure_rm-0.3.1-1.fm3_11.el9.noarch
rubygem-hammer_cli_foreman_remote_execution-0.3.0-1.el9.noarch
rubygem-hammer_cli_foreman_tasks-0.0.21-1.fm3_11.el9.noarch
rubygem-hammer_cli_foreman_virt_who_configure-0.1.0-1.fm3_10.el9.noarch
rubygem-hammer_cli_katello-1.14.3-1.el9.noarch
rubygem-katello-4.14.0-1.el9.noarch
rubygem-pulp_ansible_client-0.21.7-1.el9.noarch
rubygem-pulp_certguard_client-3.49.17-1.el9.noarch
rubygem-pulp_container_client-2.20.2-1.el9.noarch
rubygem-pulp_deb_client-3.2.1-1.el9.noarch
rubygem-pulp_file_client-3.49.17-1.el9.noarch
rubygem-pulp_ostree_client-2.3.2-1.el9.noarch
rubygem-pulp_python_client-3.11.2-1.el9.noarch
rubygem-pulp_rpm_client-3.26.1-1.el9.noarch
rubygem-pulpcore_client-3.49.17-1.el9.noarch
rubygem-puppetdb_foreman-6.0.2-1.fm3_10.el9.noarch
rubygem-smart_proxy_dynflow-0.9.3-1.fm3_12.el9.noarch
rubygem-smart_proxy_pulp-3.3.0-1.el9.noarch

Distribution and version:
RHEL 9

Other relevant data:
.

Can you try dnf remove java-11-openjdk-headless --noautoremove as I do not see any dependency which would prevent the removal without removing Katello?

Thanks for your suggestion! I tried it but it still seems to have some dependencies:

Is this something you also notice on your end out of curiousity?

There is a dependency:

$ rpm -q --requires katello
candlepin >= 2.0
...
$ rpm -q --requires candlepin
/usr/bin/bash
/usr/bin/python3
config(candlepin) = 4.4.16-1.el9
java-17 >= 1:17.0.0
javapackages-tools
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
tomcat < 1:10.0.0
wget
$ rpm -q --requires javapackages-tools
config(javapackages-tools) = 6.0.0-4.el9
coreutils
findutils
java-11-openjdk-headless
javapackages-filesystem = 6.0.0-4.el9
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsZstd) <= 5.4.18-1
which
1 Like

I see, so it’s more a candle pin issue i should create! Thanks! I’ll send them a message to see what they think of it :slight_smile:

Asked the maintainers of candlepin first about it: Question regarding dependency of java-11-openjdk-headless through javapackages-tools · candlepin/candlepin · Discussion #4891 · GitHub

If needed, i’ll also ask the maintainers of javapackages(-tools) on it aswell.

Hi, the javapackages-tools maintainers are already working on a patch to switch to depending on java-17-openjdk-headless on RHEL9 instead

1 Like

Oh where did you find this information?
I contacted the candle pin project and they are looking into a possible workaround but they also created an issue over at javapackages-tools: Dependency on java-11-openjdk-headless (which will be EOL in a week) on RHEL9 · Issue #134 · fedora-java/javapackages · GitHub

Hi! I’m the same person from the Candlepin team that posted that. I just searched the RHEL jira and found this: https://issues.redhat.com/browse/RHEL-62177

1 Like

Ah i see, so in the future (rhel 9.5 or 9.6) it will automatically convert from openjdk 11 to 17! Thanks for sharing the jira ticket!