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

cannot delete pod, NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 4.5.2
    • None
    • Management Server
    • Security Level: Public (Anyone can view this level - this is the default.)
    • Simple test setup with one zone, one pod, one cluster, one host

    Description

      Tried a cloudmonkey script to clean up an environment, deleting host, cluster, pod and zone in order to recreate.

      Failed through cloudmonkey.

      Tried manually deleting pod, same error, same debug stack. NPE.

      Log snippet below:
      2015-09-26 11:36:42,153 DEBUG [c.c.a.ApiServlet] (catalina-exec-23:ctx-a265f355) ===START=== 172.16.1.14 – GET command=deletePod&id=a0be72da-4681-42dc-8d3a-324879d778b0&response=json&_=1443281802111
      2015-09-26 11:36:42,216 DEBUG [c.c.u.d.T.Transaction] (catalina-exec-23:ctx-a265f355 ctx-7a0bf087) Rolling back the transaction: Time = 52 Name = catalina-exec-23; called by -TransactionLegacy.rollback:902-TransactionLegacy.removeUpTo:845-TransactionLegacy.close:669-Transaction.execute:49-Transaction.execute:54-ConfigurationManagerImpl.deletePod:1023-NativeMethodAccessorImpl.invoke0:-2-NativeMethodAccessorImpl.invoke:57-DelegatingMethodAccessorImpl.invoke:43-Method.invoke:606-AopUtils.invokeJoinpointUsingReflection:317-ReflectiveMethodInvocation.invokeJoinpoint:183
      2015-09-26 11:36:42,291 ERROR [c.c.a.ApiServer] (catalina-exec-23:ctx-a265f355 ctx-7a0bf087) unhandled exception executing api command: [Ljava.lang.String;@4a47022e
      java.lang.NullPointerException
      at com.cloud.dc.dao.VlanDaoImpl.listVlansForPodByType(VlanDaoImpl.java:161)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
      at com.cloud.utils.db.TransactionContextInterceptor.invoke(TransactionContextInterceptor.java:34)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
      at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      at com.sun.proxy.$Proxy98.listVlansForPodByType(Unknown Source)
      at com.cloud.network.NetworkModelImpl.listPodVlans(NetworkModelImpl.java:796)
      at com.cloud.configuration.ConfigurationManagerImpl$1.doInTransactionWithoutResult(ConfigurationManagerImpl.java:1043)
      at com.cloud.utils.db.TransactionCallbackNoReturn.doInTransaction(TransactionCallbackNoReturn.java:25)
      at com.cloud.utils.db.Transaction$2.doInTransaction(Transaction.java:57)
      at com.cloud.utils.db.Transaction.execute(Transaction.java:45)
      at com.cloud.utils.db.Transaction.execute(Transaction.java:54)
      at com.cloud.configuration.ConfigurationManagerImpl.deletePod(ConfigurationManagerImpl.java:1023)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
      at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      at com.sun.proxy.$Proxy105.deletePod(Unknown Source)
      at org.apache.cloudstack.api.command.admin.pod.DeletePodCmd.execute(DeletePodCmd.java:70)
      at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:141)
      at com.cloud.api.ApiServer.queueCommand(ApiServer.java:704)
      at com.cloud.api.ApiServer.handleRequest(ApiServer.java:529)
      at com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:288)
      at com.cloud.api.ApiServlet$1.run(ApiServlet.java:119)
      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:116)
      at com.cloud.api.ApiServlet.doGet(ApiServlet.java:78)
      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:2274)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)
      2015-09-26 11:36:42,297 DEBUG [c.c.a.ApiServlet] (catalina-exec-23:ctx-a265f355 ctx-7a0bf087) ===END=== 172.16.1.14 – GET command=deletePod&id=a0be72da-4681-42dc-8d3a-324879d778b0&response=json&_=1443281802111

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              noeldkendall Noel D. Kendall
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: