Repository navigation
CLOUDSTACK-9710: Switch to JRE1.8 - #1888
Conversation
|
@blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-448 |
a36e5ce to
95016c6
Compare
|
Trillian test result (tid-769)
|
|
This one is open for review, pinging for review -- @swill @karuturi @abhinandanprateek @murali-reddy @PaulAngus @nvazquez @serg38 @milamberspace @wido @syed @mike-tutkowski and others High level major changes:
|
|
Trillian test result (tid-771)
|
|
lgtm on code review @rhtyd |
|
Trillian test result (tid-770)
|
|
code LGTM. |
|
All, for transparency this comment has the build log of the new systemvmtemplate attached: The systemvmtemplates for 4.10 (Debian7 based with openjdk-8/zulu-8): http://packages.shapeblue.com/systemvmtemplate/custom/4.10-jre8 Notes for above systemvmtemplate:
|
|
Overall the changes look good to me. But can you explain why for example you changed the dhcp package name? It doesn't seem related to Java 8. All in favor of this switch, just checking why it's in there. In addition we should probably switch to a new Debian version anyway for the SSVM. |
|
Thanks @wido I'll revert that line, though the dhcp-3 is a virtual package that actually install isc-dhcp-client, see https://packages.debian.org/wheezy/dhcp3-client |
|
@rhtyd Understood, no problem, just trying to keep the changes in this PR clean. All changes should be Java 8 related. |
|
Thanks @wido I've reverted and updated the PR now, you can refresh to see the updated changes. |
|
Looks good now @rhtyd LGTM for the code |
|
I walked through the diffs and they LGTM. I did not actually run the code, however, because I'm in the middle of another CloudStack project and I don't have the resources available at the time being. |
| # | ||
| # Ubuntu 14.04 | ||
| # docker run -ti -v /tmp:/src ubuntu:14.04 /bin/bash -c "apt-get update && apt-get install -y dpkg-dev python debhelper openjdk-7-jdk genisoimage python-mysql.connector maven lsb-release devscripts dh-systemd python-setuptools && /src/cloudstack/packaging/build-deb.sh" | ||
| # docker run -ti -v /tmp:/src ubuntu:14.04 /bin/bash -c "apt-get update && apt-get install -y dpkg-dev python debhelper openjdk-8-jdk genisoimage python-mysql.connector maven lsb-release devscripts dh-systemd python-setuptools && /src/cloudstack/packaging/build-deb.sh" |
There was a problem hiding this comment.
@rhtyd openjdk-8-jdk doesn't exists on Ubuntu 14.04
There was a problem hiding this comment.
@milamberspace Ubuntu users have options to use the PPA: https://launchpad.net/~openjdk-r/+archive/ubuntu/ppa
Java7 has EOL-ed, Ubuntu users should use JRE8 now?
|
|
||
| # The first existing directory is used for JAVA_HOME (if JAVA_HOME is not defined in $DEFAULT) | ||
| JDK_DIRS="/usr/lib/jvm/java-7-openjdk-amd64 /usr/lib/jvm/java-7-openjdk-i386 /usr/lib/jvm/java-7-oracle /usr/lib/jvm/java-6-openjdk /usr/lib/jvm/java-6-openjdk-i386 /usr/lib/jvm/java-6-openjdk-amd64 /usr/lib/jvm/java-6-sun" | ||
| JDK_DIRS="/usr/lib/jvm/java-8-openjdk-amd64 /usr/lib/jvm/java-8-openjdk-i386 /usr/lib/jvm/java-8-oracle" |
There was a problem hiding this comment.
@rhtyd So Ubuntu 14.04 doesn't have openjdk-8, the .deb packages for Trusty don't works too with this JDK_DIRS
There was a problem hiding this comment.
Do you think adding the usage of PPA https://launchpad.net/~openjdk-r/+archive/ubuntu/ppa for openjdk-8 should be good enough for Ubuntu users?
|
I've try to install this PR on a 2 sample topologies without success:
This is -1 for this PR with Ubuntu 14.04 and 16.04 (cloudstack debian packages). Trillian don't tests these distribs? |
|
@milamberspace thanks, yes there is some issue with Ubuntu as mgmt server so Trillian tests don't run them (I'll try to get them fixed soon). Mgmt servers is not supported on ubuntu 16.04 yet; only as kvm hosts. Ubuntu users can use this ppa: https://launchpad.net/~openjdk-r/+archive/ubuntu/ppa which is widely used |
|
@rhtyd the PPA openjdk can be used probably (even if it's an unsupported packages without warranty), but we need to document this on installation manual (as a requirement to installation CS on Ubuntu 14.04... Other question about Zulu on Debian 7: not supported too? |
|
@milamberspace yes Debian7 official main and backport repos don't have openjdk8 yet, even the jessie main repos don't have openjdk8 pkg yet, only jessie-backports has it. For this reason, I used zulu-8... I think zulu-8 can even be used by Ubuntu users as well, they are certified openjdk8 builds from Azul, see http://www.azul.com/downloads/zulu, http://repos.azulsystems.com. Zulu ToS allows for redistribution and carries terms similar to opensource licenses such as no warranty etc. The blockers for running mgmt server on Ubuntu16.04 are systemd and tomcat8/9 related support, if we can solve the issue or moving away from Tomcat to embedded-Jetty (like we've in developer mode) -- we can simplify packages for a lot of the distributions. |
|
Thanks for the docs update. I've tested the PR with my test topology on Ubuntu 14.04 + Openjdk PPA. With the new systemvm (generated from the PR too) LGTM. Note : the docker build command with Ubuntu 14.04 don't works if the Openjdk8/PPA is not installed before. |
|
Trillian test result (tid-779)
|
|
@blueorangutan test |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-780)
|
|
Thanks everyone, since we've no outstanding issues or objections, enough LGTMs and all regression tests across xen/vmware/kvm pass -- I'll proceed with merging this. |
CLOUDSTACK-9710: Switch to JRE1.8 - Switches Travis to use jdk1.8 - Changes java-version to 1.8 - Change jdk/maven version to 1.8 - Switch to F5/java8 compatible library release - Switch packaging to use jdk 1.8, and jre 1.8 in init/systemd scripts - Switch systemvm to openjdk-8-jre * pr/1888: CLOUDSTACK-9710: Switch to JRE1.8 Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
|
@rhtyd I tried building the latest master I have problems getting the SSVM and the console proxy up. I get the following error The management server is running Java 8 but it looks like the systemvms are still running java 7. How can I upgrade the java version there? |
|
Yes you need a new systemvm with Java 8 too. See: http://markmail.org/thread/lj7simcdfynti2ml (you can build your own systemvm, see: |
|
This is supposed to do it @syed: https://github.com/apache/cloudstack/pull/1888/files#diff-e8e4d31bb5d860c8e7ada3120f758ee9R98 You built a new system VM template or used a new one provided by one of the mirrors? You have to change the global config to make the new template the default and restart ACS in order for it to be used by default. Here are the global configs for the different hypervisors: Let us know... |
|
BTW, something that is worth noting is that even if you use a new system vm template, but the box that the vm template was built on is running Java 7, you will get the same error that @syed just reported. I forgot to update my Jenkins slave to use Java 8 and I was able to reproduce the problem that @syed experienced with new builds of the system vm template. Maybe we should try to put a check or something if you try to build the system vm template with the wrong version. I am sure people will run into this because almost everyone will be using Java 7 in their Jenkins for previous ACS builds and I am sure others will forget to make the change to use Java 8 for those builds. Building the ACS RPMs will fail if you don't have Java 8 installed, but the system VM build will succeed even though the resulting template will not be functional... |
|
@swill yes, please install both jdk7 and jdk8, and setup |
|
Will Stevens on dev@cloudstack.apache.org replies: I had to create a file: ~./mavenrc JAVA_HOME=$(/usr/libexec/java_home -v $(jenv version-name)) Will STEVENS |
|
@swill I use these docker images for building packages, they have jenv and everything else setup: https://hub.docker.com/u/bhaisaab Don't use jenv's initialization in .bashrc or .profile, but do that in your Jenkins script: For using my CentOS6 image, you'll need to export this: |
|
We will have to review building the .DEB packages as well. I made a start by building in Docker and building for 14.04 and 16.04 with the systemd differences between them. I however really don't have the time right now to dig into this and configure Jenkins to get it working properly. |
|
We need to change one more setting for noredist build to work with updated iControl version |
|
@serg38 I've been maintaining the non-oss libs here: https://github.com/rhtyd/cloudstack-nonoss |
|
I got the master working now with the systemvm template http://packages.shapeblue.com.s3-eu-west-1.amazonaws.com/systemvmtemplate/4.10/systemvm64template-4.10-xen.vhd.bz2 @rhtyd would the systemvm template from http://jenkins.buildacloud.org/ also work? Also, we need to update the wiki https://cwiki.apache.org/confluence/display/CLOUDSTACK/How+to+build+CloudStack with the newer URLs. I would prefer it be jenkins.buildacloud.org. |
|
@syed yes, if the systemvmtemplates were built from master after this PR was merged. There is no secret sauce in the systemvmtemplate that I've uploaded on packages.shapeblue.com S3 bucket. Checkout the readme file at tools/appliance, that's more updated than any wiki page. |
|
Any suggestions to resolve this? I have built from master using JDK8 and have setup my My management server is on CentOS6.8. When I run: It fails with:
|
|
@swill build el7 (centos7) packages on centos7, and el6 (centos6) packages on centos6. You may use my docker images, this is what Trillian/blueorangutan uses for building (PR) packages: https://hub.docker.com/u/bhaisaab/ |
|
Wow, these builds are getting complicated now. I will see if I can get Java8 installed on my CentOS6 Jenkins slaves so I can get my existing build pipelines working again. Thanks... |
Dockerfile: Upgrade base distro to Ubuntu 16.04, fix support for JDK8Fix current broken build introduce with JDK upgrade from #1888 of docker simulator because of missing dependencies and JDK8. This PR upgrade the distro to Ubuntu 16.04 and use default jdk version 8. I've quickly test the build locally, no error in the UI and logs. * pr/1921: Upgrade base distro to Ubuntu 16.04, fix support for JDK8, fix dependencies, should fix current broken build of docker simulator Signed-off-by: Rajani Karuturi <rajani.karuturi@accelerite.com>
|
@rhtyd I built the Java 8 version on a CentOS6 slave and I am trying to install it on a CentOS 6.8 host and I am getting a similar issue. The details are here: https://lists.apache.org/thread.html/d771df6a4ff07638362ab1343af69d6ab5d35a6cb4a9925b3077aa55@%3Cdev.cloudstack.apache.org%3E This seems to be related to this PR. I have not been able to get a Java 8 version of ACS to work yet. |
|
I found the issue. I modified this section to be the following and everything is working now. |
|
Maybe we should be defaulting this file to Java 8 now??? |
|
@swill: Yes we should! I think that was an oversight. Can you send a PR for this against master? |
By default, openjdk-8 packages are not available on Debian 7 (wheezy); installing the pkg from jessie/testing causes several package regressions so I've used an openjdk free/opensource repository maintained by Azul, please review their terms of use: http://www.azul.com/products/zulu/zulu-terms-of-use
They are similar to what openjdk, or any other package on Debian would provide.