Sailaja Mada created CLOUDSTACK-2556: ----------------------------------------
Summary: NPE while creating persistent network when there are no free Public IP's Key: CLOUDSTACK-2556 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2556 Project: CloudStack Issue Type: Bug Security Level: Public (Anyone can view this level - this is the default.) Components: Network Controller Affects Versions: 4.2.0 Reporter: Sailaja Mada Setup: Advanced Networking with VMWARE , MS -RHE 6.3 1. Create persistent network offering 2. Tried to create Persistent Network using the above offering where there no free Public IP's Observation: It failed with NPE. 2013-05-17 14:07:45,904 DEBUG [cloud.network.NetworkManagerImpl] (catalina-exec-22:null) Sending network shutdown to VirtualRouter 2013-05-17 14:07:45,906 DEBUG [cloud.network.NetworkManagerImpl] (catalina-exec-22:null) Network id=206 is shutdown successfully, cleaning up corresponding resources now. 2013-05-17 14:07:45,909 DEBUG [network.guru.GuestNetworkGuru] (catalina-exec-22:null) Releasing vnet for the network id=206 2013-05-17 14:07:45,923 DEBUG [cloud.network.NetworkManagerImpl] (catalina-exec-22:null) Lock is released for network id 206 as a part of network implement 2013-05-17 14:07:45,941 INFO [cloud.api.ApiServer] (catalina-exec-22:null) Insufficient address capacity 2013-05-17 14:07:45,941 ERROR [cloud.api.ApiServer] (catalina-exec-22:null) Exception responding to http request java.lang.NullPointerException at org.apache.cloudstack.api.response.ExceptionResponse.addProxyObject(ExceptionResponse.java:57) at com.cloud.api.ApiServer.getSerializedApiError(ApiServer.java:1073) at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:320) 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.Http11NioProcessor.process(Http11NioProcessor.java:889) at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2268) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:679) 2013-05-17 14:07:45,943 DEBUG [cloud.api.ApiServlet] (catalina-exec-22:null) ===END=== 10.144.6.19 -- GET command=createNetwork&response=json&sessionkey=fGT1WweKL1SNIo7awJvV9Vf70Tw%3D&zoneId=43d81d64-0e93-4ef7-839d-34cb9bd3a1b9&name=vnmcnw1&displayText=vnmcnw1&networkOfferingId=6179cb18-66ae-4800-b7f3-ae7d12257dcf&_=1368780015277 -- 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