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 1213246 - Sat6.0 installation failed due to openjdk version 1.8 being pulled from rhel66 repo
Summary: Sat6.0 installation failed due to openjdk version 1.8 being pulled from rhel6...
Keywords:
Status: CLOSED DUPLICATE of bug 1212961
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Installation
Version: 6.0.8
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Katello Bug Bin
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-20 07:07 UTC by Sachin Ghai
Modified: 2015-04-20 08:41 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-04-20 08:41:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
installed package versions of java while installed sat6 from cdn (21.37 KB, image/png)
2015-04-20 07:07 UTC, Sachin Ghai
no flags Details
katello-installer logs (1.07 MB, text/plain)
2015-04-20 07:10 UTC, Sachin Ghai
no flags Details
foreman-debug logs (163.97 KB, application/x-xz)
2015-04-20 07:23 UTC, Sachin Ghai
no flags Details

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 ***


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