Uploaded image for project: 'CloudStack'
  1. CloudStack
  2. CLOUDSTACK-9582

Null pointer exceptions while deleting network concurrently

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.6.0
    • Fix Version/s: None
    • Component/s: None
    • Security Level: Public (Anyone can view this level - this is the default.)
    • Environment:
      esx-5.5

      Description

      This is a generic issue where we used NUageService provider
      steps to reproduce
      1. create 100 isolated networks, create vms in 1 network
      2. delete 100 networks
      expected results:
      it should not throw null pointer exception and network should get deleted

      actual results:
      it throws null pointer exception and networks get deleted

      2016-10-17 14:39:56,647 ERROR [c.c.a.ApiServer] (catalina-exec-15:ctx-3c0a08c5 ctx-031f80e3) (logid:9760f183) unhandled exception executing api command: [Ljava.lang.String;@7edf9d68
      java.lang.NullPointerException
      	at org.apache.cloudstack.engine.orchestration.NetworkOrchestrator.convertNetworkToNetworkProfile(NetworkOrchestrator.java:2847)
      	at com.cloud.api.ApiDBUtils.getNetworkProfile(ApiDBUtils.java:1224)
      	at com.cloud.api.ApiResponseHelper.createNetworkResponse(ApiResponseHelper.java:1995)
      	at org.apache.cloudstack.api.command.admin.network.ListNetworksCmdByAdmin.execute(ListNetworksCmdByAdmin.java:44)
      	at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:132)
      	at com.cloud.api.ApiServer.queueCommand(ApiServer.java:707)
      	at com.cloud.api.ApiServer.handleRequest(ApiServer.java:538)
      	at com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:297)
      	at com.cloud.api.ApiServlet$1.run(ApiServlet.java:129)
      	at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
      	at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
      	at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
      	at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:126)
      	at com.cloud.api.ApiServlet.doGet(ApiServlet.java:86)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
      	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
      	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
      	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
      	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      	at java.lang.Thread.run(Thread.java:745)
      2016-10-17 14:39:56,648 DEBUG [o.a.c.e.o.NetworkOrchestrator] (API-Job-Executor-96:ctx-b2805859 job-113 ctx-1c0dfe04) (logid:64f9073a) Successfully cleaned up firewallRules rules for network id=392
      
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bhavin2909 Bhavin
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: