Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1157220

Summary: setup should ask for java detection
Product: Red Hat Enterprise Virtualization Manager Reporter: Yedidyah Bar David <didi>
Component: ovirt-engine-reportsAssignee: Shirly Radco <sradco>
Status: CLOSED ERRATA QA Contact: Jiri Belka <jbelka>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: ecohen, gklein, iheim, lsurette, nyechiel, pmatyas, rbalakri, Rhev-m-bugs, yeylon, ylavi
Target Milestone: ---   
Target Release: 3.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: integration
Fixed In Version: vt8 - rhevm-reports-3.5.0-9.el6ev Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-11 18:18:41 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:
Bug Depends On:    
Bug Blocks: 1100205, 1116851, 1140746    

Description Yedidyah Bar David 2014-10-26 10:00:33 UTC
This bug is opened retroactively to describe the fix done in [1].

websocket-proxy used to require only rhevm-setup-base.

At some point we added to rhevm-setup-plugin-ovirt-engine-common some code, and later we wanted to use this code in websocket-proxy.

But rhevm-setup-plugin-ovirt-engine-common did some things that websocket-proxy does not need, and wanted to make them optional. One of them is verification that a suitable version of java (currently openjdk 1.7.0) is found and is configured to be used. This was done always if rhevm-setup-plugin-ovirt-engine-common was installed, but now requires setting some key in otopi's environment to do that. change [1] does that.

[1] http://gerrit.ovirt.org/34472

Comment 1 Yedidyah Bar David 2014-10-26 15:27:51 UTC
*** Bug 1155596 has been marked as a duplicate of this bug. ***

Comment 4 Jiri Belka 2014-10-30 13:47:35 UTC
ok, movciari@ confirmed dwh and reports are installable on vt8.

Comment 5 Yedidyah Bar David 2014-10-30 14:26:16 UTC
Proper verification imo is installing another jdk (say ibm-jdk-1.5) and seeing that reports still uses openjdk 1.7.0. I already tried that during development, you might want to too.

Comment 6 Yedidyah Bar David 2014-10-30 14:26:59 UTC
(In reply to Yedidyah Bar David from comment #5)
> Proper verification imo is installing another jdk (say ibm-jdk-1.5)

and making it the default jre (with alternatives)

> and
> seeing that reports still uses openjdk 1.7.0. I already tried that during
> development, you might want to too.

Comment 7 Jiri Belka 2014-10-30 14:33:52 UTC
well sradco@ didn't mention deep details just:

> 14:50 < sradco> jbelka: sorry. only verify that all is working and not broken
>                 when installing engine+dwh and reports. this will be in vt8

i'll try then again based on #5.

Comment 8 Jiri Belka 2014-10-30 16:09:57 UTC
ok, retested while ibm java was set manually as default for java and jre_1.7.0.

# lsof -nPp `pgrep -f 'ovirt-engine -server'` | grep bin/java
java    5918 ovirt  txt    REG              253,0     9904 919460 /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.71.x86_64/jre/bin/java

# java -version
java version "1.7.0"
Java(TM) SE Runtime Environment (build pxa6470sr7fp1-20140708_01(SR7 FP1))
IBM J9 VM (build 2.6, JRE 1.7.0 Linux amd64-64 Compressed References 20140627_204598 (JIT enabled, AOT enabled)
J9VM - R26_Java726_SR7_20140627_0924_B204598
JIT  - r11.b06_20140409_61252.04
GC   - R26_Java726_SR7_20140627_0924_B204598_CMPRSS
J9CL - 20140627_204598)
JCL - 20140707_01 based on Oracle 7u65-b16

Comment 10 errata-xmlrpc 2015-02-11 18:18:41 UTC
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