Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 995123 - OpenJDK not installed by installer
Summary: OpenJDK not installed by installer
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Installation
Version: 6.0.1
Hardware: Unspecified
OS: Linux
unspecified
high
Target Milestone: Unspecified
Assignee: Ivan Necas
QA Contact: Og Maciel
URL: https://github.com/Katello/katello/pu...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-08 15:10 UTC by Chuck Schweizer
Modified: 2019-09-26 15:47 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-04-24 17:08:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Chuck Schweizer 2013-08-08 15:10:03 UTC
Description of problem:
install_packages does not install OpenJDK

Version-Release number of selected component (if applicable):
Satellite-6.0.1-RHEL-6-20130628.1-Satellite-x86_64-dvd1.iso


How reproducible:


Steps to Reproduce:
1. Make sure java-1.7.0-oracle is installed
2. Make sure OpenJDK is not installed
3. Run install_packages

Actual results:
OpenJDK is not installed

Expected results:
OpenJDK is installed

Additional info:
We do not install OpenJDK by default on our systems.

Comment 1 RHEL Program Management 2013-09-17 04:20:03 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 3 Mike McCune 2013-09-17 21:42:02 UTC
Will work to get katello-configure to warn or remove any packages that are conflicting.

Comment 5 Ivan Necas 2013-10-22 08:20:23 UTC
I have troubles reproducing the issue, as silly as not being able to find java-1.7.0-oracle package anywhere. Could you give me a hint on the place where to find it?

Comment 6 Ivan Necas 2013-10-22 08:36:37 UTC
I'm sorry, I've just noticed I have no supplementary packages enabled.

Comment 7 Ivan Necas 2013-10-22 08:57:23 UTC
Proposed patch https://github.com/Katello/katello/pull/3240

Comment 10 Og Maciel 2013-11-06 16:01:27 UTC
Before installing katello-foreman-all:

# rpm -qa | grep java
java-1.7.0-oracle-1.7.0.45-1jpp.2.el6_4.x86_64
tzdata-java-2012j-1.el6.noarch
java-1.7.0-oracle-src-1.7.0.45-1jpp.2.el6_4.x86_64

After installation:

[root@qetello01 ~]# rpm -qa | grep java
java-1.7.0-oracle-1.7.0.45-1jpp.2.el6_4.x86_64
java-1.6.0-openjdk-1.6.0.0-1.65.1.11.13.el6_4.x86_64
glassfish-javamail-1.4.4-6_redhat_1.ep6.el6.1.noarch
jboss-javaee-poms-5.0.1-2.9.ep5.el6.noarch
java_cup-0.10k-5.el6.x86_64
sigar-java-1.6.5-0.12.git58097d9h.el6_3.x86_64
tzdata-java-2012j-1.el6.noarch
java-1.7.0-oracle-src-1.7.0.45-1jpp.2.el6_4.x86_64
javassist-3.9.0-6.el6.noarch
java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64
snappy-java-1.0.4-2.el6_4.x86_64

Comment 11 Og Maciel 2013-11-06 16:11:39 UTC
[root@qetello01 ~]# java -version
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.13) (rhel-1.65.1.11.13.el6_4-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

Comment 12 Garik Khachikyan 2013-11-06 16:16:28 UTC
# REOPEN

having 1.7.0 somehow installed already on the system, install/configure fails on posttrans of katello:

scenario is: do manually have installed java-1.7.0-openjdk and then setup Sat6 instance.

run:
%posttrans all
# make sure we use openjdk as default
/usr/sbin/alternatives --set java \
    $(echo | /usr/sbin/alternatives --config java | grep -o '\S*openjdk\S*')

we need to have this situation fixed to tell `alternatives` to use 1.6.0 as the default i believe ?

Comment 13 Ivan Necas 2013-11-06 16:37:18 UTC
The proposed fix for the multi-openjdk installation case:

https://github.com/Katello/katello/pull/3328

Comment 14 Chuck Schweizer 2013-11-06 16:46:03 UTC
To make the test case better also install java-1.7.0-oracle-devel

This made it so that I had to install 
java-1.6.0-openjdk-devel  

and set javac

/usr/sbin/alternatives --set javac /usr/lib/jvm/java-1.6.0-openjdk.x86_64/bin/javac

Comment 17 Garik Khachikyan 2013-11-07 17:04:02 UTC
# VERIFIED

SNAP9 has the fix.

had installed: jdk-7u45-linux-x64.rpm and making install does open-1.6.0-openjdk install.

===
alternatives --config java

There is 2 program that provides 'java'.

  Selection    Command
-----------------------------------------------
*+ 1           /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java
   2           /usr/lib/jvm/jre-1.5.0-gcj/bin/java
===

# rpm -q java-1.6.0-openjdk
java-1.6.0-openjdk-1.6.0.0-1.65.1.11.14.el6_4.x86_64

# java -version
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.14) (rhel-1.65.1.11.14.el6_4-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

Comment 18 Bryan Kearney 2014-04-24 17:08:40 UTC
This was verified and delivered with MDP2. Closing it out.


Note You need to log in before you can comment on or make changes to this bug.