manasaveloori created CLOUDSTACK-2942: -----------------------------------------
Summary: [VPC][VMware]Unexpected exception while creating the private gateway . Key: CLOUDSTACK-2942 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2942 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: VMware5.1 Reporter: manasaveloori Priority: Critical Fix For: 4.2.0 Steps: 1. Have a CS with advanced zone and VMware host. 2. Create a VPC. 3. Add a private gateway . Observation: Observed “ Unexpected exception while executing org.apache.cloudstack.api.command.admin.vpc.CreatePrivateGatewayCmd com.cloud.exception.ResourceUnavailableException: Resource [DataCenter:1] is unreachable: Unable to apply network acls on router” The same is observed while deleting the private gateway and the gateway is not getting deleted. following is the snippet from the management server log: 2013-06-12 17:39:11,253 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-32:job-31) Unexpected exception while executing org.apache.cloudstack.api.command.admin.vpc.CreatePrivateGatewayCmd com.cloud.exception.ResourceUnavailableException: Resource [DataCenter:1] is unreachable: Unable to apply network acls on router at com.cloud.network.router.VirtualNetworkApplianceManagerImpl.applyRules(VirtualNetworkApplianceManagerImpl.java:3743) at com.cloud.network.router.VpcVirtualNetworkApplianceManagerImpl.applyNetworkACLs(VpcVirtualNetworkApplianceManagerImpl.java:717) at com.cloud.network.element.VpcVirtualRouterElement.applyACLItemsToPrivateGw(VpcVirtualRouterElement.java:463) at com.cloud.network.vpc.NetworkACLManagerImpl.applyACLItemsToPrivateGw(NetworkACLManagerImpl.java:325) at com.cloud.network.vpc.NetworkACLManagerImpl.revokeACLItemsForPrivateGw(NetworkACLManagerImpl.java:284) at com.cloud.network.router.VpcVirtualNetworkApplianceManagerImpl.destroyPrivateGateway(VpcVirtualNetworkApplianceManagerImpl.java:1053) at com.cloud.network.element.VpcVirtualRouterElement.deletePrivateGateway(VpcVirtualRouterElement.java:378) at com.cloud.network.vpc.VpcManagerImpl.deleteVpcPrivateGateway(VpcManagerImpl.java:1475) at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125) at com.cloud.network.vpc.VpcManagerImpl.applyVpcPrivateGateway(VpcManagerImpl.java:1436) at org.apache.cloudstack.api.command.admin.vpc.CreatePrivateGatewayCmd.execute(CreatePrivateGatewayCmd.java:158) 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-06-12 17:39:11,256 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-32:job-31) Complete async job-31, jobStatus: 2, resultCode: 530, result: Error Code: 530 Error text: Resource [DataCenter:1] is unreachable: Unable to apply network acls on router 2013-06-12 17:39:11,286 DEBUG [cloud.async.SyncQueueManagerImpl] (Job-Executor-32:job-31) Sync queue (1) is currently empty 2013-06-12 17:39:12,095 DEBUG [cloud.api.ApiServlet] (catalina-exec-16:null) ===START=== 10.252.192.69 -- GET command=queryAsyncJobResult&jobId=e55475db-71fa-49f1-ad72-23e1b890cfe4&response=json&sessionkey=zS6DxXVJCRyZ3MzvBTZl5fjDY54%3D&_=1371019500910 Attaching the management server log for reference. -- 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