[ https://issues.apache.org/jira/browse/CLOUDSTACK-2291?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sudha Ponnaganti updated CLOUDSTACK-2291: ----------------------------------------- Assignee: venkata swamybabu budumuru > [BasicZone-XenServer] NPE while trying DeleteNetworkCmd > ------------------------------------------------------- > > Key: CLOUDSTACK-2291 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2291 > 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 > Environment: commit 0e2ffe72aa641f4551cae63fbc36454c5934342f > Reporter: venkata swamybabu budumuru > Assignee: venkata swamybabu budumuru > Fix For: 4.2.0 > > Attachments: logs.tgz > > > Steps to reproduce : > 1. Have at least one basic zone created with Xen Cluster using "EIP/ELB > Offering" > mysql> select * from network_offerings where id=15\G > *************************** 1. row *************************** > id: 15 > name: EIPOffering > uuid: 6207d909-c780-4661-8a61-7e397aad7b77 > unique_name: EIPOffering > display_text: EIPOffering > nw_rate: NULL > mc_rate: 10 > traffic_type: Guest > tags: NULL > system_only: 0 > specify_vlan: 1 > service_offering_id: NULL > conserve_mode: 0 > created: 2013-04-24 17:23:07 > removed: NULL > default: 0 > availability: Optional > dedicated_lb_service: 0 > shared_source_nat_service: 0 > sort_key: 0 > redundant_router_service: 0 > state: Enabled > guest_type: Shared > elastic_ip_service: 1 > eip_associate_public_ip: 0 > elastic_lb_service: 1 > specify_ip_ranges: 1 > inline: 0 > is_persistent: 0 > 2. Deleted all the entities like secondary storage, primary storage, host, > cluster then tried to deleteNetwork and it failed with the following NPE > 2013-04-30 10:00:50,131 ERROR [cloud.async.AsyncJobManagerImpl] > (Job-Executor-23:job-220) Unexpected exception while executing > org.apache.cloudstack.api.command.user.network.DeleteNetworkCmd > java.lang.NullPointerException > at > com.cloud.network.rules.RulesManagerImpl.createStaticNatForIp(RulesManagerImpl.java:1387) > at > com.cloud.network.rules.RulesManagerImpl.applyStaticNatForIp(RulesManagerImpl.java:1316) > at > com.cloud.network.rules.RulesManagerImpl.revokeAllPFAndStaticNatRulesForIp(RulesManagerImpl.java:1062) > at > com.cloud.network.NetworkManagerImpl.cleanupIpResources(NetworkManagerImpl.java:2837) > at > com.cloud.network.NetworkManagerImpl.applyIpAssociations(NetworkManagerImpl.java:493) > at > com.cloud.network.NetworkManagerImpl.cleanupNetworkResources(NetworkManagerImpl.java:3123) > at > com.cloud.network.NetworkManagerImpl.destroyNetwork(NetworkManagerImpl.java:2296) > at > com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125) > at > com.cloud.network.NetworkServiceImpl.deleteNetwork(NetworkServiceImpl.java:1574) > at > com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125) > at > org.apache.cloudstack.api.command.user.network.DeleteNetworkCmd.execute(DeleteNetworkCmd.java:70) > 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:1146) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:679) > Attaching the db dump along with all other logs. -- 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