[jira] [Updated] (CLOUDSTACK-2736) [Multiple_IP_Ranges] Failed to deploy vm with IP address from new CIDR

2013-05-30 Thread Bharat Kumar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-2736?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bharat Kumar updated CLOUDSTACK-2736:
-

Assignee: Bharat Kumar

> [Multiple_IP_Ranges] Failed to deploy vm with IP address from new CIDR 
> ---
>
> Key: CLOUDSTACK-2736
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2736
> 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
> Environment: Latest build from master branch:
> Zone: SG enabled advanced zone
> Hypervisor:KVM
>Reporter: Sanjeev N
>Assignee: Bharat Kumar
>Priority: Blocker
> Fix For: 4.2.0
>
> Attachments: management-server.rar
>
>
> Failed to deploy vm with IP address from new CIDR 
> Steps to Reproduce:
> =
> 1.Bring up CS with SG enabled advnaced zone with KVM cluster
> 2.Add guest ip range in new CIDR in the existing default shared network
> 3.Deploy guest vm with IP address from the new CIDR
> Expected Result:
> ==
> IP alias should be created on the VR and VM deployment should be successful 
> with IP address from the new CIDR
> Actual Result:
> 
> VM deployment failed
> Observations:
> ===
> Configuring dhcp service failed with following exceptions:
> 2013-05-29 13:04:38,782 DEBUG [cloud.async.AsyncJobManagerImpl] 
> (catalina-exec-24:null) submit async job-18, details: AsyncJobVO {id:18, 
> userId: 2, accountId: 2, sessionKey: null, instanceType: VirtualMachine, 
> instanceId: 7, cmd: org.apache.cloudstack.api.command.user.vm.DeployVMCmd, 
> cmdOriginator: null, cmdInfo: 
> {"sessionkey":"ySm8CvuVNkVVRASycbmxD0Lfby4\u003d","ctxUserId":"2","serviceOfferingId":"b69fbcae-6cbb-4ac4-9669-a8cc8effe2f3","httpmethod":"GET","securitygroupids":"a181bf2c-c853-11e2-96ab-06045a66","zoneId":"4f13e6b8-aa69-425e-954f-b1852f202266","response":"json","templateId":"6fb1b1b4-c853-11e2-96ab-06045a66","id":"7","networkIds":"a26a1c93-83c8-4f41-b6ba-7525e8aa0056","hypervisor":"KVM","name":"vm1-s2","_":"1369827334315","ctxAccountId":"2","ctxStartEventId":"79","displayname":"vm1-s2"},
>  cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0, 
> processStatus: 0, resultCode: 0, result: null, initMsid: 6615759585382, 
> completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
> 2013-05-29 13:04:38,786 DEBUG [cloud.api.ApiServlet] (catalina-exec-24:null) 
> ===END===  10.146.0.15 -- GET  
> command=deployVirtualMachine&zoneId=4f13e6b8-aa69-425e-954f-b1852f202266&templateId=6fb1b1b4-c853-11e2-96ab-06045a66&hypervisor=KVM&serviceOfferingId=b69fbcae-6cbb-4ac4-9669-a8cc8effe2f3&securitygroupids=a181bf2c-c853-11e2-96ab-06045a66&networkIds=a26a1c93-83c8-4f41-b6ba-7525e8aa0056&displayname=vm1-s2&name=vm1-s2&response=json&sessionkey=ySm8CvuVNkVVRASycbmxD0Lfby4%3D&_=1369827334315
> 2013-05-29 13:04:38,789 DEBUG [cloud.async.AsyncJobManagerImpl] 
> (Job-Executor-2:job-18) Executing 
> org.apache.cloudstack.api.command.user.vm.DeployVMCmd for job-18
> 2013-05-29 13:04:40,365 DEBUG [db.Transaction.Transaction] 
> (Job-Executor-2:job-18) Rolling back the transaction: Time = 131 Name =  
> -AsyncJobManagerImpl$1.run:401-Executors$RunnableAdapter.call:471-FutureTask$Sync.innerRun:334-FutureTask.run:166-ThreadPoolExecutor.runWorker:1110-ThreadPoolExecutor$Worker.run:603-Thread.run:679;
>  called by 
> -Transaction.rollback:890-Transaction.removeUpTo:833-Transaction.close:657-TransactionContextBuilder.interceptException:63-ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept:133-NetworkManagerImpl.assignPublicIpAddressFromVlans:370-VirtualNetworkApplianceManagerImpl.configDhcpForSubnet:2798-VirtualRouterElement.configDhcpSupportForSubnet:870-NetworkManagerImpl.prepareElement:1962-NetworkManagerImpl.prepareNic:2077-NetworkManagerImpl.prepare:2018-VirtualMachineManagerImpl.advanceStart:842
> 2013-05-29 13:04:40,366 INFO  
> [network.router.VirtualNetworkApplianceManagerImpl] (Job-Executor-2:job-18) 
> Insufficient address capacity
> 2013-05-29 13:04:40,367 INFO  
> [network.router.VirtualNetworkApplianceManagerImpl] (Job-Executor-2:job-18) 
> unable to configure dhcp for this VM.
> 2013-05-29 13:04:40,367 INFO  [cloud.vm.VirtualMachineManagerImpl] 
> (Job-Executor-2:job-18) Insufficient capacity
> com.cloud.exception.InsufficientAddressCapacityException: unable to configure 
> the dhcp service, due to insufficiant address capacityScope=interface 
> com.cloud.network.Network; id=203
> at 
> com.cloud.network.NetworkManagerImpl.prepareNic(NetworkManagerImpl.java:2078)
> at 
> com.cloud.network.NetworkManagerImpl.prepare(NetworkManagerImpl.java:2018)
> at 
> 

[jira] [Updated] (CLOUDSTACK-2736) [Multiple_IP_Ranges] Failed to deploy vm with IP address from new CIDR

2013-05-29 Thread Sanjeev N (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-2736?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sanjeev N updated CLOUDSTACK-2736:
--

Attachment: management-server.rar

management server log file attached

> [Multiple_IP_Ranges] Failed to deploy vm with IP address from new CIDR 
> ---
>
> Key: CLOUDSTACK-2736
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2736
> 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
> Environment: Latest build from master branch:
> Zone: SG enabled advanced zone
> Hypervisor:KVM
>Reporter: Sanjeev N
>Priority: Blocker
> Fix For: 4.2.0
>
> Attachments: management-server.rar
>
>
> Failed to deploy vm with IP address from new CIDR 
> Steps to Reproduce:
> =
> 1.Bring up CS with SG enabled advnaced zone with KVM cluster
> 2.Add guest ip range in new CIDR in the existing default shared network
> 3.Deploy guest vm with IP address from the new CIDR
> Expected Result:
> ==
> IP alias should be created on the VR and VM deployment should be successful 
> with IP address from the new CIDR
> Actual Result:
> 
> VM deployment failed
> Observations:
> ===
> Configuring dhcp service failed with following exceptions:
> 2013-05-29 13:04:38,782 DEBUG [cloud.async.AsyncJobManagerImpl] 
> (catalina-exec-24:null) submit async job-18, details: AsyncJobVO {id:18, 
> userId: 2, accountId: 2, sessionKey: null, instanceType: VirtualMachine, 
> instanceId: 7, cmd: org.apache.cloudstack.api.command.user.vm.DeployVMCmd, 
> cmdOriginator: null, cmdInfo: 
> {"sessionkey":"ySm8CvuVNkVVRASycbmxD0Lfby4\u003d","ctxUserId":"2","serviceOfferingId":"b69fbcae-6cbb-4ac4-9669-a8cc8effe2f3","httpmethod":"GET","securitygroupids":"a181bf2c-c853-11e2-96ab-06045a66","zoneId":"4f13e6b8-aa69-425e-954f-b1852f202266","response":"json","templateId":"6fb1b1b4-c853-11e2-96ab-06045a66","id":"7","networkIds":"a26a1c93-83c8-4f41-b6ba-7525e8aa0056","hypervisor":"KVM","name":"vm1-s2","_":"1369827334315","ctxAccountId":"2","ctxStartEventId":"79","displayname":"vm1-s2"},
>  cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0, 
> processStatus: 0, resultCode: 0, result: null, initMsid: 6615759585382, 
> completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
> 2013-05-29 13:04:38,786 DEBUG [cloud.api.ApiServlet] (catalina-exec-24:null) 
> ===END===  10.146.0.15 -- GET  
> command=deployVirtualMachine&zoneId=4f13e6b8-aa69-425e-954f-b1852f202266&templateId=6fb1b1b4-c853-11e2-96ab-06045a66&hypervisor=KVM&serviceOfferingId=b69fbcae-6cbb-4ac4-9669-a8cc8effe2f3&securitygroupids=a181bf2c-c853-11e2-96ab-06045a66&networkIds=a26a1c93-83c8-4f41-b6ba-7525e8aa0056&displayname=vm1-s2&name=vm1-s2&response=json&sessionkey=ySm8CvuVNkVVRASycbmxD0Lfby4%3D&_=1369827334315
> 2013-05-29 13:04:38,789 DEBUG [cloud.async.AsyncJobManagerImpl] 
> (Job-Executor-2:job-18) Executing 
> org.apache.cloudstack.api.command.user.vm.DeployVMCmd for job-18
> 2013-05-29 13:04:40,365 DEBUG [db.Transaction.Transaction] 
> (Job-Executor-2:job-18) Rolling back the transaction: Time = 131 Name =  
> -AsyncJobManagerImpl$1.run:401-Executors$RunnableAdapter.call:471-FutureTask$Sync.innerRun:334-FutureTask.run:166-ThreadPoolExecutor.runWorker:1110-ThreadPoolExecutor$Worker.run:603-Thread.run:679;
>  called by 
> -Transaction.rollback:890-Transaction.removeUpTo:833-Transaction.close:657-TransactionContextBuilder.interceptException:63-ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept:133-NetworkManagerImpl.assignPublicIpAddressFromVlans:370-VirtualNetworkApplianceManagerImpl.configDhcpForSubnet:2798-VirtualRouterElement.configDhcpSupportForSubnet:870-NetworkManagerImpl.prepareElement:1962-NetworkManagerImpl.prepareNic:2077-NetworkManagerImpl.prepare:2018-VirtualMachineManagerImpl.advanceStart:842
> 2013-05-29 13:04:40,366 INFO  
> [network.router.VirtualNetworkApplianceManagerImpl] (Job-Executor-2:job-18) 
> Insufficient address capacity
> 2013-05-29 13:04:40,367 INFO  
> [network.router.VirtualNetworkApplianceManagerImpl] (Job-Executor-2:job-18) 
> unable to configure dhcp for this VM.
> 2013-05-29 13:04:40,367 INFO  [cloud.vm.VirtualMachineManagerImpl] 
> (Job-Executor-2:job-18) Insufficient capacity
> com.cloud.exception.InsufficientAddressCapacityException: unable to configure 
> the dhcp service, due to insufficiant address capacityScope=interface 
> com.cloud.network.Network; id=203
> at 
> com.cloud.network.NetworkManagerImpl.prepareNic(NetworkManagerImpl.java:2078)
> at 
> com.cloud.network.NetworkManagerImpl.prepare(NetworkManagerImpl.java:2018