Chandan Purushothama created CLOUDSTACK-2371:
------------------------------------------------

             Summary: NTier: Deletion of Private Gateway failed due to Null 
Pointer Exception
                 Key: CLOUDSTACK-2371
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2371
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: Management Server
    Affects Versions: 4.2.0
            Reporter: Chandan Purushothama
            Priority: Critical
             Fix For: 4.2.0
         Attachments: management-server.zip



===========
Observations:
===========

2013-05-07 18:31:57,693 DEBUG [cloud.api.ApiServlet] (catalina-exec-8:null) 
===END===  10.216.132.104 -- GET  
command=deletePrivateGateway&id=59ec16d4-a076-4692-9abe-b986cf81cda4&response=json&sessionkey=xMoElKyZsirl3kELteeIURhHbIU%3D&_=1367976753038
2013-05-07 18:31:57,695 DEBUG [cloud.async.AsyncJobManagerImpl] 
(Job-Executor-50:job-41) Executing 
org.apache.cloudstack.api.command.admin.vpc.DeletePrivateGatewayCmd for job-41
2013-05-07 18:31:57,700 DEBUG [cloud.async.AsyncJobManagerImpl] 
(Job-Executor-50:job-41) Sync job-41 execution on object vpc.1
2013-05-07 18:31:57,706 DEBUG [cloud.async.AsyncJobManagerImpl] 
(Job-Executor-50:job-41) job 
org.apache.cloudstack.api.command.admin.vpc.DeletePrivateGatewayCmd for job-41 
was queued, processing the queue.
2013-05-07 18:31:57,711 DEBUG [cloud.async.AsyncJobManagerImpl] 
(Job-Executor-50:job-41) Executing sync queue item: SyncQueueItemVO {id:21, 
queueId: 1, contentType: AsyncJob, contentId: 41, lastProcessMsid: 
7508777239729, lastprocessNumber: 21, lastProcessTime: Tue May 07 18:31:57 PDT 
2013, created: Tue May 07 18:31:57 PDT 2013}
2013-05-07 18:31:57,712 DEBUG [cloud.async.AsyncJobManagerImpl] 
(Job-Executor-50:job-41) Schedule queued job-41
2013-05-07 18:31:57,718 DEBUG [cloud.async.SyncQueueManagerImpl] 
(Job-Executor-50:job-41) There is a pending process in sync queue(id: 1)
2013-05-07 18:31:57,719 DEBUG [cloud.async.AsyncJobManagerImpl] 
(Job-Executor-51:job-41) Executing 
org.apache.cloudstack.api.command.admin.vpc.DeletePrivateGatewayCmd for job-41
2013-05-07 18:31:57,727 DEBUG [network.vpc.VpcManagerImpl] 
(Job-Executor-51:job-41) Marked gateway VpcGateway[10|10.223.60.32|1] with 
state Deleting
2013-05-07 18:31:57,736 DEBUG 
[network.router.VpcVirtualNetworkApplianceManagerImpl] (Job-Executor-51:job-41) 
Releasing private ip for gateway 
com.cloud.network.vpc.PrivateGatewayProfile@eed2c67 from 
VM[DomainRouter|r-5-NATONPRVGW]
2013-05-07 18:31:57,743 DEBUG [cloud.network.NetworkModelImpl] 
(Job-Executor-51:job-41) Service SecurityGroup is not supported in the network 
id=209
2013-05-07 18:31:57,753 DEBUG [agent.transport.Request] 
(Job-Executor-51:job-41) Seq 1-275054878: Sending  { Cmd , MgmtId: 
7508777239729, via: 1, Ver: v1, Flags: 100011, 
[{"routing.IpAssocVpcCommand":{"ipAddresses":[{"accountId":1,"publicIp":"10.223.60.33","sourceNat":true,"add":false,"oneToOneNat":false,"firstIP":false,"vlanId":"600","vlanGateway":"10.223.60.1","vlanNetmask":"255.255.255.192","vifMacAddress":"06:11:c0:00:00:2b","trafficType":"Guest"}],"accessDetails":{"router.guest.ip":"10.223.60.33","zone.network.type":"Advanced","router.ip":"169.254.3.235","router.name":"r-5-NATONPRVGW"},"wait":0}}]
 }
2013-05-07 18:31:58,544 DEBUG [agent.transport.Request] 
(AgentManager-Handler-5:null) Seq 1-275054878: Processing:  { Ans: , MgmtId: 
7508777239729, via: 1, Ver: v1, Flags: 10, 
[{"routing.IpAssocAnswer":{"results":["10.223.60.33 - 
success"],"result":true,"wait":0}}] }
2013-05-07 18:31:58,544 DEBUG [agent.transport.Request] 
(Job-Executor-51:job-41) Seq 1-275054878: Received:  { Ans: , MgmtId: 
7508777239729, via: 1, Ver: v1, Flags: 10, { IpAssocAnswer } }
2013-05-07 18:31:58,544 DEBUG 
[network.router.VpcVirtualNetworkApplianceManagerImpl] (Job-Executor-51:job-41) 
Successfully applied ip association for ip 
com.cloud.network.vpc.PrivateIpAddress@32595f0d in vpc network Ntwk[209|Guest|5]
2013-05-07 18:31:58,544 DEBUG 
[network.router.VpcVirtualNetworkApplianceManagerImpl] (Job-Executor-51:job-41) 
Removing router VM[DomainRouter|r-5-NATONPRVGW] from private network 
Ntwk[209|Guest|5] as a part of delete private gateway
2013-05-07 18:31:58,557 DEBUG [cloud.network.NetworkModelImpl] 
(Job-Executor-51:job-41) Service SecurityGroup is not supported in the network 
id=209
2013-05-07 18:31:58,598 ERROR [cloud.async.AsyncJobManagerImpl] 
(Job-Executor-51:job-41) Unexpected exception while executing 
org.apache.cloudstack.api.command.admin.vpc.DeletePrivateGatewayCmd
java.lang.NullPointerException
        at 
com.cloud.hypervisor.HypervisorGuruBase.toNicTO(HypervisorGuruBase.java:72)
        at 
com.cloud.vm.VirtualMachineManagerImpl.toNicTO(VirtualMachineManagerImpl.java:2822)
        at 
com.cloud.vm.VirtualMachineManagerImpl.removeVmFromNetwork(VirtualMachineManagerImpl.java:2927)
        at 
com.cloud.network.router.VpcVirtualNetworkApplianceManagerImpl.destroyPrivateGateway(VpcVirtualNetworkApplianceManagerImpl.java:1034)
        at 
com.cloud.network.element.VpcVirtualRouterElement.deletePrivateGateway(VpcVirtualRouterElement.java:364)
        at 
com.cloud.network.vpc.VpcManagerImpl.deleteVpcPrivateGateway(VpcManagerImpl.java:1398)
        at 
com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
        at 
org.apache.cloudstack.api.command.admin.vpc.DeletePrivateGatewayCmd.execute(DeletePrivateGatewayCmd.java:85)
        at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:155)
        at 
com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:437)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        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-07 18:31:58,599 DEBUG [cloud.async.AsyncJobManagerImpl] 
(Job-Executor-51:job-41) Complete async job-41, jobStatus: 2, resultCode: 530, 
result: Error Code: 530 Error text: null
2013-05-07 18:31:58,611 DEBUG [cloud.async.SyncQueueManagerImpl] 
(Job-Executor-51:job-41) Sync queue (1) is currently empty

mysql> select id,instance_id,ip4_address,state,vm_type,created,removed from 
nics where instance_id=5;
+----+-------------+----------------+--------------+--------------+---------------------+---------------------+
| id | instance_id | ip4_address    | state        | vm_type      | created     
        | removed             |
+----+-------------+----------------+--------------+--------------+---------------------+---------------------+
| 20 |           5 | 169.254.3.235  | Reserved     | DomainRouter | 2013-05-08 
00:45:48 | NULL                |
| 21 |           5 | 10.223.136.132 | Reserved     | DomainRouter | 2013-05-08 
00:45:48 | NULL                |
| 22 |           5 | 10.223.60.32   | Deallocating | DomainRouter | 2013-05-08 
01:29:02 | 2013-05-08 01:30:04 |
| 23 |           5 | 10.223.60.32   | Reserved     | DomainRouter | 2013-05-08 
01:30:10 | NULL                |
| 24 |           5 | 10.223.60.33   | Reserved     | DomainRouter | 2013-05-08 
01:30:34 | NULL                |
+----+-------------+----------------+--------------+--------------+---------------------+---------------------+
5 rows in set (0.00 sec)




--
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

Reply via email to