ccycv commented on issue #6479:
URL: https://github.com/apache/cloudstack/issues/6479#issuecomment-1181459777

   Update:
   
      Related to adding a cluster. I tried to add new zone to the same setup, 
ofc, I had the same issue via UI and then I tried to add via cloudmonkey but 
without success, here is why;
      
      `022-07-12 08:01:07,483 INFO  [c.c.h.v.VmwareServerDiscoverer] 
(qtp515715487-18:ctx-1158479d ctx-d5973879) (logid:d407e9a3) Discover host. dc: 
2, pod: 2, cluster: 36, uri host: vscsp06.test.host
   2022-07-12 08:01:07,489 INFO  [c.c.n.NetworkModelImpl] 
(qtp515715487-18:ctx-1158479d ctx-d5973879) (logid:d407e9a3) More than one 
physical networks exist in zone id=2 with traffic type=Guest.
   2022-07-12 08:01:07,507 INFO  [c.c.h.v.VmwareServerDiscoverer] 
(qtp515715487-18:ctx-1158479d ctx-d5973879) (logid:d407e9a3) Detected private 
network label : vSwitch1,null,vmwaresvs
   2022-07-12 08:01:07,507 DEBUG [c.c.h.v.r.VmwareContextFactory] 
(qtp515715487-18:ctx-1158479d ctx-d5973879) (logid:d407e9a3) initialize 
VmwareContext. url: https://vscsp06.test.host/sdk/vimService, username: 
[email protected], password: F****************
   2022-07-12 08:01:07,654 INFO  [c.c.h.v.u.VmwareContext] 
(qtp515715487-18:ctx-1158479d ctx-d5973879) (logid:d407e9a3) New VmwareContext 
object, current outstanding count: 5
   2022-07-12 08:01:07,683 INFO  [c.c.h.v.m.VmwareManagerImpl] 
(qtp515715487-18:ctx-1158479d ctx-d5973879) (logid:d407e9a3) Preparing network 
on host com.cloud.hypervisor.vmware.util.VmwareContext@5ddfaaa2 for 
vSwitch1,null,vmwaresvs
   2022-07-12 08:01:07,691 WARN  [c.c.h.v.VmwareServerDiscoverer] 
(qtp515715487-18:ctx-1158479d ctx-d5973879) (logid:d407e9a3) Unable to connect 
to Vmware vSphere server. service address: vscsp06.test.host. 
java.lang.NumberFormatException: For input string: "null"
   2022-07-12 08:01:07,691 INFO  [c.c.h.v.u.VmwareContext] 
(qtp515715487-18:ctx-1158479d ctx-d5973879) (logid:d407e9a3) Disconnecting 
VMware session
   2022-07-12 08:01:07,694 WARN  [c.c.r.ResourceManagerImpl] 
(qtp515715487-18:ctx-1158479d ctx-d5973879) (logid:d407e9a3) Unable to find the 
server resources at http://vscsp06.test.host/HK-001/HKG-001/
   2022-07-12 08:01:07,694 INFO  [c.c.u.e.CSExceptionErrorCode] 
(qtp515715487-18:ctx-1158479d ctx-d5973879) (logid:d407e9a3) Could not find 
exception: com.cloud.exception.DiscoveryException in error code list for 
exceptions
   2022-07-12 08:01:07,708 WARN  [o.a.c.a.c.a.c.AddClusterCmd] 
(qtp515715487-18:ctx-1158479d ctx-d5973879) (logid:d407e9a3) Exception:
   com.cloud.exception.DiscoveryException: Unable to add the external cluster
           at 
com.cloud.resource.ResourceManagerImpl.discoverCluster(ResourceManagerImpl.java:585)
           at jdk.internal.reflect.GeneratedMethodAccessor785.invoke(Unknown 
Source)
   `
   
   "Detected private network label : vSwitch1,null,vmwaresvs"  here is the 
issue, not sure why, but the network labels where changed from vSwitch1 to 
"vSwitch1,null,vmwaresvs", after I corrected, I was able to add with success.  
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to