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 A23D4200C1E for ; Fri, 17 Feb 2017 08:56:18 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id A0BDA160B55; Fri, 17 Feb 2017 07:56:18 +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 9F31D160B3F for ; Fri, 17 Feb 2017 08:56:17 +0100 (CET) Received: (qmail 67562 invoked by uid 500); 17 Feb 2017 07:56:16 -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 67549 invoked by uid 99); 17 Feb 2017 07:56:16 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Feb 2017 07:56:16 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id D70B9C2648 for ; Fri, 17 Feb 2017 07:56:15 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.48 X-Spam-Level: ** X-Spam-Status: No, score=2.48 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=nuagenetworks-net.20150623.gappssmtp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id P7ZAR-kJd6kG for ; Fri, 17 Feb 2017 07:56:13 +0000 (UTC) Received: from mail-vk0-f42.google.com (mail-vk0-f42.google.com [209.85.213.42]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 595555F3BC for ; Fri, 17 Feb 2017 07:56:13 +0000 (UTC) Received: by mail-vk0-f42.google.com with SMTP id x75so24734807vke.2 for ; Thu, 16 Feb 2017 23:56:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nuagenetworks-net.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=xwEgiQMWT3JqL1zYPZEOpMY7Bf4qT30O1m3JMFH8rYA=; b=af8DARe5f9ucxdowgzw157Y/LCRgnPaSvqSh/ulji3ST9nYiDLYdCSh4qFgl/xvAgB luIY6i0PNTQ1LPI0NcOb2eh7o/zkpQ7zScYfqhjwpocL1lb+vPo3h/r8RuOrpNyVw98Y rmIPhz0X3zf/NG7AAXQuK/WsqNERCGzf2MKSj0+YGG5ygHfOzIFolSEtxI5SmpM4pnZi JyvWDzPHvVfIFuIbIuS6sZLR/Dfpdtdwu43zRl79s1MEHBzxnZGQIl2YLb0XoIPpKoat xaC5BQFkNkZUMNuyGImHwFRSbPqG/b9DXcNgU6yxFDqzeWZR0vSj/PIICrAq2tVErvtW Mv3Q== 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=xwEgiQMWT3JqL1zYPZEOpMY7Bf4qT30O1m3JMFH8rYA=; b=g/XLgeGjObX+xFkNtUlXkBPE/VTsWQ7HpGng0bcwcEJxbJa1UpIW12oZSSDK7Xr8uC /Gm4kz/JnQ4rYf1ATWI1tl3KEPQcQSFMNBcUN20JTJOHqVQ8vyG1/YW+li+a/LdFYhTP c/MWg1hgjHmO5kmi+DXAn47ciGiZwpuHlIWtilMmJtGoGKkD5gdRrJZ3SqiMPHfo9KC0 O0XM9KSp1il2qpLNKvDMzXmjJ0j1Uyc6PtO++40KE/p4/yIk0swygtQaUkniDSvdYscw shWFxR+YjqhnbZ12YgpeTsoXL94QJkshC4uQXc6tpvQDJ4eh5HZl99EOThikCkllsUK+ Ad9Q== X-Gm-Message-State: AMke39nrpHEmqJHbpKi4ZgtFDuoItohXmon5SxhW8CrClAXDqmW8tE0lT2kWru3kE0/byPaR/0zWKx5nQn++aLNr X-Received: by 10.31.51.68 with SMTP id z65mr3360960vkz.40.1487318110986; Thu, 16 Feb 2017 23:55:10 -0800 (PST) MIME-Version: 1.0 Received: by 10.103.69.12 with HTTP; Thu, 16 Feb 2017 23:55:10 -0800 (PST) In-Reply-To: <7BBDB4AA-EEAA-441A-B27A-B94B2F459447@netapp.com> References: <5B096CAE-0CA2-419F-8641-8F437F80C020@netapp.com> <501A90EA-BC58-4E71-85ED-58EA8D180B3E@netapp.com> <346294415.10097.1487238153607@ox.pcextreme.nl> <1C97C31F-5539-4340-B897-6D56E303315E@netapp.com> <4C19C17D-3209-4D18-8742-B7BFC5DDBAA4@netapp.com> <0DA7C213-8B7B-4CD2-BCAE-D5C1B0C88388@netapp.com> <7BBDB4AA-EEAA-441A-B27A-B94B2F459447@netapp.com> From: Kris Sterckx Date: Fri, 17 Feb 2017 08:55:10 +0100 Message-ID: Subject: Re: Can't create a zone using master To: dev@cloudstack.apache.org Content-Type: multipart/alternative; boundary=001a1144a44eac937b0548b53b7c archived-at: Fri, 17 Feb 2017 07:56:18 -0000 --001a1144a44eac937b0548b53b7c Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thanks Mike Investigating. Kris On 17 February 2017 at 08:18, Tutkowski, Mike wrote: > I added a comment on the code of the relevant PR, but the PR is in the > Merged state, so I don't know if people receive e-mail notifications then= . > > > On Feb 17, 2017, at 12:16 AM, Wei ZHOU wrote: > > > > Maybe we need ask Nuage why the lines are added. > > > > > > 2017-02-17 7:54 GMT+01:00 Tutkowski, Mike : > > > >> Hopefully we can now find someone with experience in CloudStack's > >> networking code to tell us if that fix is OK or if that was just a > Band-Aid > >> and we should do something more thorough to correct the issue. > >> > >>> On Feb 16, 2017, at 11:48 PM, Rajani Karuturi > wrote: > >>> > >>> Thanks for digging it Mike. > >>> > >>> ~ Rajani > >>> > >>> http://cloudplatform.accelerite.com/ > >>> > >>> On February 17, 2017 at 12:18 AM, Tutkowski, Mike > >>> (Mike.Tutkowski@netapp.com) wrote: > >>> > >>> Hi, > >>> > >>> I opened a blocker for 4.10 regarding this issue: > >>> > >>> https://issues.apache.org/jira/browse/CLOUDSTACK-9790 > >>> > >>> Thanks, > >>> Mike > >>> > >>> On 2/16/17, 8:35 AM, "Tutkowski, Mike" > >>> wrote: > >>> > >>> I believe the issue is here: > >>> > >>> https://github.com/apache/cloudstack/pull/1579 > >>> > >>> In ConfigurationManagerImpl.java, it appears the lines that led > >>> to NPEs being thrown were added on lines 2924 =E2=80=93 2926: > >>> > >>> https://github.com/apache/cloudstack/pull/1579/files > >>> > >>> On 2/16/17, 2:42 AM, "Wido den Hollander" > >>> wrote: > >>> > >>>> Op 16 februari 2017 om 6:21 schreef Rajani Karuturi > >>> : > >>>> > >>>> > >>>> unfortunately, running one set of tests itself is very time > >>>> consuming(multiplied by hypervisors, network modes etc. its > >>>> impossible to run all) > >>>> > >>>> If I remember correctly, wido tested it with PR 1700 (IPV6 in > >>>> basic networking) > >>>> > >>> > >>> I highly doubt it's PR 1700 which is causing this. The PR I have > >>> open to fix a issue ONLY applies if IPv6 has been set. > >>> > >>> PR 1700 only does something when you have set a IPv6 subnet in > >>> the 'vlan' table: > >>> https://github.com/apache/cloudstack/commit/ > >> c0e7766713b2631a167c2ceea7d42b574a5cd1b9#diff- > >> f90fdac6810fd89f89e827309a41d180R231 > >>> > >>> So I don't think it's caused by this since you NIC table will > >>> not be filled with IPv6 addresses afterwards. > >>> > >>> Wido > >>> > >>>> Can you try a commit before and a commit after that PR? > >>>> > >>>> Thanks, > >>>> > >>>> ~ Rajani > >>>> > >>>> http://cloudplatform.accelerite.com/ > >>>> > >>>> On February 16, 2017 at 1:02 AM, Tutkowski, Mike > >>>> (Mike.Tutkowski@netapp.com) wrote: > >>>> > >>>> Thanks for noting that PR, Rene. I tried building a Basic Zone > >>>> making use of code from that PR, but =E2=80=93 unfortunately =E2=80= =93 I still > >>>> get an exception (below). > >>>> > >>>> On a related note, does this mean we don=E2=80=99t run any integrati= on > >>>> tests that build a Basic Zone before we OK a PR to be checked > >>> in? > >>>> > >>>> ERROR [c.c.a.ApiServer] (qtp555984412-267:ctx-a904cbd0 > >>>> ctx-062a000a) (logid:30f5a3ec) unhandled exception executing > >>> api > >>>> command: [Ljava.lang.String;@4732a98c > >>>> java.lang.NullPointerException > >>>> at > >>>> com.cloud.utils.net.NetUtils.getCidrNetmask(NetUtils.java:956) > >>>> at > >>>> > >>> com.cloud.configuration.ConfigurationManagerImpl.validateIpRange( > >> ConfigurationManagerImpl.java:2924) > >>>> at > >>>> > >>> com.cloud.configuration.ConfigurationManagerImpl. > >> createVlanAndPublicIpRange(ConfigurationManagerImpl.java:2822) > >>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > >>>> at > >>>> > >>> sun.reflect.NativeMethodAccessorImpl.invoke( > >> NativeMethodAccessorImpl.java:62) > >>>> at > >>>> > >>> sun.reflect.DelegatingMethodAccessorImpl.invoke( > >> DelegatingMethodAccessorImpl.java:43) > >>>> at java.lang.reflect.Method.invoke(Method.java:498) > >>>> at > >>>> > >>> org.springframework.aop.support.AopUtils. > invokeJoinpointUsingReflection > >> (AopUtils.java:333) > >>>> at > >>>> > >>> org.springframework.aop.framework.ReflectiveMethodInvocation. > >> invokeJoinpoint(ReflectiveMethodInvocation.java:190) > >>>> at > >>>> > >>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed( > >> ReflectiveMethodInvocation.java:157) > >>>> at > >>>> > >>> org.apache.cloudstack.network.contrail.management. > >> EventUtils$EventInterceptor.invoke(EventUtils.java:107) > >>>> at > >>>> > >>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed( > >> ReflectiveMethodInvocation.java:168) > >>>> at > >>>> > >>> com.cloud.event.ActionEventInterceptor.invoke( > >> ActionEventInterceptor.java:51) > >>>> at > >>>> > >>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed( > >> ReflectiveMethodInvocation.java:168) > >>>> at > >>>> > >>> org.springframework.aop.interceptor.ExposeInvocationInterceptor. > invoke( > >> ExposeInvocationInterceptor.java:92) > >>>> at > >>>> > >>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed( > >> ReflectiveMethodInvocation.java:179) > >>>> at > >>>> > >>> org.springframework.aop.framework.JdkDynamicAopProxy. > >> invoke(JdkDynamicAopProxy.java:213) > >>>> at com.sun.proxy.$Proxy126.createVlanAndPublicIpRange(Unknown > >>>> Source) > >>>> at > >>>> > >>> org.apache.cloudstack.api.command.admin.vlan. > >> CreateVlanIpRangeCmd.execute(CreateVlanIpRangeCmd.java:219) > >>>> at > >>> com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:150) > >>>> at com.cloud.api.ApiServer.queueCommand(ApiServer.java:709) > >>>> at com.cloud.api.ApiServer.handleRequest(ApiServer.java:533) > >>>> at > >>>> > >>> com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:299) > >>>> at com.cloud.api.ApiServlet$1.run(ApiServlet.java:129) > >>>> at > >>>> > >>> org.apache.cloudstack.managed.context.impl. > DefaultManagedContext$1.call( > >> DefaultManagedContext.java:56) > >>>> at > >>>> > >>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext. > >> callWithContext(DefaultManagedContext.java:103) > >>>> at > >>>> > >>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext. > >> runWithContext(DefaultManagedContext.java:53) > >>>> at > >>> com.cloud.api.ApiServlet.processRequest(ApiServlet.java:126) > >>>> at com.cloud.api.ApiServlet.doGet(ApiServlet.java:88) > >>>> at > >>> javax.servlet.http.HttpServlet.service(HttpServlet.java:687) > >>>> at > >>> javax.servlet.http.HttpServlet.service(HttpServlet.java:790) > >>>> at > >>>> > >>> org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812= ) > >>>> at > >>>> > >>> org.eclipse.jetty.servlet.ServletHandler$CachedChain. > >> doFilter(ServletHandler.java:1669) > >>>> at > >>>> > >>> org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter( > >> WebSocketUpgradeFilter.java:189) > >>>> at > >>>> > >>> org.eclipse.jetty.servlet.ServletHandler$CachedChain. > >> doFilter(ServletHandler.java:1652) > >>>> at > >>>> > >>> org.eclipse.jetty.servlet.ServletHandler.doHandle( > >> ServletHandler.java:585) > >>>> at > >>>> > >>> org.eclipse.jetty.server.handler.ScopedHandler.handle( > >> ScopedHandler.java:143) > >>>> at > >>>> > >>> org.eclipse.jetty.security.SecurityHandler.handle( > >> SecurityHandler.java:577) > >>>> at > >>>> > >>> org.eclipse.jetty.server.session.SessionHandler. > >> doHandle(SessionHandler.java:223) > >>>> at > >>>> > >>> org.eclipse.jetty.server.handler.ContextHandler. > >> doHandle(ContextHandler.java:1127) > >>>> at > >>>> > >>> org.eclipse.jetty.servlet.ServletHandler.doScope( > >> ServletHandler.java:515) > >>>> at > >>>> > >>> org.eclipse.jetty.server.session.SessionHandler. > >> doScope(SessionHandler.java:185) > >>>> at > >>>> > >>> org.eclipse.jetty.server.handler.ContextHandler. > >> doScope(ContextHandler.java:1061) > >>>> at > >>>> > >>> org.eclipse.jetty.server.handler.ScopedHandler.handle( > >> ScopedHandler.java:141) > >>>> at > >>>> > >>> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle( > >> ContextHandlerCollection.java:215) > >>>> at > >>>> > >>> org.eclipse.jetty.server.handler.HandlerCollection. > >> handle(HandlerCollection.java:110) > >>>> at > >>>> > >>> org.eclipse.jetty.server.handler.HandlerWrapper.handle( > >> HandlerWrapper.java:97) > >>>> at org.eclipse.jetty.server.Server.handle(Server.java:499) > >>>> at > >>>> > >>> org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311) > >>>> at > >>>> > >>> org.eclipse.jetty.server.HttpConnection.onFillable( > >> HttpConnection.java:258) > >>>> at > >>>> > >>> org.eclipse.jetty.io.AbstractConnection$2.run( > >> AbstractConnection.java:544) > >>>> at > >>>> > >>> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob( > >> QueuedThreadPool.java:635) > >>>> at > >>>> > >>> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run( > >> QueuedThreadPool.java:555) > >>>> at java.lang.Thread.run(Thread.java:745) > >>>> > >>>> On 2/15/17, 12:52 AM, "Tutkowski, Mike" > >>>> wrote: > >>>> > >>>> Thanks for pointing this out. > >>>> > >>>> I can incorporate those changes in the morning and see if it > >>>> does the trick. > >>>> > >>>>> On Feb 15, 2017, at 12:50 AM, Rene Moser > >>> > >>>> wrote: > >>>>> > >>>>> Probably related to > >>>> https://github.com/apache/cloudstack/pull/1927 > >>>>> > >>>>> > >>>>> > >>>>>> On 02/14/2017 10:44 PM, Tutkowski, Mike wrote: > >>>>>> Hi, > >>>>>> > >>>>>> I=E2=80=99m getting a NullPointerException when trying to create a > >>>> zone using master. > >>>>>> > >>>>>> Below is the relevant code in ConfigurationManagerImpl. > >>>>>> > >>>>>> In the else block, network.getCidr() returns null and > >>>> NetUtil.getCidrNetmask then throws a NullPointerException. > >>>>>> > >>>>>> I noticed that network.getGateway() also returns null > >>> (which > >>>> seems odd). > >>>>>> > >>>>>> Thoughts on this? > >>>>>> > >>>>>> Thanks! > >>>>>> Mike > >>>>>> > >>>>>> public Pair> > >>>> validateIpRange(final String startIP, final String endIP, > >>> final > >>>> String newVlanGateway, final String newVlanNetmask, final > >>>> List vlans, final boolean ipv4, > >>>>>> final boolean ipv6, String ip6Gateway, String ip6Cidr, > >>> final > >>>> String startIPv6, final String endIPv6, final Network network) > >>> { > >>>>>> String vlanGateway =3D null; > >>>>>> String vlanNetmask =3D null; > >>>>>> boolean sameSubnet =3D false; > >>>>>> if (CollectionUtils.isNotEmpty(vlans)) { > >>>>>> for (final VlanVO vlan : vlans) { > >>>>>> vlanGateway =3D vlan.getVlanGateway(); > >>>>>> vlanNetmask =3D vlan.getVlanNetmask(); > >>>>>> sameSubnet =3D hasSameSubnet(ipv4, vlanGateway, vlanNetmask, > >>>> newVlanGateway, newVlanNetmask, startIP, endIP, > >>>>>> ipv6, ip6Gateway, ip6Cidr, startIPv6, endIPv6, network); > >>>>>> if (sameSubnet) break; > >>>>>> } > >>>>>> } else { > >>>>>> vlanGateway =3D network.getGateway(); > >>>>>> vlanNetmask =3D NetUtils.getCidrNetmask(network.getCidr()); > >> > --001a1144a44eac937b0548b53b7c--