Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 52D15CFEF for ; Mon, 3 Jun 2013 09:32:24 +0000 (UTC) Received: (qmail 47287 invoked by uid 500); 3 Jun 2013 09:32:22 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 47264 invoked by uid 500); 3 Jun 2013 09:32:21 -0000 Mailing-List: contact issues-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 issues@cloudstack.apache.org Received: (qmail 47252 invoked by uid 500); 3 Jun 2013 09:32:21 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 47245 invoked by uid 99); 3 Jun 2013 09:32:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Jun 2013 09:32:20 +0000 Date: Mon, 3 Jun 2013 09:32:20 +0000 (UTC) From: "Sateesh Chodapuneedi (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CLOUDSTACK-2805) [VMware] addVmwareDc fails with NPE when non-existent DC name is passed to the API MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-2805?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sateesh Chodapuneedi updated CLOUDSTACK-2805: --------------------------------------------- Assignee: Sateesh Chodapuneedi > [VMware] addVmwareDc fails with NPE when non-existent DC name is passed to the API > ---------------------------------------------------------------------------------- > > Key: CLOUDSTACK-2805 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2805 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Components: VMware > Affects Versions: 4.2.0 > Environment: commit # b4969c4af5264879ccbec01b65b6c94886fc79d4 > Reporter: venkata swamybabu budumuru > Assignee: Sateesh Chodapuneedi > Priority: Minor > Fix For: 4.2.0 > > > Steps to reproduce : > 1. Have the latest CS setup ready and installed > 2. Try to setup advanced zone with vmware cluster > 3. execute the "addVmwareDc" API with name parameter set to a DC value that doesn't exist on vCenter. > Observations: > (i) It fails with the following NPE in the mgmt server logs > Here is the api that was executed : > http://10.147.59.194:8096/api?command=addVmwareDc&name=Zone1&zoneId=1&username=administrator&password=password_123&url=http://10.147.60.13/Infra/Cluster1&response=json > snippet from mgmt server log: > 013-06-03 09:03:08,808 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null) Skip capacity scan due to there is no Primary Storage UPintenance mode > 2013-06-03 09:03:10,655 DEBUG [vmware.resource.VmwareContextFactory] (ApiServer-4:null) initialize VmwareContext. url: https://10.147.60.13/sdk/vimService, username: administrator, password: p*********** > 2013-06-03 09:03:12,304 DEBUG [network.router.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:null) Found 0 routers to update status. > 2013-06-03 09:03:12,307 DEBUG [network.router.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:null) Found 0 networks to update RvR status. > 2013-06-03 09:03:12,411 DEBUG [network.router.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:null) Found 0 routers to update status. > 2013-06-03 09:03:12,414 DEBUG [network.router.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:null) Found 0 networks to update RvR status. > 2013-06-03 09:03:26,955 ERROR [vmware.manager.VmwareManagerImpl] (ApiServer-4:null) VMware DC discovery failed due to : Exception: java.lang.NullPointerException > Message: null > 2013-06-03 09:03:26,980 INFO [cloud.api.ApiServer] (ApiServer-4:null) VMware DC discovery failed due to : Exception: java.lang.NullPointerException > Message: null > 2013-06-03 09:03:26,982 ERROR [cloud.api.ApiServer] (ApiServer-4:null) error! > java.lang.IllegalArgumentException: Line break in reason phrase. > at org.apache.http.message.BasicHttpResponse.setReasonPhrase(BasicHttpResponse.java:159) > at com.cloud.api.ApiServer.writeResponse(ApiServer.java:887) > at com.cloud.api.ApiServer.handle(ApiServer.java:304) > at org.apache.http.protocol.HttpService.doService(HttpService.java:375) > at org.apache.http.protocol.HttpService.handleRequest(HttpService.java:290) > at com.cloud.api.ApiServer$WorkerTask.run(ApiServer.java:988) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:679) > (ii) when the same API is executed with correct DC name then everything goes fine. > http://10.147.59.194:8096/api?command=addVmwareDc&name=Infra&zoneId=1&username=administrator&password=password_123&url=http://10.147.60.13/Infra/Cluster1 > Attaching all the mgmt server logs and db dump to the bug. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira