Bug 995123
Summary: | OpenJDK not installed by installer | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Chuck Schweizer <chuck.schweizer.lvk2> |
Component: | Installation | Assignee: | Ivan Necas <inecas> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Og Maciel <omaciel> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.0.1 | CC: | chuck.schweizer.lvk2, cwelton, gkhachik, jmontleo, mmccune, omaciel |
Target Milestone: | Unspecified | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Linux | ||
URL: | https://github.com/Katello/katello/pull/3240 | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-04-24 17:08:40 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Chuck Schweizer
2013-08-08 15:10: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. Will work to get katello-configure to warn or remove any packages that are conflicting. 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? I'm sorry, I've just noticed I have no supplementary packages enabled. Proposed patch https://github.com/Katello/katello/pull/3240 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 [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) # 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 ? The proposed fix for the multi-openjdk installation case: https://github.com/Katello/katello/pull/3328 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 # 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) This was verified and delivered with MDP2. Closing it out. |