Hi Guys-
I'm new for CloudStack, and I've been trying to make a test environment for Cloudstack of advanced zone mode. In these days, I want to setup a advanced zone, and I failed again and again. I always got 'unable to add the external cluster' error.
The following is the info of my environment.
IP Subnets
Management, Storage
Subnet - 10.2.0.0
Mask - 255.255.0.0
Gateway - 10.2.0.254
Reversed IP - 10.2.101.11-10.2.101.20
Storage IP - 10.2.101.1-10.2.101.10
Public
Subnet - 10.33.0.0
Mask - 255.255.0.0
Gateway - 10.33.0.254
Guest
Subnet - 10.100.0.0
Mask - 255.255.0.0
Gateway - 10.100.0.254
Guest CIDR
Subnet - 10.13.0.0/16
Topology
Please the attachment below.
Host Info
Comments: Both the Cloudstack and vCenter servers are installed with VM at a vSphere host with ip address 10.2.101.6.
Management Server
OS - CentOS 6.4
Version - 4
Other compoments - MySQL server, NFS server(for primary and secondary storage)
IP address - 10.2.101.2
Networks Setting - As this is one NIC in the host of management server, I create one physical network named vSwitch0(same with vSwitch setting at vSphere), and for types of networks are added, Management, Storage, Public and Guest.
vCenter
OS - Windows 2008 Enterprise R2
Version - 5
IP address - 10.2.101.1
Datacenter - B*****
Cluster - Internal
HA - Enabled
vSphere
Version - 5
IP address - 10.2.101.7
Switch Info
Both the server and client ends are directly conneted.
Type - Cisco 3560
Vlan - 2(native VLAN, management, storage), 33(public), 100(guest)
Interface to hosts - Trunk mode(all VLAN are allowed)
vSphere Network Setting
Please the attachment.
Error Message
The error message is pasted at the end.
Could someone tell me what is the reason for the error - unable to add external cluster? And I really feel confused with how does the advanced network work, please help to make a brief explanation. Thanks a lot.
2014-03-31 17:33:36,187 DEBUG [cloud.api.ApiServlet] (catalina-exec-3:null) ===START=== 10.13.1.105 -- GET command=addCluster&zoneId=141cdb17-aa51-464c-a46d-e0256fc438bd&hypervisor=VMware&clustertype=ExternalManaged&podId=20e3dfb3-d45c-423d-9710-6c8d5915bcd6&username=administrator%40vsphere.local&url=http%3A%2F%2F10.2.101.1%2FBamboo%2FInternal&clustername=10.2.101.1%2FBamboo%2FInternal&response=json&sessionkey=UYzgImu2dIfF5u9FL50iw6tDXMY%3D&_=1396258415881
2014-03-31 17:33:36,219 INFO [hypervisor.vmware.VmwareServerDiscoverer] (catalina-exec-3:null) Discover host. dc: 7, pod: 6, cluster: 11, uri host: 10.2.101.1
2014-03-31 17:33:36,225 INFO [hypervisor.vmware.VmwareServerDiscoverer] (catalina-exec-3:null) Detected private network label : Management
2014-03-31 17:33:36,226 DEBUG [vmware.resource.VmwareContextFactory] (catalina-exec-3:null) initialize VmwareContext. url: https://10.2.101.1/sdk/vimService, username: administrator@vsphere.local, password: b*******
2014-03-31 17:33:38,533 INFO [vmware.manager.VmwareManagerImpl] (catalina-exec-3:null) Preparing network on host com.cloud.hypervisor.vmware.util.VmwareContext@539f0fff for Management
2014-03-31 17:33:38,783 ERROR [vmware.mo.HypervisorHostHelper] (catalina-exec-3:null) Unable to find vSwitchManagement
2014-03-31 17:33:38,784 WARN [hypervisor.vmware.VmwareServerDiscoverer] (catalina-exec-3:null) Unable to connect to Vmware vSphere server. service address: 10.2.101.1
2014-03-31 17:33:38,999 WARN [cloud.resource.ResourceManagerImpl] (catalina-exec-3:null) Unable to find the server resources at http://10.2.101.1/Bamboo/Internal
2014-03-31 17:33:38,999 INFO [utils.exception.CSExceptionErrorCode] (catalina-exec-3:null) Could not find exception: com.cloud.exception.DiscoveryException in error code list for exceptions
2014-03-31 17:33:39,012 WARN [admin.cluster.AddClusterCmd] (catalina-exec-3:null) Exception:
com.cloud.exception.DiscoveryException: Unable to add the external cluster
at com.cloud.resource.ResourceManagerImpl.discoverCluster(ResourceManagerImpl.java:559)
at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
at org.apache.cloudstack.api.command.admin.cluster.AddClusterCmd.execute(AddClusterCmd.java:153)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:162)
at com.cloud.api.ApiServer.queueCommand(ApiServer.java:505)
at com.cloud.api.ApiServer.handleRequest(ApiServer.java:355)
at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:302)
at com.cloud.api.ApiServlet.doGet(ApiServlet.java:66)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2274)
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:722)
2014-03-31 17:33:39,013 INFO [cloud.api.ApiServer] (catalina-exec-3:null) Unable to add the external cluster