Bug 1632244 - [downstream clone - 4.2.7] Make sure RHV Manager will use OpenJDK 8 even when newer versions are available
Summary: [downstream clone - 4.2.7] Make sure RHV Manager will use OpenJDK 8 even when...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 4.2.7
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: ovirt-4.2.7
: ---
Assignee: Martin Perina
QA Contact: Pavol Brilla
URL:
Whiteboard:
Depends On: 1631249
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-09-24 12:43 UTC by RHV bug bot
Modified: 2021-12-10 17:49 UTC (History)
8 users (show)

Fixed In Version: ovirt-engine-4.2.7.2
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1631249
Environment:
Last Closed: 2018-11-05 15:02:41 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHV-44290 0 None None None 2021-12-10 17:49:51 UTC
Red Hat Product Errata RHBA-2018:3480 0 None None None 2018-11-05 15:03:40 UTC
oVirt gerrit 94443 0 master MERGED core: Require specifically OpenJDK 8 2020-03-02 08:30:58 UTC
oVirt gerrit 94447 0 ovirt-engine-4.2 MERGED core: Require specifically OpenJDK 8 2020-03-02 08:30:58 UTC

Description RHV bug bot 2018-09-24 12:43:51 UTC
+++ This bug is a downstream clone. The original bug is: +++
+++   bug 1631249 +++
======================================================================

Description of problem:

There is problem that we got newer version of Java from 7.6 base repo than is required by engine.


Version-Release number of selected component (if applicable):
rhv-4.2.7-2

How reproducible:
Install rhel 7.6 add RHV release RPM and run engine-setup.


Actual results:
Failing with 
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/otopi/context.py", line 133, in _executeMethod
    method['method']()
  File "/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-common/ovirt-engine-common/config/java.py", line 69, in _validation
    ] = java.Java().getJavaHome()
  File "/usr/lib/python2.7/site-packages/ovirt_engine/java.py", line 59, in getJavaHome
    error='(%s)' % stderr if stderr else '',
RuntimeError: Cannot get JAVA_HOME make sure supported JRE is installed
2018-09-19 21:26:22,902+0300 ERROR otopi.context context._executeMethod:152 Failed to execute stage 'Setup validation': Cannot get JAVA_HOME make sure supported JRE is installed

Expected results:
Pass the engine-setup

Additional info:
Installed JDK:
rpm -qa | grep jdk                                                                           
eap7-jackson-datatype-jdk8-2.8.11-1.redhat_1.1.ep7.el7.noarch
eap7-jboss-openjdk-orb-8.0.8-2.Final_redhat_1.1.ep7.el7.noarch
java-11-openjdk-headless-11.0.ea.28-4.el7.x86_64
copy-jdk-configs-3.3-10.el7_5.noarch
java-11-openjdk-11.0.ea.28-4.el7.x86_64

 yum info java-11-openjdk-headless-11.0.ea.28-4.el7.x86_64
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager, versionlock                      
This system is not registered with an entitlement server. You can use subscription-manager to register.              
Installed Packages                                                                                                   
Name        : java-11-openjdk-headless                                                                               
Arch        : x86_64
Epoch       : 1
Version     : 11.0.ea.28
Release     : 4.el7
Size        : 160 M
Repo        : installed
From repo   : rhel-7.6-base
Summary     : OpenJDK Headless Runtime Environment 11
URL         : http://openjdk.java.net/
License     : ASL 1.1 and ASL 2.0 and BSD and BSD with advertising and GPL+ and GPLv2 and GPLv2 with exceptions and IJG and LGPLv2+ and MIT and MPLv2.0 and Public Domain and
            : W3C and zlib and ISC and FTL and RSA
Description : The OpenJDK runtime environment 11 without audio and video support.

(Originally by Petr Balogh)

Comment 3 RHV bug bot 2018-09-24 12:44:01 UTC
OpenJDK 11 is introduced in RHEL 7.6, but we cannot use it and we need to stay on OpenJDK 8

(Originally by Martin Perina)

Comment 4 RHV bug bot 2018-09-24 12:44:05 UTC
Petr,
Can you please confirm that it will not impact existing installations. And even if running yum upgrade on the manager would not bring OpenJDK 11.

(Originally by Marina Kalinin)

Comment 5 RHV bug bot 2018-09-24 12:44:09 UTC
(In reply to Marina from comment #3)
> Petr,
> Can you please confirm that it will not impact existing installations. And
> even if running yum upgrade on the manager would not bring OpenJDK 11.

Upgrades from previous version shouldn't be affected, because on those machines we already have install java-1.8.0-openjdk-headless which provides 'java-openjdk-headles >= 1.8.0' which we require. But for new installations on RHEL 7.6 java-11-openjdk-headless will be installed, because yum will always select highest available version. Because of that we need to change our requirements from 'java-openjdk-headles >= 1.8.0' to 'java-1.8.0-openjdk-headles >= 1.8.0' so java-11 will not be installed.

(Originally by Martin Perina)

Comment 6 RHV bug bot 2018-09-24 12:44:13 UTC
When in our playbook we installed java-1.8.0-openjdk-headles and after all our flow I see that we have now these jdk packages installed on the system
rpm -qa |grep jdk
java-1.8.0-openjdk-headless-1.8.0.181-7.b13.el7.x86_64
eap7-jboss-openjdk-orb-8.0.8-2.Final_redhat_1.1.ep7.el7.noarch
java-11-openjdk-headless-11.0.ea.28-6.el7.x86_64
eap7-jackson-datatype-jdk8-2.8.11-1.redhat_1.1.ep7.el7.noarch
java-11-openjdk-11.0.ea.28-6.el7.x86_64
copy-jdk-configs-3.3-10.el7_5.noarch

(Originally by Petr Balogh)

Comment 7 RHV bug bot 2018-09-24 12:44:17 UTC
WARN: Bug status wasn't changed from MODIFIED to ON_QA due to the following reason:

[Found non-acked flags: '{'rhevm-4.2.z': '?'}', ]

For more info please contact: rhv-devops: Bug status wasn't changed from MODIFIED to ON_QA due to the following reason:

[Found non-acked flags: '{'rhevm-4.2.z': '?'}', ]

For more info please contact: rhv-devops

(Originally by rhv-bugzilla-bot)

Comment 9 Pavol Brilla 2018-10-09 08:16:55 UTC
# yum deplist ovirt-engine | grep openjdk ; yum list ovirt-engine
  dependency: java-1.8.0-openjdk-headless >= 1:1.8.0
   provider: java-1.8.0-openjdk-headless.x86_64 1:1.8.0.181-7.b13.el7
   provider: java-1.8.0-openjdk-headless.i686 1:1.8.0.181-7.b13.el7
Loaded plugins: product-id, search-disabled-repos, subscription-manager, versionlock
Installed Packages
ovirt-engine.noarch                                                   4.2.7.2-0.1.el7ev

Comment 11 errata-xmlrpc 2018-11-05 15:02: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://access.redhat.com/errata/RHBA-2018:3480


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