Bug 964762

Summary: setup & upgrade should enforce open-jdk JRE using alternatives
Product: Red Hat Enterprise Virtualization Manager Reporter: Barak <bazulay>
Component: ovirt-engine-setupAssignee: Moran Goldboim <mgoldboi>
Status: CLOSED NOTABUG QA Contact: Pavel Stehlik <pstehlik>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.3.0CC: acathrow, alonbl, bazulay, dyasny, iheim, Rhev-m-bugs, ykaul
Target Milestone: ---Keywords: Triaged
Target Release: 3.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: integration
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-20 23:05:45 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 Barak 2013-05-19 16:37:01 UTC
Today the engine-setup & upgrade do not force the use of open-jdk.

This creates issues like the one described in Bug 961081.

See also bug 860329 for reference (a documentation bug).

Comment 3 Itamar Heim 2013-05-20 19:51:02 UTC
isn't it bad form to force alternatives in the machine, rather make sure we use what we need?

Comment 4 Alon Bar-Lev 2013-05-20 20:05:13 UTC
(In reply to Itamar Heim from comment #3)
> isn't it bad form to force alternatives in the machine, rather make sure we
> use what we need?

Correct.
Application should not touch system wide settings.
Application that is jre sensitive should select its flavor of what installed.

Alternatives could have been more helpful if it could have been queried for its information. But for now, we simply search the right jre.

In Gentoo, for example, it is much more advanced...

$ java-config --select-vm=icedtea-7 --java
/usr/lib64/icedtea7/bin/java
$ java-config --select-vm=icedtea-7 --javac
/usr/lib64/icedtea7/bin/javac
$ java-config --select-vm=icedtea-7 --jre-home
/usr/lib64/icedtea7

Comment 6 Alon Bar-Lev 2013-05-20 20:07:48 UTC
This is dup of bug#834436, and juan work within.