Bug 1213246

Summary: Sat6.0 installation failed due to openjdk version 1.8 being pulled from rhel66 repo
Product: Red Hat Satellite Reporter: Sachin Ghai <sghai>
Component: InstallationAssignee: Katello Bug Bin <katello-bugs>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.8   
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-04-20 08:41:42 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:
Attachments:
Description Flags
installed package versions of java while installed sat6 from cdn
none
katello-installer logs
none
foreman-debug logs none

Description Sachin Ghai 2015-04-20 07:07:54 UTC
Created attachment 1016239 [details]
installed package versions of java while installed sat6 from cdn

Description of problem:
I was trying to install sat6.0 on rhel66 from CDN. Packages were successfully installed. but installer failed with following errors:

[root@sat6-java-issue ~]# katello-installer -v -d --foreman-admin-password changeme
[ INFO 2015-04-20 02:48:28 verbose] Executing hooks in group boot
[ INFO 2015-04-20 02:48:28 verbose] All hooks in group boot finished
[ INFO 2015-04-20 02:48:28 verbose] Executing hooks in group init
[ INFO 2015-04-20 02:48:28 verbose] All hooks in group init finished
[ INFO 2015-04-20 02:48:28 verbose] Parsing default values from puppet modules...
[ INFO 2015-04-20 02:48:28 verbose] ... finished
[ INFO 2015-04-20 02:48:28 verbose] Executing hooks in group pre_values
[ INFO 2015-04-20 02:48:28 verbose] All hooks in group pre_values finished
[ INFO 2015-04-20 02:48:28 verbose] Executing hooks in group pre_validations
[ INFO 2015-04-20 02:48:28 verbose] All hooks in group pre_validations finished
[ INFO 2015-04-20 02:48:28 verbose] Running validation checks
[ INFO 2015-04-20 02:48:28 verbose] Executing hooks in group pre
An OpenJDK version of Java greater than 1.7 should be installed.  For more details on the version currently installed, run 'java -version'


when I checked the installed version of java:
[root@sat6-java-issue ~]# rpm -qa | grep java
snappy-java-1.0.4-2.el6sat.x86_64
java-1.8.0-openjdk-1.8.0.45-28.b13.el6_6.x86_64
javassist-3.12.1-1.ep6.el6.noarch
sigar-java-1.6.5-0.9.git58097d9.el6sat.x86_64
java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64
qpid-java-common-0.22-6.el6.noarch
tzdata-java-2015c-2.el6.noarch
java_cup-0.10k-5.el6.x86_64
qpid-java-client-0.22-6.el6.noarch
java-1.8.0-openjdk-headless-1.8.0.45-28.b13.el6_6.x86_64
glassfish-javamail-1.4.4-6_redhat_1.ep6.el6.1.noarch


here java 1.8.0 and Java-1.5.0 were installed But 1.5.0 version was set.

--
[root@sat6-java-issue ~]# java -version
java version "1.5.0"
gij (GNU libgcj) version 4.4.7 20120313 (Red Hat 4.4.7-11)
--

I set the 1.8 version as default java version and started the installer again

---
[root@sat6-java-issue ~]# java -version
openjdk version "1.8.0_45"
OpenJDK Runtime Environment (build 1.8.0_45-b13)
OpenJDK 64-Bit Server VM (build 25.45-b02, mixed mode)
---


Katello-installer failed with following errors:


--
[ERROR 2015-04-20 02:57:19 verbose]  /Stage[main]/Candlepin::Database/Exec[cpdb]: Failed to call refresh: liquibase --driver=org.postgresql.Driver                           --classpath=/usr/share/java/postgresql-jdbc.jar:/var/lib/tomcat6/webapps/candlepin/WEB-INF/classes/                           --changeLogFile=db/changelog/changelog-create.xml                           --url=jdbc:postgresql:candlepin                           --username=candlepin                            --password=FrjQHax2nAcsadDJXfF6RKwNTDZW8nHn                           migrate                           -Dcommunity=False                           >> /var/log/candlepin/cpdb.log                           2>&1 && touch /var/lib/candlepin/cpdb_done returned 1 instead of one of [0]


[ERROR 2015-04-20 02:57:19 verbose]  /Stage[main]/Candlepin::Database/Exec[cpdb]: liquibase --driver=org.postgresql.Driver                           --classpath=/usr/share/java/postgresql-jdbc.jar:/var/lib/tomcat6/webapps/candlepin/WEB-INF/classes/                           --changeLogFile=db/changelog/changelog-create.xml                           --url=jdbc:postgresql:candlepin                           --username=candlepin                            --password=FrjQHax2nAcsadDJXfF6RKwNTDZW8nHn                           migrate                           -Dcommunity=False                         

[ERROR 2015-04-20 02:59:21 main]  /usr/bin/wget --timeout=30 --tries=5 --retry-connrefused -qO- http://localhost:8080/candlepin/admin/init >/var/log/candlepin/cpinit.log 2>&1 && touch /var/lib/candlepin/cpinit_done returned 8 instead of one of [0]
[ERROR 2015-04-20 02:59:21 main]  /Stage[main]/Candlepin::Service/Exec[cpinit]/returns: change from notrun to 0 failed: /usr/bin/wget --timeout=30 --tries=5 --retry-connrefused -qO- http://localhost:8080/candlepin/admin/init >/var/log/candlepin/cpinit.log 2>&1 && touch /var/lib/candlepin/cpinit_done returned 8 instead of one of [0]
[ERROR 2015-04-20 02:59:21 main]  /Stage[main]/Candlepin::Service/Exec[cpinit]: Failed to call refresh: /usr/bin/wget --timeout=30 --tries=5 --retry-connrefused -qO- http://localhost:8080/candlepin/admin/init >/var/log/candlepin/cpinit.log 2>&1 && touch /var/lib/candlepin/cpinit_done returned 8 instead of one of [0]
[ERROR 2015-04-20 02:59:21 main]  /Stage[main]/Candlepin::Service/Exec[cpinit]: /usr/bin/wget --timeout=30 --tries=5 --retry-connrefused -qO- http://localhost:8080/candlepin/admin/init >/var/log/candlepin/cpinit.log 2>&1 && touch /var/lib/candlepin/cpinit_done returned 8 instead of one of [0]
[ERROR 2015-04-20 02:59:59 main]  /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: Failed to call refresh: /usr/sbin/foreman-rake db:seed returned 1 instead of one of [0]
[ERROR 2015-04-20 02:59:59 main]  /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: /usr/sbin/foreman-rake db:seed returned 1 instead of one of [0]
[ERROR 2015-04-20 03:01:21 main] Repeating errors encountered during run:
[ERROR 2015-04-20 03:01:21 main]  /Stage[main]/Candlepin::Database/Exec[cpdb]: Failed to call refresh: liquibase --driver=org.postgresql.Driver                           --classpath=/usr/share/java/postgresql-jdbc.jar:/var/lib/tomcat6/webapps/candlepin/WEB-INF/classes/                           --changeLogFile=db/changelog/changelog-create.xml                           --url=jdbc:postgresql:candlepin                           --username=candlepin                            --password=FrjQHax2nAcsadDJXfF6RKwNTDZW8nHn                           migrate                           -Dcommunity=False                           >> /var/log/candlepin/cpdb.log                           2>&1 && touch /var/lib/candlepin/cpdb_done returned 1 instead of one of [0]
[ERROR 2015-04-20 03:01:21 main]  /Stage[main]/Candlepin::Database/Exec[cpdb]: liquibase --driver=org.postgresql.Driver                           --classpath=/usr/share/java/postgresql-jdbc.jar:/var/lib/tomcat6/webapps/candlepin/WEB-INF/classes/                           --changeLogFile=db/changelog/changelog-create.xml                           --url=jdbc:postgresql:candlepin                           --username=candlepin                            --password=FrjQHax2nAcsadDJXfF6RKwNTDZW8nHn                           migrate                           -Dcommunity=False                           >> /var/log/candlepin/cpdb.log                           2>&1 && touch /var/lib/candlepin/cpdb_done returned 1 instead of one of [0]
[ERROR 2015-04-20 03:01:21 main]  /usr/bin/wget --timeout=30 --tries=5 --retry-connrefused -qO- http://localhost:8080/candlepin/admin/init >/var/log/candlepin/cpinit.log 2>&1 && touch /var/lib/candlepin/cpinit_done returned 8 instead of one of [0]
[ERROR 2015-04-20 03:01:21 main]  /Stage[main]/Candlepin::Service/Exec[cpinit]/returns: change from notrun to 0 failed: /usr/bin/wget --timeout=30 --tries=5 --retry-connrefused -qO- http://localhost:8080/candlepin/admin/init >/var/log/candlepin/cpinit.log 2>&1 && touch /var/lib/candlepin/cpinit_done returned 8 instead of one of [0]
[ERROR 2015-04-20 03:01:21 main]  /Stage[main]/Candlepin::Service/Exec[cpinit]: Failed to call refresh: /usr/bin/wget --timeout=30 --tries=5 --retry-connrefused -qO- http://localhost:8080/candlepin/admin/init >/var/log/candlepin/cpinit.log 2>&1 && touch /var/lib/candlepin/cpinit_done returned 8 instead of one of [0]
[ERROR 2015-04-20 03:01:21 main]  /Stage[main]/Candlepin::Service/Exec[cpinit]: /usr/bin/wget --timeout=30 --tries=5 --retry-connrefused -qO- http://localhost:8080/candlepin/admin/init >/var/log/candlepin/cpinit.log 2>&1 && touch /var/lib/candlepin/cpinit_done returned 8 instead of one of [0]
[ERROR 2015-04-20 03:01:21 main]  /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: Failed to call refresh: /usr/sbin/foreman-rake db:seed returned 1 instead of one of [0]
[ERROR 2015-04-20 03:01:21 main]  /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: /usr/sbin/foreman-rake db:seed returned 1 instead of one of [0]


Version-Release number of selected component (if applicable):
sat6.0 from CDN

How reproducible:
always

Steps to Reproduce:
1. Install sat6 from CDN
2. system should be regsitered with CDN and subscribed to rhel6, rhscl and sat6.0 subscriptions
3.

Actual results:
katello-installer failed even after setting the openJDK version greater than 1.7

Expected results:
at first place when open jdk 1.8 was installed then the latest version should be set in path by default.

Additional info:

Comment 1 Sachin Ghai 2015-04-20 07:10:47 UTC
Created attachment 1016241 [details]
katello-installer logs

Comment 3 Sachin Ghai 2015-04-20 07:23:13 UTC
Created attachment 1016243 [details]
foreman-debug logs

Comment 4 Sachin Ghai 2015-04-20 07:24:27 UTC
As Workaround: I downloaded JDK 1.7 version and removed 1.8 and re-run the katello-installer and everything works fine..

Comment 5 Sachin Ghai 2015-04-20 08:41:42 UTC

*** This bug has been marked as a duplicate of bug 1212961 ***