I suspect network offering isolation guarantees  (dedicated/shared) for load 
balancer did not match up with the NetScaler resources provisioned in the 
deployment. Please refer to 
http://wiki.cloudstack.org/pages/viewpage.action?pageId=1344581 for the device 
allocation logic

You can try out create a network offering with shared isolation guarantees 
(select 'shared' for LB isolation field while creating network offering) and 
add a NetScaler device for shared tenants use (uncheck the dedicated checkbox) 
and then try creating a network for the account with this offering.

From: mayur dhande <[email protected]<mailto:[email protected]>>
Reply-To: Development discussions for CloudStack 
<[email protected]<mailto:[email protected]>>
Date: Thu, 26 Apr 2012 16:51:08 +0530
To: 
"[email protected]<mailto:[email protected]>"
 
<[email protected]<mailto:[email protected]>>
Subject: [cloudstack-devel] NetScaler VPX with CloudStack 3.0.1

Hello All,

I was trying to add Netscaler VPX to CloudStack as an external load balancer. 
Here are the steps I performed-

- Deployed Netscaler as a VM instance on ESXi 4.1 server
- Configured a port group with VLAN ID 4095 on ESXi
- Configured public and private interfaces in Netscaler
- Added Netscaler VPX as a network service provider in physical network of the 
zone
- Created a network offering with services all services except security groups 
and with Netscaler as a service provider for Load balancer
- Created a network in account with above network offering
- Spawned an instance in that network. The VM creation failed with error - 
Unable to create a deployment for VM[User|i-2-82-VM]

The management server error log says-

2012-04-27 00:41:46,489 DEBUG [cloud.network.NetworkManagerImpl] 
(Job-Executor-163:job-138) Sending network shutdown to Netscaler
2012-04-27 00:41:46,491 WARN  
[cloud.network.ExternalLoadBalancerDeviceManagerImpl] 
(Job-Executor-163:job-138) Network shutdwon requested on external load balancer 
element, which did not implement the network. Either network implement failed 
half way through or already network shutdown is completed. So just returning.
2012-04-27 00:41:46,493 DEBUG [cloud.network.NetworkManagerImpl] 
(Job-Executor-163:job-138) Sending network shutdown to VirtualRouter
2012-04-27 00:41:46,495 DEBUG [cloud.network.NetworkManagerImpl] 
(Job-Executor-163:job-138) Network id=214 is shutdown successfully, cleaning up 
corresponding resources now.
2012-04-27 00:41:46,496 DEBUG [network.guru.GuestNetworkGuru] 
(Job-Executor-163:job-138) Releasing vnet for the network id=214
2012-04-27 00:41:46,502 INFO  [cloud.vm.VirtualMachineManagerImpl] 
(Job-Executor-163:job-138) Unable to contact resource.
com.cloud.exception.ResourceUnavailableException: Resource [DataCenter:1] is 
unreachable: There are no NetScaler load balancer devices with the free 
capacity for implementing this network
    at 
com.cloud.network.element.NetscalerElement.implement(NetscalerElement.java:168)
    at 
com.cloud.network.NetworkManagerImpl.implementNetworkElementsAndResources(NetworkManagerImpl.java:1769)
    at 
com.cloud.network.NetworkManagerImpl.implementNetwork(NetworkManagerImpl.java:1722)
    at com.cloud.utils.db.DatabaseCallback.intercept(DatabaseCallback.java:30)
    at 
com.cloud.network.NetworkManagerImpl.prepare(NetworkManagerImpl.java:1842)
    at 
com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:741)
    at 
com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:461)
    at 
com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2580)
    at 
com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2517)
    at 
com.cloud.event.ActionEventCallback.intercept(ActionEventCallback.java:32)
    at com.cloud.api.commands.DeployVMCmd.execute(DeployVMCmd.java:319)
    at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:132)
    at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:427)
    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)

The ESXi host is in same network as CS.

Is there something I missed while configuring Netscaler VPX or CloudStack? Or 
does anyone have any documentation with steps to follow for configuring 
Netscaler VPX with CS?

Thanks in advance,
Mayur

Reply via email to