Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 91703109CA for ; Mon, 10 Jun 2013 14:17:55 +0000 (UTC) Received: (qmail 31403 invoked by uid 500); 10 Jun 2013 14:17:55 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 31116 invoked by uid 500); 10 Jun 2013 14:17:54 -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 31108 invoked by uid 99); 10 Jun 2013 14:17:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Jun 2013 14:17:53 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ng.tuna@gmail.com designates 209.85.217.182 as permitted sender) Received: from [209.85.217.182] (HELO mail-lb0-f182.google.com) (209.85.217.182) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Jun 2013 14:17:46 +0000 Received: by mail-lb0-f182.google.com with SMTP id r11so5343671lbv.27 for ; Mon, 10 Jun 2013 07:17:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=gAsBVdQ8RUn7auiJ7YizMXbBKetopk+fnUGfaXM61U4=; b=D591JrBHLv254nW7YXqscdCARXzZygyKQjHE7QllABveukHyEWA8u0zmWHupHZ/AhI OzcP7igzJxslOqxO8l4c3RuTtRPUyJ8kPEaUMnoKMSsrK1Nwz8C180bSJYU/8tyiwP7g fLEsM2xtnxgiDMQCDKuAg7lmDpyRGL1sjOvcDIZiR5sOHhpp2Z7ggPHqTiCv16zMJ/W5 11T39KTT8hFSsY5XDG1vHOxOi371faHcgWmTOvy00CeO+52k6Q/3Xlm+gFP1Wdz20RjH UnDKb1SWRv3maYEz6esfMZGfzAZSDTcmERbhLqv1DW+awxT8GxMrxaS5YrMrbEWS3Mja l7QA== MIME-Version: 1.0 X-Received: by 10.112.151.5 with SMTP id um5mr6549905lbb.86.1370873846179; Mon, 10 Jun 2013 07:17:26 -0700 (PDT) Received: by 10.112.21.4 with HTTP; Mon, 10 Jun 2013 07:17:26 -0700 (PDT) Date: Mon, 10 Jun 2013 21:17:26 +0700 Message-ID: Subject: [GSOC] NullPointerException when deployVM using GRE isolation method. Help me! From: Nguyen Anh Tu To: "dev@cloudstack.apache.org" Content-Type: multipart/alternative; boundary=047d7b3a80e4a22e2904decd7003 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b3a80e4a22e2904decd7003 Content-Type: text/plain; charset=ISO-8859-1 Hi forks, I'm trying OVS tunnel with XCP 1.6 and get error NullPointerException when executing deployVM. I found this error starting from the below code. *NetworkManagerImpl.java* *NicProfile profile = guru.allocate(network, requested, vm); (1)* if (isDefaultNic != null) { profile.setDefaultNic( isDefaultNic); } *ExtenalGuestNetworkGuru.java* @Override * public NicProfile allocate(Network config, NicProfile nic, VirtualMachineProfile vm) throws InsufficientVirtualNetworkCapcityException, InsufficientAddressCapacityException* { if (_networkModel.networkIsConfiguredForExternalNetworking(config.getDataCenterId(), config.getId()) && nic != null && nic.getRequestedIpv4() != null) { throw new CloudRuntimeException("Does not support custom ip allocation at this time: " + nic); } NicProfile profile = super.allocate(config, nic, vm); *boolean _isEnabled = Boolean.parseBoolean(_configDao.getValue(Config.OvsTunnelNetwork.key())); (2) if (_isEnabled) { return null; }* if (_networkModel.networkIsConfiguredForExternalNetworking(config.getDataCenterId(), config.getId())) { profile.setStrategy(ReservationStrategy.Start); /* We won't clear IP address, because router may set gateway as it IP, and it would be updated properly later */ //profile.setIp4Address(null); profile.setGateway(null); profile.setNetmask(null); } return profile; }* * The return from (1) is NULL, because at (2) *sdn.ovs.controller* set to true. So profile = NULL and then we get NullPointerException error in the next step. This error prevents me to deployVM using GRE isolation method. If I set * sdn.ovs.controller* = false, no error anymore but can't using GRE. How can I fix this? Thanks for any help. -- N.g.U.y.e.N.A.n.H.t.U --047d7b3a80e4a22e2904decd7003--