Return-Path: X-Original-To: apmail-cloudstack-users-archive@www.apache.org Delivered-To: apmail-cloudstack-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B89F3108E7 for ; Wed, 20 Nov 2013 10:53:49 +0000 (UTC) Received: (qmail 68814 invoked by uid 500); 20 Nov 2013 10:53:47 -0000 Delivered-To: apmail-cloudstack-users-archive@cloudstack.apache.org Received: (qmail 68527 invoked by uid 500); 20 Nov 2013 10:53:44 -0000 Mailing-List: contact users-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cloudstack.apache.org Delivered-To: mailing list users@cloudstack.apache.org Received: (qmail 68519 invoked by uid 99); 20 Nov 2013 10:53:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Nov 2013 10:53:43 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of t.joseph@imperial.ac.uk designates 155.198.5.155 as permitted sender) Received: from [155.198.5.155] (HELO smtp1.cc.ic.ac.uk) (155.198.5.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Nov 2013 10:53:35 +0000 Received: from eiger.doc.ic.ac.uk ([146.169.12.8]) by smtp1.cc.ic.ac.uk with esmtpsa (TLSv1:DHE-RSA-CAMELLIA256-SHA:256) (Exim 4.80.1) (envelope-from ) id 1Vj5PG-0007rg-Dy for users@cloudstack.apache.org; Wed, 20 Nov 2013 10:53:14 +0000 Message-ID: <528C949A.5020608@imperial.ac.uk> Date: Wed, 20 Nov 2013 10:53:14 +0000 From: Thomas Joseph User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130804 Thunderbird/17.0.8 MIME-Version: 1.0 To: users@cloudstack.apache.org Subject: API command "listNetworks" error Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IC-MsgID: 1Vj5PG-0007rg-Dy X-Virus-Checked: Checked by ClamAV on apache.org Hello I was unable to delete a POD & the "Physical Network 1" from a basic zone from the CS MGMT UI v4.1.1, therefore I had to manually update the "removed" & "state" coloumns for the CS DB table "physical_network" id 205. mysql> select * from physical_network; +-----+--------------------------------------+--------------------+----------------+---------+-------+-----------+------------------------+----------+---------------------+---------------------+ | id | uuid | name | data_center_id | vnet | speed | domain_id | broadcast_domain_range | state | created | removed | +-----+--------------------------------------+--------------------+----------------+---------+-------+-----------+------------------------+----------+---------------------+---------------------+ | 200 | 584c70ea-d8b7-47a4-90a7-24bdee311224 | Physical Network 1 | 1 | NULL | NULL | NULL | POD | Enabled | 2013-09-17 14:53:39 | NULL | | 201 | c8b2cbb2-a553-4059-b11e-c3454560b74c | Physical Network 1 | 2 | NULL | NULL | NULL | ZONE | Disabled | 2013-09-24 12:32:48 | 2013-09-24 13:17:05 | | 202 | 29d4f2f8-abdd-4d43-9999-81a0a18fe858 | Physical Network 1 | 3 | NULL | NULL | NULL | ZONE | Disabled | 2013-09-24 14:13:05 | 2013-09-25 09:53:56 | | 203 | 421283e4-746a-4a2b-88b9-83cd669f92dd | cloud-private | 4 | 750-801 | NULL | NULL | ZONE | Disabled | 2013-09-26 11:15:37 | 2013-10-02 09:52:52 | | 204 | 07cafc6e-d424-4664-9c8b-6f02057f8387 | cloud-public | 4 | NULL | NULL | NULL | ZONE | Disabled | 2013-09-26 11:15:37 | 2013-10-02 09:52:55 | | 205 | 46746864-61ab-490a-bb53-6c1bc48917bd | Physical Network 1 | 5 | NULL | NULL | NULL | POD | Disabled | 2013-10-11 14:46:39 | 2013-11-19 17:29:00 | | 206 | c3057ff2-4872-4a5f-9b33-c1abfb6a573a | Physical Network 1 | 6 | NULL | NULL | NULL | POD | Enabled | 2013-11-19 12:54:02 | NULL | +-----+--------------------------------------+--------------------+----------------+---------+-------+-----------+------------------------+----------+---------------------+---------------------+ 7 rows in set (0.00 sec) After which the "Network" tab in CS MGMT UI displays "Error" and when we try to access a Project via Project View, the following error is displayed: ================================== 2013-11-20 09:39:32,418 ERROR [cloud.api.ApiServer] (http-8443-6:null) unhandled exception executing api command: listNetworks java.lang.NullPointerException at com.cloud.network.guru.DirectNetworkGuru.updateNetworkProfile(DirectNetworkGuru.java:255) at com.cloud.network.NetworkManagerImpl.convertNetworkToNetworkProfile(NetworkManagerImpl.java:2684) at com.cloud.api.ApiDBUtils.getNetworkProfile(ApiDBUtils.java:894) at com.cloud.api.ApiResponseHelper.createNetworkResponse(ApiResponseHelper.java:2109) at org.apache.cloudstack.api.command.user.network.ListNetworksCmd.execute(ListNetworksCmd.java:157) at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:162) at com.cloud.api.ApiServer.queueCommand(ApiServer.java:505) at com.cloud.api.ApiServer.handleRequest(ApiServer.java:355) at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:302) at com.cloud.api.ApiServlet.doGet(ApiServlet.java:66) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:679) 2013-11-20 09:39:32,420 DEBUG [cloud.api.ApiServlet] (http-8443-6:null) ===END=== 146.169.12.8 -- GET command=listNetworks&response=json&sessionkey=VI%2BECCpg9qD%2Fs%2FdPXLF8wUFEoKg%3D&listAll=true&page=1&pagesize=20&_=1384940377593 ===================== Running the command "listNetworks" via cloudmonkey provides me with a "HTTP Error 530:" error. Any thoughts on how this error could be resolved? regards, Thomas