RHEL 7.x: fab does not manage to install the correct Java version
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R2.20 |
Invalid
|
Medium
|
Raj Reddy | |||
R3.0 |
Fix Committed
|
Medium
|
Raj Reddy | |||
Trunk |
Fix Committed
|
Medium
|
Raj Reddy |
Bug Description
Thanks Nagendra for debugging. Please assign to Raj Reddy.
Provision procedure followed:
fab install_
fab install_
This brings two conflicting Java versions in different repositories:
(1) Version 101 brought by third party packages (RHEL subscriptions):
java-1.
java-1.
(2) Version 91 in Contrail repository:
java-1.
java-1.
Since we don't have yum plugin priority installed, it can't decide repos based on priority. So it gives RHEL repos and contrail repos same priority. By default yum goes for the repo which hosts higher package version, so it went for 101 instead of 91 provided by Contrail.
# java -version
java version "1.7.0_101"
OpenJDK Runtime Environment (rhel-2.
OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)
Later on, Cassandra requires version 91, but version 101 took priority and Cassandra fails to start, according to its log:
"Cassandra 2.0 and later require Java 7u25 or later."
This bug is opened to request two changes:
(1) Since Contrail provided Cassandra that works only with 91, Contrail should have made sure to install 91. i.e in one of their package there should be a dependency mentioned as java-1.
(2) Contrail should have been made higher priority; i.e we could have installed yum-plugin-priority and added lower priority for RHEL (say priority=100 for rhel repos).. this way even if a higher version of package is available in RHEL, yum would prefer to install from Contrail as Contrail repos has priority=1
Review in progress for https:/ /review. opencontrail. org/19882
Submitter: Raj Reddy (<email address hidden>)