Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 350BB200C22 for ; Tue, 21 Feb 2017 08:15:26 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 30309160B68; Tue, 21 Feb 2017 07:15:26 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 516EC160B3E for ; Tue, 21 Feb 2017 08:15:25 +0100 (CET) Received: (qmail 34674 invoked by uid 500); 21 Feb 2017 07:15:24 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 34661 invoked by uid 99); 21 Feb 2017 07:15:24 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Feb 2017 07:15:24 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 8F7BAC05B0 for ; Tue, 21 Feb 2017 07:15:23 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.679 X-Spam-Level: ** X-Spam-Status: No, score=2.679 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_REPLY=1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id knT-d2zH-Ak7 for ; Tue, 21 Feb 2017 07:15:21 +0000 (UTC) Received: from mail-it0-f47.google.com (mail-it0-f47.google.com [209.85.214.47]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 330615FD3A for ; Tue, 21 Feb 2017 07:15:20 +0000 (UTC) Received: by mail-it0-f47.google.com with SMTP id 203so34149986ith.0 for ; Mon, 20 Feb 2017 23:15:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=sOjis5HepkEwFzwC4DW6tSh3xQP6Mdl8B7YpsnCB+Dg=; b=c9CqUrd92TXw14faduwbaPIPjqrx6UJT3pCaX+hl3qrkmvOjiDGKjr3eNxYWISBtX/ QwfGKc6AiHcKtwZAmVREJyWmpc5pRtojIRkjwSEMa6xRh8ewfYO/MvLQfipVgbZqzWWt hxlngruHXB96Cu9iNFwqZxo0nCM7FkZG38hPXUTPTkxxS43e3b2gyhILIO/kdBNNoE7X 9+SO9Aa7n1mWtp0tA3WPOurCA67BbYPt51+h9hRBgWKUzlVxgMsCpdd8aMcBG/Z+Awop uePZJwP+EkwOXJgEriqVQxAmEEjbhoj4dLWhjaswCkYtpQ32wFYfZSQinTI9sPmEQqXF pzKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=sOjis5HepkEwFzwC4DW6tSh3xQP6Mdl8B7YpsnCB+Dg=; b=UDaYAcECBYfAwMZqMBwVcK/Fur3P6Q0WHeVaQqftVx8QWOAIO3WdhyjdMJ1vs2QGdM mZ6tpIYLFUdx6K2M+Qa3yw05L6HYHchQYyiBcUDSgygFleLSqgWZwLBOAUPQtiRuky1R RW+MlxjvEGfdYJAsvDT13fGN8oRC+ggjZjI1e/g1SVtpR3UggCXxKkqgWzvYRjFtM3ha CRdJdwGpj96g91CD3aYbGhxhX/bNKlpzXbJlMC4kA+yVISfVB8fZXxGU9aoh+xY7cOlt LoY7E6WzjUIxZnTDH+7KaVnlK7IQW5hbJu7iDah3fBGC+YLn3hMZ4328w2e6JZ7jMguH WzOg== X-Gm-Message-State: AMke39mIRKO4cW7qZhp3YRnU6aq7PsWDK5rom8HxZCtmzCVifSvgRZS2kNl21xzZG/5nQ4Y9S/qs7DwlSR4WKA== X-Received: by 10.107.7.91 with SMTP id 88mr17307302ioh.91.1487661302447; Mon, 20 Feb 2017 23:15:02 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.41.166 with HTTP; Mon, 20 Feb 2017 23:15:01 -0800 (PST) In-Reply-To: References: From: Wei ZHOU Date: Tue, 21 Feb 2017 08:15:01 +0100 Message-ID: Subject: Re: [QUESTION] Upgrade path to JDK8 To: "dev@cloudstack.apache.org" Content-Type: multipart/alternative; boundary=001a113eba287a85cd054905239d archived-at: Tue, 21 Feb 2017 07:15:26 -0000 --001a113eba287a85cd054905239d Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Marco, Good point. Is there any issue if we compile code with jdk8 but run it on jdk7 (systemvm) ? -Wei 2017-02-21 7:43 GMT+01:00 Marc-Aur=C3=A8le Brothier : > There's a list of compatibility issues between Java 7 & Java 8 here > http://www.oracle.com/technetwork/java/javase/8- > compatibility-guide-2156366. > html > > The main problem I would see in two system communicating while running > different Java version is the way they handle serialization and > de-serialization of objects which had been a problem in the past between > some Java versions. AFAIK we're using JSON for that now, so if the code > already compiles with Java8, it should not be a problem. > > On Mon, Feb 20, 2017 at 10:36 PM, Wei ZHOU wrote: > > > We tested 4.7.1+systemd patches as well, it also works fine. > > > > -Wei > > > > 2017-02-20 22:34 GMT+01:00 Wei ZHOU : > > > > > @Will and @Syed, I build the packages of 4.9.2+systemd patches on > ubuntu > > > 16.04 (openjdk 8). > > > Then install the packages to management server and kvm hosts (all are > > > ubuntu 16.04 with openjdk8). > > > The systemvm template is 4.6 with openjdk7. > > > > > > cpvm and ssvm work fine. > > > > > > As there is no java process in VR, so I did not check, VR should not = be > > > impacted. > > > > > > -Wei > > > > > > 2017-02-20 22:16 GMT+01:00 Pierre-Luc Dion : > > > > > >> That's quite interesting Chiradeep! > > >> > > >> so I could do something like this I guest: > > >> > > >> mvn clean install > > >> > > >> and then this one to build the systemvm.iso: > > >> mvn -Psystemvm -source 1.7 -target 1.7 install > > >> > > >> > > >> I'll give it a try! but for now, I'm worried about existing VR, they > > must > > >> continue to work while running on jdk7. newer VPC would be ok to ru= n > > with > > >> jdk8. but we need to make sure while upgrading the management-serve= r > we > > >> are not in the obligation to upgrade VR's. > > >> > > >> For sure it is required for strongswan + JDK8 to ugprade the VR, but= a > > >> existing VR should remain usable for port forwarding, vm creation a= nd > > >> such... > > >> > > >> I'll post my finding... > > >> > > >> Thanks ! > > >> > > >> > > >> > > >> On Mon, Feb 20, 2017 at 3:59 PM, Chiradeep Vittal < > chiradeepv@gmail.com > > > > > >> wrote: > > >> > > >> > You can build the system vm with -source 1.7 -target 1.7 > > >> > Also unless you are using Java8 features (lambda) the classfiles > > >> produced > > >> > by javac 8 should work in a 1.7 JVM > > >> > > > >> > Sent from my iPhone > > >> > > > >> > > On Feb 20, 2017, at 11:51 AM, Will Stevens > > > >> > wrote: > > >> > > > > >> > > yes, that is what I was expecting. which is why I was asking > about > > >> Wei's > > >> > > setup because he seems to have worked around that problem. Or h= e > > has > > >> a > > >> > > custom SystemVM template running with both JDK7 and JDK8. > > >> > > > > >> > > *Will STEVENS* > > >> > > Lead Developer > > >> > > > > >> > > > > >> > > > > >> > >> On Mon, Feb 20, 2017 at 2:20 PM, Syed Ahmed > > > >> > wrote: > > >> > >> > > >> > >> The problem is that systemvm.iso is built with java 8 whereas > java > > on > > >> > the > > >> > >> VR is java 7 > > >> > >>> On Mon, Feb 20, 2017 at 13:20 Will Stevens < > wstevens@cloudops.com > > > > > >> > wrote: > > >> > >>> > > >> > >>> Did it work after resetting a VPC or when blowing away the SSV= M > or > > >> > >> CPVM? I > > >> > >>> would not expect the SSVM or the CPVM to come up if the > management > > >> > server > > >> > >>> was built with JDK8 and the system vm template is only using > JDK7. > > >> Can > > >> > >> you > > >> > >>> confirm?=E2=80=8B > > >> > >>> > > >> > >>> *Will STEVENS* > > >> > >>> Lead Developer > > >> > >>> > > >> > >>> > > >> > >>> > > >> > >>>> On Mon, Feb 20, 2017 at 1:15 PM, Wei ZHOU < > ustcweizhou@gmail.com > > > > > >> > wrote: > > >> > >>>> > > >> > >>>> We've tested management server 4.7.1 with ubuntu 16.04/openjd= k8 > > and > > >> > >>>> systemvm 4.6 with debian7/openjdk7. > > >> > >>>> The systemvms (ssvm, cpvm) work fine. > > >> > >>>> > > >> > >>>> I agree we need consider the openjdk upgrade in systemvm > > template. > > >> > >>>> > > >> > >>>> -Wei > > >> > >>>> > > >> > >>>> 2017-02-20 18:15 GMT+01:00 Will Stevens >: > > >> > >>>> > > >> > >>>>> Regarding my question. Is it because of the version of Java > that > > >> the > > >> > >>>>> systemvm.iso is built on? > > >> > >>>>> > > >> > >>>>> On Feb 20, 2017 11:58 AM, "Will Stevens" < > wstevens@cloudops.com > > > > > >> > >>> wrote: > > >> > >>>>> > > >> > >>>>>> A question that is hidden in here is: > > >> > >>>>>> - Why does the JDK version on the management server have to > > match > > >> > >> the > > >> > >>>> JDK > > >> > >>>>>> version of the System VM? > > >> > >>>>>> > > >> > >>>>>> *Will STEVENS* > > >> > >>>>>> Lead Developer > > >> > >>>>>> > > >> > >>>>>> > > >> > >>>>>> > > >> > >>>>>> On Mon, Feb 20, 2017 at 11:50 AM, Pierre-Luc Dion < > > >> > >>> pdion@cloudops.com> > > >> > >>>>>> wrote: > > >> > >>>>>> > > >> > >>>>>>> Hi, > > >> > >>>>>>> > > >> > >>>>>>> In the context of deployment of CloudStack with VPCs, > > >> > >>>>>>> What will happen to a cloud when upgrading to 4.10 that no= w > > use > > >> > >>> jdk8? > > >> > >>>>>>> > > >> > >>>>>>> Does upgrading the management-server to 4.10 jdk8 and then > > keep > > >> > >> the > > >> > >>>> old > > >> > >>>>>>> VRs > > >> > >>>>>>> run for a while that run on JDK7 will still work ? > > >> > >>>>>>> > > >> > >>>>>>> Because If we upgrade the management-server to jdk8, we ne= ed > > to > > >> > >> keep > > >> > >>>> VR > > >> > >>>>> to > > >> > >>>>>>> work until they get upgraded but we can't force an upgrade > of > > VR > > >> > >>> just > > >> > >>>>>>> because the management-server is now using JDK8. > > >> > >>>>>>> > > >> > >>>>>>> Thanks, > > >> > >>>>>>> > > >> > >>>>>> > > >> > >>>>>> > > >> > >>>>> > > >> > >>>> > > >> > >>> > > >> > >> > > >> > > > >> > > > > > > > > > --001a113eba287a85cd054905239d--