Change in ovirt-engine[ovirt-engine-3.3]: packaging: detect java home at runtime

iheim at redhat.com iheim at redhat.com
Fri Oct 4 06:26:24 UTC 2013


Itamar Heim has submitted this change and it was merged.

Change subject: packaging: detect java home at runtime
......................................................................


packaging: detect java home at runtime

CURRENT IMPLEMENTATION

detect java home during installation.

advantage is optimize application execution post-setup.

disadvantage is that java home may be altered by system updates.

NEW IMPLEMENTATION

detect java home during runtime using pre-defined algorithm.

algorithm:

execute /usr/share/ovirt-engine/bin/java-home.

if java-home.local is available, execute that script. this enables
distro specific customization.

if OVIRT_ENGINE_JAVA_HOME environment is set, validate java validity
and use/abort.

search predefined selected alternatives location by order, first wins.

search /usr/lib/jvm for compatible jvm.

NOTES

the java-home script resides with the lib package as it cannot reside
within any version locked package since it is used by setup, and it
cannot reside within setup since it used by post setup.

Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1009863
Change-Id: I833362d0498d534b06e0d7660f1e8a61e9b1713b
Signed-off-by: Alon Bar-Lev <alonbl at redhat.com>
---
M .gitignore
M Makefile
M ovirt-engine.spec.in
M packaging/bin/engine-prolog.sh.in
A packaging/bin/java-home
A packaging/pythonlib/ovirt_engine/config.py.in
A packaging/pythonlib/ovirt_engine/java.py
M packaging/services/ovirt-engine-notifier/ovirt-engine-notifier.conf.in
M packaging/services/ovirt-engine-notifier/ovirt-engine-notifier.py
M packaging/services/ovirt-engine/ovirt-engine.conf.in
M packaging/services/ovirt-engine/ovirt-engine.py
M packaging/setup/ovirt_engine_setup/constants.py
M packaging/setup/plugins/ovirt-engine-setup/config/java.py
13 files changed, 172 insertions(+), 231 deletions(-)

Approvals:
  Itamar Heim: Verified; Looks good to me, approved



-- 
To view, visit http://gerrit.ovirt.org/19844
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I833362d0498d534b06e0d7660f1e8a61e9b1713b
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.3
Gerrit-Owner: Alon Bar-Lev <alonbl at redhat.com>
Gerrit-Reviewer: Alon Bar-Lev <alonbl at redhat.com>
Gerrit-Reviewer: Itamar Heim <iheim at redhat.com>
Gerrit-Reviewer: Sandro Bonazzola <sbonazzo at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server



More information about the Engine-commits mailing list