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 69D80CDDF for ; Mon, 10 Mar 2014 17:09:46 +0000 (UTC) Received: (qmail 87875 invoked by uid 500); 10 Mar 2014 17:09:45 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 87673 invoked by uid 500); 10 Mar 2014 17:09:45 -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 87660 invoked by uid 99); 10 Mar 2014 17:09:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Mar 2014 17:09:44 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of koushik.das@citrix.com designates 103.14.252.240 as permitted sender) Received: from [103.14.252.240] (HELO SMTP.CITRIX.COM.AU) (103.14.252.240) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Mar 2014 17:09:39 +0000 X-IronPort-AV: E=Sophos;i="4.97,625,1389744000"; d="scan'208";a="3543783" Received: from sinaccessns.citrite.net (HELO SINPEX01CL01.citrite.net) ([10.151.60.9]) by sinpip01.citrite.net with ESMTP; 10 Mar 2014 17:09:15 +0000 Received: from SINPEX01CL02.citrite.net ([169.254.2.128]) by SINPEX01CL01.citrite.net ([169.254.1.253]) with mapi id 14.02.0342.004; Tue, 11 Mar 2014 01:09:14 +0800 From: Koushik Das To: "" Subject: Re: DeployVM failing on master with NPE Thread-Topic: DeployVM failing on master with NPE Thread-Index: AQHPPFPixOFzQam9q06QafmwYJtJCprZ/MkAgAALXoA= Date: Mon, 10 Mar 2014 17:09:13 +0000 Message-ID: <6564946E-924A-4AC6-A5B4-D09E350508CC@citrix.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.13.112.13] Content-Type: text/plain; charset="iso-8859-1" Content-ID: <2DC7779565559C4192FBCF0E379A985F@citrix.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-DLP: SIN1 X-Virus-Checked: Checked by ClamAV on apache.org This is a new install using master. So this is not about db changes but mos= tly a bug. On 10-Mar-2014, at 9:58 PM, Marcus wrote: > Mike has sent out several emails about the DB changes he made. >=20 > On Mon, Mar 10, 2014 at 5:28 AM, Koushik Das wro= te: >> I am seeing the following exception >>=20 >> ERROR [c.c.a.ApiServer] (38419149@qtp-1917357200-11:ctx-116b8207 ctx-9a5= 4f764) unhandled exception executing api command: [Ljava.lang.String;@36d30= b1d >> java.lang.NullPointerException >> at org.apache.cloudstack.engine.orchestration.CloudOrchestrator.c= reateVirtualMachine(CloudOrchestrator.java:191) >> at com.cloud.vm.UserVmManagerImpl$3.doInTransaction(UserVmManager= Impl.java:2908) >> at com.cloud.vm.UserVmManagerImpl$3.doInTransaction(UserVmManager= Impl.java:1) >> at com.cloud.utils.db.Transaction.execute(Transaction.java:37) >> at com.cloud.vm.UserVmManagerImpl.commitUserVm(UserVmManagerImpl.= java:2821) >> at com.cloud.vm.UserVmManagerImpl.createVirtualMachine(UserVmMana= gerImpl.java:2759) >> at com.cloud.vm.UserVmManagerImpl.createAdvancedVirtualMachine(Us= erVmManagerImpl.java:2465) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess= orImpl.java:57) >> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth= odAccessorImpl.java:43) >> at java.lang.reflect.Method.invoke(Method.java:606) >>=20 >>=20 >> git blame shows the following: >>=20 >> c427e8db engine/orchestration/src/org/apache/cloudstack/engine/orchestra= tion/CloudOrchestrator.java (Mike Tutkowski 2014-03-06 14:00:56 -0700= 191) if (offering.isCustomizedIops()) { >>=20 >> And in the disk_offering table in the db the values for this property is= set to null for all entries. >>=20 >> What is the correct way to use this property? Should the code be fixed o= r the db entries need to be correctly updated? >>=20 >> -Koushik >>=20