You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Denis Finko <de...@ecommerce.com> on 2013/10/23 12:40:23 UTC
Can't create cluster in CS 4.2
Hello CloudStack community,
Could you please help found source of following issue and how to fix it.
I am tring to configure CloudStack 4.2 (installed from cloudstack repo
baseurl=http://cloudstack.apt-get.eu/rhel/4.2/) with VMware 5.1. During
adding new zone into UI I have got following error:
"Unable to add the external cluster"
We have following networking configuration in vSphere Client:
Standard Switch: vSwitch0
-Virtual Machine Port Group (VM Network) --vmnic0
-VMkernel Port (Management Network)
Standard Switch: vSwitch1
-VMkernel Port (Storage1) --vmnic2
management-server.log:
2013-10-23 05:36:03,534 DEBUG [cloud.api.ApiServlet]
(catalina-exec-22:null) ===START=== 193.142.124.9 -- GET
command=addCluster&zoneId=4f28654f-e767-4be2-b32f-39f634a01746&hypervisor=VMware&clustertype=ExternalManaged&podId=94e55d0c-3ea9-4dbc-800b-854262fd2674&username=Administrator&url=http%3A%2F%2F10.199.0.40%2Fcs4%2Fcs4it&clustername=10.199.0.40%2Fcs4%2Fcs4it&response=json&sessionkey=uAl68djojOPwUBfhwxw8OwodZuE%3D&_=1382520964075
2013-10-23 05:36:03,643 INFO [hypervisor.vmware.VmwareServerDiscoverer]
(catalina-exec-22:null) Discover host. dc: 1, pod: 1, cluster: 1, uri
host: 10.199.0.40
2013-10-23 05:36:03,689 INFO [hypervisor.vmware.VmwareServerDiscoverer]
(catalina-exec-22:null) Detected private network label : vSwitch0,
2013-10-23 05:36:03,689 DEBUG [vmware.resource.VmwareContextFactory]
(catalina-exec-22:null) initialize VmwareContext. url:
https://10.199.0.40/sdk/vimService, username: Administrator, password:
r*******
2013-10-23 05:36:03,817 INFO [vmware.util.VmwareContext]
(catalina-exec-22:null) New VmwareContext object, current outstanding
count: 1
2013-10-23 05:36:03,952 INFO [vmware.manager.VmwareManagerImpl]
(catalina-exec-22:null) Preparing network on host
com.cloud.hypervisor.vmware.util.VmwareContext@60e2e3d4 for vSwitch0,
2013-10-23 05:36:03,999 ERROR [vmware.mo.HypervisorHostHelper]
(catalina-exec-22:null) Unable to find vSwitchvSwitch0,
2013-10-23 05:36:03,999 WARN [hypervisor.vmware.VmwareServerDiscoverer]
(catalina-exec-22:null) Unable to connect to Vmware vSphere server.
service address: 10.199.0.40
2013-10-23 05:36:04,012 WARN [cloud.resource.ResourceManagerImpl]
(catalina-exec-22:null) Unable to find the server resources at
http://10.199.0.40/cs4/cs4it
2013-10-23 05:36:04,014 INFO [utils.exception.CSExceptionErrorCode]
(catalina-exec-22:null) Could not find exception:
com.cloud.exception.DiscoveryException in error code list for exceptions
2013-10-23 05:36:04,095 WARN [admin.cluster.AddClusterCmd]
(catalina-exec-22:null) Exception:
com.cloud.exception.DiscoveryException: Unable to add the external cluster
at
com.cloud.resource.ResourceManagerImpl.discoverCluster(ResourceManagerImpl.java:533)
at
com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
at
org.apache.cloudstack.api.command.admin.cluster.AddClusterCmd.execute(AddClusterCmd.java:181)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
at com.cloud.api.ApiServer.queueCommand(ApiServer.java:514)
at com.cloud.api.ApiServer.handleRequest(ApiServer.java:372)
at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:305)
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:1146)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:679)
2013-10-23 05:36:04,096 INFO [cloud.api.ApiServer]
(catalina-exec-22:null) Unable to add the external cluster
Also please take a look to attached screenshots which I have done during
CloudStack networking configuration.
Thank you!
Re: Can't create cluster in CS 4.2
Posted by Denis Finko <de...@ecommerce.com>.
Also links to screenshots of our networking configuration:
http://imageshack.us/f/855/zbtu.png/
http://imageshack.us/f/708/840z.png/
On 10/23/2013 01:51 PM, Denis Finko wrote:
> Links to attached files:
> http://imageshack.us/photo/my-images/594/7oi1.png/
> http://imageshack.us/photo/my-images/841/w1i7.png/
> http://imageshack.us/photo/my-images/856/e31y.png/
> http://imageshack.us/photo/my-images/201/x45.png/
> http://imageshack.us/photo/my-images/17/avd4.png/
>
> On 10/23/2013 01:40 PM, Denis Finko wrote:
>> Hello CloudStack community,
>>
>> Could you please help found source of following issue and how to fix it.
>> I am tring to configure CloudStack 4.2 (installed from cloudstack repo
>> baseurl=http://cloudstack.apt-get.eu/rhel/4.2/) with VMware 5.1. During
>> adding new zone into UI I have got following error:
>>
>> "Unable to add the external cluster"
>>
>> We have following networking configuration in vSphere Client:
>> Standard Switch: vSwitch0
>> -Virtual Machine Port Group (VM Network) --vmnic0
>> -VMkernel Port (Management Network)
>>
>> Standard Switch: vSwitch1
>> -VMkernel Port (Storage1) --vmnic2
>>
>>
>> management-server.log:
>> 2013-10-23 05:36:03,534 DEBUG [cloud.api.ApiServlet]
>> (catalina-exec-22:null) ===START=== 193.142.124.9 -- GET
>> command=addCluster&zoneId=4f28654f-e767-4be2-b32f-39f634a01746&hypervisor=VMware&clustertype=ExternalManaged&podId=94e55d0c-3ea9-4dbc-800b-854262fd2674&username=Administrator&url=http%3A%2F%2F10.199.0.40%2Fcs4%2Fcs4it&clustername=10.199.0.40%2Fcs4%2Fcs4it&response=json&sessionkey=uAl68djojOPwUBfhwxw8OwodZuE%3D&_=1382520964075
>> 2013-10-23 05:36:03,643 INFO [hypervisor.vmware.VmwareServerDiscoverer]
>> (catalina-exec-22:null) Discover host. dc: 1, pod: 1, cluster: 1, uri
>> host: 10.199.0.40
>> 2013-10-23 05:36:03,689 INFO [hypervisor.vmware.VmwareServerDiscoverer]
>> (catalina-exec-22:null) Detected private network label : vSwitch0,
>> 2013-10-23 05:36:03,689 DEBUG [vmware.resource.VmwareContextFactory]
>> (catalina-exec-22:null) initialize VmwareContext. url:
>> https://10.199.0.40/sdk/vimService, username: Administrator, password:
>> r*******
>> 2013-10-23 05:36:03,817 INFO [vmware.util.VmwareContext]
>> (catalina-exec-22:null) New VmwareContext object, current outstanding
>> count: 1
>> 2013-10-23 05:36:03,952 INFO [vmware.manager.VmwareManagerImpl]
>> (catalina-exec-22:null) Preparing network on host
>> com.cloud.hypervisor.vmware.util.VmwareContext@60e2e3d4 for vSwitch0,
>> 2013-10-23 05:36:03,999 ERROR [vmware.mo.HypervisorHostHelper]
>> (catalina-exec-22:null) Unable to find vSwitchvSwitch0,
>> 2013-10-23 05:36:03,999 WARN [hypervisor.vmware.VmwareServerDiscoverer]
>> (catalina-exec-22:null) Unable to connect to Vmware vSphere server.
>> service address: 10.199.0.40
>> 2013-10-23 05:36:04,012 WARN [cloud.resource.ResourceManagerImpl]
>> (catalina-exec-22:null) Unable to find the server resources at
>> http://10.199.0.40/cs4/cs4it
>> 2013-10-23 05:36:04,014 INFO [utils.exception.CSExceptionErrorCode]
>> (catalina-exec-22:null) Could not find exception:
>> com.cloud.exception.DiscoveryException in error code list for exceptions
>> 2013-10-23 05:36:04,095 WARN [admin.cluster.AddClusterCmd]
>> (catalina-exec-22:null) Exception:
>> com.cloud.exception.DiscoveryException: Unable to add the external cluster
>> at
>> com.cloud.resource.ResourceManagerImpl.discoverCluster(ResourceManagerImpl.java:533)
>> at
>> com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
>> at
>> org.apache.cloudstack.api.command.admin.cluster.AddClusterCmd.execute(AddClusterCmd.java:181)
>> at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
>> at com.cloud.api.ApiServer.queueCommand(ApiServer.java:514)
>> at com.cloud.api.ApiServer.handleRequest(ApiServer.java:372)
>> at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:305)
>> 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:1146)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>> at java.lang.Thread.run(Thread.java:679)
>> 2013-10-23 05:36:04,096 INFO [cloud.api.ApiServer]
>> (catalina-exec-22:null) Unable to add the external cluster
>>
>> Also please take a look to attached screenshots which I have done during
>> CloudStack networking configuration.
>>
>> Thank you!
>>
--
Best regards,
Denis Finko
System Administrator, SA
Ecommerce corporation
www.ecommerce.com
Re: Can't create cluster in CS 4.2
Posted by Denis Finko <de...@ecommerce.com>.
Links to attached files:
http://imageshack.us/photo/my-images/594/7oi1.png/
http://imageshack.us/photo/my-images/841/w1i7.png/
http://imageshack.us/photo/my-images/856/e31y.png/
http://imageshack.us/photo/my-images/201/x45.png/
http://imageshack.us/photo/my-images/17/avd4.png/
On 10/23/2013 01:40 PM, Denis Finko wrote:
> Hello CloudStack community,
>
> Could you please help found source of following issue and how to fix it.
> I am tring to configure CloudStack 4.2 (installed from cloudstack repo
> baseurl=http://cloudstack.apt-get.eu/rhel/4.2/) with VMware 5.1. During
> adding new zone into UI I have got following error:
>
> "Unable to add the external cluster"
>
> We have following networking configuration in vSphere Client:
> Standard Switch: vSwitch0
> -Virtual Machine Port Group (VM Network) --vmnic0
> -VMkernel Port (Management Network)
>
> Standard Switch: vSwitch1
> -VMkernel Port (Storage1) --vmnic2
>
>
> management-server.log:
> 2013-10-23 05:36:03,534 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-22:null) ===START=== 193.142.124.9 -- GET
> command=addCluster&zoneId=4f28654f-e767-4be2-b32f-39f634a01746&hypervisor=VMware&clustertype=ExternalManaged&podId=94e55d0c-3ea9-4dbc-800b-854262fd2674&username=Administrator&url=http%3A%2F%2F10.199.0.40%2Fcs4%2Fcs4it&clustername=10.199.0.40%2Fcs4%2Fcs4it&response=json&sessionkey=uAl68djojOPwUBfhwxw8OwodZuE%3D&_=1382520964075
> 2013-10-23 05:36:03,643 INFO [hypervisor.vmware.VmwareServerDiscoverer]
> (catalina-exec-22:null) Discover host. dc: 1, pod: 1, cluster: 1, uri
> host: 10.199.0.40
> 2013-10-23 05:36:03,689 INFO [hypervisor.vmware.VmwareServerDiscoverer]
> (catalina-exec-22:null) Detected private network label : vSwitch0,
> 2013-10-23 05:36:03,689 DEBUG [vmware.resource.VmwareContextFactory]
> (catalina-exec-22:null) initialize VmwareContext. url:
> https://10.199.0.40/sdk/vimService, username: Administrator, password:
> r*******
> 2013-10-23 05:36:03,817 INFO [vmware.util.VmwareContext]
> (catalina-exec-22:null) New VmwareContext object, current outstanding
> count: 1
> 2013-10-23 05:36:03,952 INFO [vmware.manager.VmwareManagerImpl]
> (catalina-exec-22:null) Preparing network on host
> com.cloud.hypervisor.vmware.util.VmwareContext@60e2e3d4 for vSwitch0,
> 2013-10-23 05:36:03,999 ERROR [vmware.mo.HypervisorHostHelper]
> (catalina-exec-22:null) Unable to find vSwitchvSwitch0,
> 2013-10-23 05:36:03,999 WARN [hypervisor.vmware.VmwareServerDiscoverer]
> (catalina-exec-22:null) Unable to connect to Vmware vSphere server.
> service address: 10.199.0.40
> 2013-10-23 05:36:04,012 WARN [cloud.resource.ResourceManagerImpl]
> (catalina-exec-22:null) Unable to find the server resources at
> http://10.199.0.40/cs4/cs4it
> 2013-10-23 05:36:04,014 INFO [utils.exception.CSExceptionErrorCode]
> (catalina-exec-22:null) Could not find exception:
> com.cloud.exception.DiscoveryException in error code list for exceptions
> 2013-10-23 05:36:04,095 WARN [admin.cluster.AddClusterCmd]
> (catalina-exec-22:null) Exception:
> com.cloud.exception.DiscoveryException: Unable to add the external cluster
> at
> com.cloud.resource.ResourceManagerImpl.discoverCluster(ResourceManagerImpl.java:533)
> at
> com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
> at
> org.apache.cloudstack.api.command.admin.cluster.AddClusterCmd.execute(AddClusterCmd.java:181)
> at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
> at com.cloud.api.ApiServer.queueCommand(ApiServer.java:514)
> at com.cloud.api.ApiServer.handleRequest(ApiServer.java:372)
> at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:305)
> 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:1146)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:679)
> 2013-10-23 05:36:04,096 INFO [cloud.api.ApiServer]
> (catalina-exec-22:null) Unable to add the external cluster
>
> Also please take a look to attached screenshots which I have done during
> CloudStack networking configuration.
>
> Thank you!
>
--
Best regards,
Denis Finko
System Administrator, SA
Ecommerce corporation
www.ecommerce.com
Re: Can't create cluster in CS 4.2
Posted by Denis Finko <de...@ecommerce.com>.
Ryan, thank you for your advice! It was helpful and I finally added a
Cluster.
In my case traffic labels were:
Public: vSwitch0,3,vmwaresvs
Guest: vSwitch0,3,vmwaresvs
Management Network: vSwitch0,
Storage: vSwitch1,
I have renamed it to:
vSwitch0
vSwitch0
vSwitch0
vSwitch1
and cluster was added.
So it looks like a real bug in CloudStack 4.2 wizard.
On 10/24/2013 10:55 AM, Ryan Lei wrote:
> JIRA ticket: https://issues.apache.org/jira/browse/CLOUDSTACK-4943
>
> I'm encountering the same problem using CloudStack 4.2.0 + VMware 5.0.
> Trapped for a day.
> I just found a potential bug causing this. I have commented in JIRA.
>
> Basically the Advanced Zone wizard now automatically appends VMware
> traffic labels to appear like:
>
> [Public] vSwitch0,,vmwaresvs
> [Guest] vSwitch0,,vmwaresvs
> [Management] vSwitch0,
> [Storage] vSwitch1,
>
> Thus, CloudStack cannot match the same virtual switches on vCenter.
> The wizard cannot go all the way to the last step. You have to
> manually rename these labels in
> Zone -> Physical Network, and add the remaining primary/secondary
> storages later.
>
> Can you or someone else confirm this? Is this auto-renaming a bug?
>
> -------------------------------------------------------------------------------------------
> Yu-Heng (Ryan) Lei, Associate Researcher
> Chunghwa Telecom Laboratories / Cloud Computing Laboratory
> ryanlei@cht.com.tw
> <https://email.cht.com.tw/owa/redir.aspx?C=-wE1FEC3G0SWYpVkiWo8SsDdf3ZqO9AIuAPTzRnFYCUi-z4YljtI_hyVKkNHfn9F1Bn-vUWJnQ4.&URL=mailto%3aryanlei%40cht.com.tw> or
> ryanlei750328@gmail.com <ma...@gmail.com>
>
>
>
> On Wed, Oct 23, 2013 at 6:40 PM, Denis Finko
> <denis.finko@ecommerce.com <ma...@ecommerce.com>> wrote:
>
> Hello CloudStack community,
>
> Could you please help found source of following issue and how to
> fix it.
> I am tring to configure CloudStack 4.2 (installed from cloudstack repo
> baseurl=http://cloudstack.apt-get.eu/rhel/4.2/) with VMware 5.1.
> During
> adding new zone into UI I have got following error:
>
> "Unable to add the external cluster"
>
> We have following networking configuration in vSphere Client:
> Standard Switch: vSwitch0
> -Virtual Machine Port Group (VM Network) --vmnic0
> -VMkernel Port (Management Network)
>
> Standard Switch: vSwitch1
> -VMkernel Port (Storage1) --vmnic2
>
>
> management-server.log:
> 2013-10-23 05:36:03,534 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-22:null) ===START=== 193.142.124.9 -- GET
> command=addCluster&zoneId=4f28654f-e767-4be2-b32f-39f634a01746&hypervisor=VMware&clustertype=ExternalManaged&podId=94e55d0c-3ea9-4dbc-800b-854262fd2674&username=Administrator&url=http%3A%2F%2F10.199.0.40%2Fcs4%2Fcs4it&clustername=10.199.0.40%2Fcs4%2Fcs4it&response=json&sessionkey=uAl68djojOPwUBfhwxw8OwodZuE%3D&_=1382520964075
> 2013-10-23 05:36:03,643 INFO
> [hypervisor.vmware.VmwareServerDiscoverer]
> (catalina-exec-22:null) Discover host. dc: 1, pod: 1, cluster: 1, uri
> host: 10.199.0.40
> 2013-10-23 05:36:03,689 INFO
> [hypervisor.vmware.VmwareServerDiscoverer]
> (catalina-exec-22:null) Detected private network label : vSwitch0,
> 2013-10-23 05:36:03,689 DEBUG [vmware.resource.VmwareContextFactory]
> (catalina-exec-22:null) initialize VmwareContext. url:
> https://10.199.0.40/sdk/vimService, username: Administrator, password:
> r*******
> 2013-10-23 05:36:03,817 INFO [vmware.util.VmwareContext]
> (catalina-exec-22:null) New VmwareContext object, current outstanding
> count: 1
> 2013-10-23 05:36:03,952 INFO [vmware.manager.VmwareManagerImpl]
> (catalina-exec-22:null) Preparing network on host
> com.cloud.hypervisor.vmware.util.VmwareContext@60e2e3d4 for vSwitch0,
> 2013-10-23 05:36:03,999 ERROR [vmware.mo.HypervisorHostHelper]
> (catalina-exec-22:null) Unable to find vSwitchvSwitch0,
> 2013-10-23 05:36:03,999 WARN
> [hypervisor.vmware.VmwareServerDiscoverer]
> (catalina-exec-22:null) Unable to connect to Vmware vSphere server.
> service address: 10.199.0.40
> 2013-10-23 05:36:04,012 WARN [cloud.resource.ResourceManagerImpl]
> (catalina-exec-22:null) Unable to find the server resources at
> http://10.199.0.40/cs4/cs4it
> 2013-10-23 05:36:04,014 INFO [utils.exception.CSExceptionErrorCode]
> (catalina-exec-22:null) Could not find exception:
> com.cloud.exception.DiscoveryException in error code list for
> exceptions
> 2013-10-23 05:36:04,095 WARN [admin.cluster.AddClusterCmd]
> (catalina-exec-22:null) Exception:
> com.cloud.exception.DiscoveryException: Unable to add the external
> cluster
> at
> com.cloud.resource.ResourceManagerImpl.discoverCluster(ResourceManagerImpl.java:533)
> at
> com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
> at
> org.apache.cloudstack.api.command.admin.cluster.AddClusterCmd.execute(AddClusterCmd.java:181)
> at
> com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
> at com.cloud.api.ApiServer.queueCommand(ApiServer.java:514)
> at com.cloud.api.ApiServer.handleRequest(ApiServer.java:372)
> at
> com.cloud.api.ApiServlet.processRequest(ApiServlet.java:305)
> 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:1146)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:679)
> 2013-10-23 05:36:04,096 INFO [cloud.api.ApiServer]
> (catalina-exec-22:null) Unable to add the external cluster
>
> Also please take a look to attached screenshots which I have done
> during
> CloudStack networking configuration.
>
> Thank you!
>
>
--
Best regards,
Denis Finko
System Administrator, SA
Ecommerce corporation
www.ecommerce.com
Re: Can't create cluster in CS 4.2
Posted by Ryan Lei <ry...@cht.com.tw>.
JIRA ticket: https://issues.apache.org/jira/browse/CLOUDSTACK-4943
I'm encountering the same problem using CloudStack 4.2.0 + VMware 5.0.
Trapped for a day.
I just found a potential bug causing this. I have commented in JIRA.
Basically the Advanced Zone wizard now automatically appends VMware traffic
labels to appear like:
[Public] vSwitch0,,vmwaresvs
[Guest] vSwitch0,,vmwaresvs
[Management] vSwitch0,
[Storage] vSwitch1,
Thus, CloudStack cannot match the same virtual switches on vCenter.
The wizard cannot go all the way to the last step. You have to manually
rename these labels in
Zone -> Physical Network, and add the remaining primary/secondary storages
later.
Can you or someone else confirm this? Is this auto-renaming a bug?
-------------------------------------------------------------------------------------------
Yu-Heng (Ryan) Lei, Associate Researcher
Chunghwa Telecom Laboratories / Cloud Computing Laboratory
ryanlei@cht.com.tw<https://email.cht.com.tw/owa/redir.aspx?C=-wE1FEC3G0SWYpVkiWo8SsDdf3ZqO9AIuAPTzRnFYCUi-z4YljtI_hyVKkNHfn9F1Bn-vUWJnQ4.&URL=mailto%3aryanlei%40cht.com.tw>
or
ryanlei750328@gmail.com
On Wed, Oct 23, 2013 at 6:40 PM, Denis Finko <de...@ecommerce.com>wrote:
> Hello CloudStack community,
>
> Could you please help found source of following issue and how to fix it.
> I am tring to configure CloudStack 4.2 (installed from cloudstack repo
> baseurl=http://cloudstack.apt-get.eu/rhel/4.2/) with VMware 5.1. During
> adding new zone into UI I have got following error:
>
> "Unable to add the external cluster"
>
> We have following networking configuration in vSphere Client:
> Standard Switch: vSwitch0
> -Virtual Machine Port Group (VM Network) --vmnic0
> -VMkernel Port (Management Network)
>
> Standard Switch: vSwitch1
> -VMkernel Port (Storage1) --vmnic2
>
>
> management-server.log:
> 2013-10-23 05:36:03,534 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-22:null) ===START=== 193.142.124.9 -- GET
>
> command=addCluster&zoneId=4f28654f-e767-4be2-b32f-39f634a01746&hypervisor=VMware&clustertype=ExternalManaged&podId=94e55d0c-3ea9-4dbc-800b-854262fd2674&username=Administrator&url=http%3A%2F%2F10.199.0.40%2Fcs4%2Fcs4it&clustername=10.199.0.40%2Fcs4%2Fcs4it&response=json&sessionkey=uAl68djojOPwUBfhwxw8OwodZuE%3D&_=1382520964075
> 2013-10-23 05:36:03,643 INFO [hypervisor.vmware.VmwareServerDiscoverer]
> (catalina-exec-22:null) Discover host. dc: 1, pod: 1, cluster: 1, uri
> host: 10.199.0.40
> 2013-10-23 05:36:03,689 INFO [hypervisor.vmware.VmwareServerDiscoverer]
> (catalina-exec-22:null) Detected private network label : vSwitch0,
> 2013-10-23 05:36:03,689 DEBUG [vmware.resource.VmwareContextFactory]
> (catalina-exec-22:null) initialize VmwareContext. url:
> https://10.199.0.40/sdk/vimService, username: Administrator, password:
> r*******
> 2013-10-23 05:36:03,817 INFO [vmware.util.VmwareContext]
> (catalina-exec-22:null) New VmwareContext object, current outstanding
> count: 1
> 2013-10-23 05:36:03,952 INFO [vmware.manager.VmwareManagerImpl]
> (catalina-exec-22:null) Preparing network on host
> com.cloud.hypervisor.vmware.util.VmwareContext@60e2e3d4 for vSwitch0,
> 2013-10-23 05:36:03,999 ERROR [vmware.mo.HypervisorHostHelper]
> (catalina-exec-22:null) Unable to find vSwitchvSwitch0,
> 2013-10-23 05:36:03,999 WARN [hypervisor.vmware.VmwareServerDiscoverer]
> (catalina-exec-22:null) Unable to connect to Vmware vSphere server.
> service address: 10.199.0.40
> 2013-10-23 05:36:04,012 WARN [cloud.resource.ResourceManagerImpl]
> (catalina-exec-22:null) Unable to find the server resources at
> http://10.199.0.40/cs4/cs4it
> 2013-10-23 05:36:04,014 INFO [utils.exception.CSExceptionErrorCode]
> (catalina-exec-22:null) Could not find exception:
> com.cloud.exception.DiscoveryException in error code list for exceptions
> 2013-10-23 05:36:04,095 WARN [admin.cluster.AddClusterCmd]
> (catalina-exec-22:null) Exception:
> com.cloud.exception.DiscoveryException: Unable to add the external cluster
> at
>
> com.cloud.resource.ResourceManagerImpl.discoverCluster(ResourceManagerImpl.java:533)
> at
>
> com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
> at
>
> org.apache.cloudstack.api.command.admin.cluster.AddClusterCmd.execute(AddClusterCmd.java:181)
> at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
> at com.cloud.api.ApiServer.queueCommand(ApiServer.java:514)
> at com.cloud.api.ApiServer.handleRequest(ApiServer.java:372)
> at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:305)
> 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:1146)
> at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:679)
> 2013-10-23 05:36:04,096 INFO [cloud.api.ApiServer]
> (catalina-exec-22:null) Unable to add the external cluster
>
> Also please take a look to attached screenshots which I have done during
> CloudStack networking configuration.
>
> Thank you!
>
>