Skip to content

apache_solr: Solr 9 cannot be installed on RHEL 10, which ships no Java 17 #372

Description

@NavidSassan

Bug description

The role picks the Java package by Solr major version (roles/apache_solr/vars/main.yml): Solr 9 maps to java-17-openjdk-headless. RHEL 10 ships no OpenJDK 17 (21 is the default, 25 is available), so installing Solr 9, the version the README example uses, fails on RHEL 10. Solr 10 maps to java-21-openjdk-headless and is unaffected.

Steps to reproduce

  1. On Rocky Linux 10.2 with EPEL 10, run dnf repoquery --whatprovides java-17-openjdk-headless: nothing.
  2. Deploy the role with apache_solr__version: '9.4.0': the Java install task fails.

Expected behavior

On RHEL 10 the role installs a Java that the distribution ships and Solr 9 supports, or aborts with a clear message, as keycloak does for Keycloak 24 (#368).

Environment

LFOps main, Rocky Linux 10.2.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions