Devstack plugin requires openjdk 1.7 instead of any compatible Java 7
Bug #1467949 reported by
serenico
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
networking-odl |
Fix Released
|
Undecided
|
Federico Ressi |
Bug Description
Fedora 21 doesn't came with openjdk1.7 package (as probably other distributions).
When executing script devstack/stack.sh the plugin script fails here:
The script requires explicitly Openjdk package, when actually what it should check if any compatible java 7 is already installed and just use it instead.
For example on my machine I have installe Oracle JDK 7.
$ java -version
java version "1.7.0_79"
Java(TM) SE Runtime Environment (build 1.7.0_79-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)
Changed in networking-odl: | |
assignee: | nobody → Federico Ressi (federico-ressi-9) |
summary: |
- Destack plugin requires openjdk 1.7 instead of any compatible Java 7 + Devstack plugin requires openjdk 1.7 instead of any compatible Java 7 |
description: | updated |
Changed in networking-odl: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Ideal behaviors:
Scenario 1:
- given version of ODL requiring version of Java 7 or Java 8
- given host machine has the right Java version installed as default one
- when installing ODL dependencies (maven, java, ...)
- then don't install Java
Scenario 2:
- given version of ODL requiring version of Java 7 or Java 8
- given host machine has the wrong Java version installed as default one
- given Linux distribution provides compliant OpenJDK package
- when installing ODL dependencies (maven, java, ...)
- then install required version of provided OpenJDK package
- then make installed java the current one using update alternatives
Scenario 3:
- given version of ODL requiring version of Java 7 or Java 8
- given host machine has the wrong Java version installed as default one
- given Linux distribution doesn't provides compliant OpenJDK package
- when installing ODL dependencies (maven, java, ...)
- then install required version of Oracle JDK from PPA (http:// www.webupd8. org/2012/ 01/install- oracle- java-jdk- 7-in-ubuntu- via.html) or from RPM.
- then make installed java the current one using update alternatives