Created attachment 936589 [details] engine setup log Description of problem: When installing remote rhevm-reports I get: [ ERROR ] Failed to execute stage 'Setup validation': Cannot get JAVA_HOME make sure supported JRE is installed Version-Release number of selected component (if applicable): 3.5 How reproducible: Always on my setup Steps to Reproduce: 1. yum install rhevm-reports on remote host 2. engine-setup 3. Actual results: error Expected results: successful setup Additional info:
(In reply to Petr Matyáš from comment #0) > Created attachment 936589 [details] > engine setup log > > Description of problem: > When installing remote rhevm-reports I get: [ ERROR ] Failed to execute > stage 'Setup validation': Cannot get JAVA_HOME make sure supported JRE is > installed > > Version-Release number of selected component (if applicable): > 3.5 > > How reproducible: > Always on my setup > > Steps to Reproduce: > 1. yum install rhevm-reports on remote host The script /usr/share/ovirt-engine/bin/java-home requires openjdk 1.7.0. This is currently done for the engine, and is inherited by reports. Thus this error. In principle we can loosen this req for reports, if it turns out that it can work with other JREs, not sure we also want to support this. 'yum install rhevm-reports' does install for me java-1.7.0-openjdk . I did not check the exact dependency chain that caused requiring it. 'rhevm-reports' currently requires just 'java'. This can be easily fixed just in case, by requiring in reports specifically java-1.7.0-openjdk as is done in the engine. Did 'yum install rhevm-reports' install (also) java-1.7.0-openjdk ? What's the output of 'sh -x /usr/share/ovirt-engine/bin/java-home'?
(In reply to Yedidyah Bar David from comment #1) > (In reply to Petr Matyáš from comment #0) > > Created attachment 936589 [details] > > engine setup log > > > > Description of problem: > > When installing remote rhevm-reports I get: [ ERROR ] Failed to execute > > stage 'Setup validation': Cannot get JAVA_HOME make sure supported JRE is > > installed > > > > Version-Release number of selected component (if applicable): > > 3.5 > > > > How reproducible: > > Always on my setup > > > > Steps to Reproduce: > > 1. yum install rhevm-reports on remote host > > The script /usr/share/ovirt-engine/bin/java-home requires openjdk 1.7.0. > This is currently done for the engine, and is inherited by reports. Thus > this error. In principle we can loosen this req for reports, if it turns out > that it can work with other JREs, not sure we also want to support this. > > 'yum install rhevm-reports' does install for me java-1.7.0-openjdk . I did > not check the exact dependency chain that caused requiring it. > > 'rhevm-reports' currently requires just 'java'. This can be easily fixed > just in case, by requiring in reports specifically java-1.7.0-openjdk as is > done in the engine. Now verified that 'yum install rhevm-reports' installs java-1.7.0-openjdk even if another 'java' (java-1.5.0) is already installed. Dependency chain is: rhevm-reports requires jbossas-modules-eap requires apache-commons-collections-eap6 requires java-1.7.0-openjdk > > Did 'yum install rhevm-reports' install (also) java-1.7.0-openjdk ? > So it should have. > What's the output of 'sh -x /usr/share/ovirt-engine/bin/java-home'? Indeed?
Created attachment 937474 [details] Java-home output (In reply to Yedidyah Bar David from comment #3) > (In reply to Yedidyah Bar David from comment #1) > > (In reply to Petr Matyáš from comment #0) > > > Created attachment 936589 [details] > > > engine setup log > > > > > > Description of problem: > > > When installing remote rhevm-reports I get: [ ERROR ] Failed to execute > > > stage 'Setup validation': Cannot get JAVA_HOME make sure supported JRE is > > > installed > > > > > > Version-Release number of selected component (if applicable): > > > 3.5 > > > > > > How reproducible: > > > Always on my setup > > > > > > Steps to Reproduce: > > > 1. yum install rhevm-reports on remote host > > > > The script /usr/share/ovirt-engine/bin/java-home requires openjdk 1.7.0. > > This is currently done for the engine, and is inherited by reports. Thus > > this error. In principle we can loosen this req for reports, if it turns out > > that it can work with other JREs, not sure we also want to support this. > > > > 'yum install rhevm-reports' does install for me java-1.7.0-openjdk . I did > > not check the exact dependency chain that caused requiring it. > > > > 'rhevm-reports' currently requires just 'java'. This can be easily fixed > > just in case, by requiring in reports specifically java-1.7.0-openjdk as is > > done in the engine. > > Now verified that 'yum install rhevm-reports' installs java-1.7.0-openjdk > even if another 'java' (java-1.5.0) is already installed. Dependency chain > is: > > rhevm-reports requires jbossas-modules-eap requires > apache-commons-collections-eap6 requires java-1.7.0-openjdk > > > > > Did 'yum install rhevm-reports' install (also) java-1.7.0-openjdk ? > > > > So it should have. No, it did not. > > What's the output of 'sh -x /usr/share/ovirt-engine/bin/java-home'? > > Indeed? See attachement
Very well. I'll add a dependency. Thanks!
Created attachment 945002 [details] Remote reports setup Still behaves the same on vt5.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHEA-2015-0176.html