sptest232 commented on issue #7563:
URL: https://github.com/apache/cloudstack/issues/7563#issuecomment-1566967390

   Yes, kiranchavala. Problem connected with **add zone wizard**.
   
   Please notice following information (only in case of **add zone wizard** use 
):
   1) Incorrect pod and cluster naming while adding zone with other hypervisors 
(XenServer).
   
   
![image](https://github.com/apache/cloudstack/assets/119221308/4d61d6f7-c697-4a7f-b298-78117677c6d6)
   
![image](https://github.com/apache/cloudstack/assets/119221308/af9a2956-53f4-4e84-970c-afff7edf96c9)
   
   
   2) In case of adding vmware hypervisor zone: error when I try to add 
**datastore cluster** as a primary storage.
   If i try **datastore cluster** as a primary storage via 
"Infrastructure>Primary Storage" everything as OK.
   
   
![image](https://github.com/apache/cloudstack/assets/119221308/8335c4c0-1637-4b84-82ef-3617a3ec6a8e)
   
![image](https://github.com/apache/cloudstack/assets/119221308/ce3937af-5a2c-4419-92cb-1afbaad2121e)
   
   Log:
   
   2023-05-29 11:58:14,955 DEBUG 
[o.a.c.s.d.l.CloudStackPrimaryDataStoreLifeCycleImpl] 
(qtp649329985-19:ctx-ad16463d ctx-58b09641) (logid:b1970496) createPool Params 
@ scheme - datastorecluster storageHost - dum
   my hostPath - /Lab-DC1/ds-cluster-type-1 port - -1
   2023-05-29 11:58:14,961 DEBUG [c.c.a.t.Request] 
(qtp649329985-19:ctx-ad16463d ctx-58b09641) (logid:b1970496) Seq 
1-3859303405679804420: Sending  { Cmd , MgmtId: 172315270, via: 1(s21.lab), 
Ver: v1, Flags: 100
   011, 
[{"com.cloud.agent.api.ValidateVcenterDetailsCommand":{"vCenterServerAddress":"dummy","wait":"0","bypassHostMaintenance":"false"}}]
 }
   2023-05-29 11:58:14,961 DEBUG [c.c.a.t.Request] 
(qtp649329985-19:ctx-ad16463d ctx-58b09641) (logid:b1970496) Seq 
1-3859303405679804420: Executing:  { Cmd , MgmtId: 172315270, via: 1(s21.lab), 
Ver: v1, Flags:
   100011, 
[{"com.cloud.agent.api.ValidateVcenterDetailsCommand":{"vCenterServerAddress":"dummy","wait":"0","bypassHostMaintenance":"false"}}]
 }
   2023-05-29 11:58:14,966 DEBUG [c.c.a.m.DirectAgentAttache] 
(DirectAgent-3:ctx-c0eb1350) (logid:c540686b) Seq 1-3859303405679804420: 
Executing request
   2023-05-29 11:58:14,966 DEBUG [c.c.h.v.r.VmwareResource] 
(DirectAgent-3:ctx-c0eb1350) (logid:b1970496) Executing resource command 
ValidateVcenterDetailsCommand: [{"vCenterServerAddress":"dummy","wait":0,"bypa
   ssHostMaintenance":false}].
   2023-05-29 11:58:14,975 DEBUG [c.c.a.m.DirectAgentAttache] 
(DirectAgent-3:ctx-c0eb1350) (logid:b1970496) Seq 1-3859303405679804420: 
Response Received:
   2023-05-29 11:58:14,976 DEBUG [c.c.a.t.Request] (DirectAgent-3:ctx-c0eb1350) 
(logid:b1970496) Seq 1-3859303405679804420: Processing:  { Ans: , MgmtId: 
172315270, via: 1(s21.lab), Ver: v1, Flags: 10, [{"com.cl
   oud.agent.api.Answer":{"result":"false","details":"Provided vCenter server 
address is invalid","wait":"0","bypassHostMaintenance":"false"}}] }
   2023-05-29 11:58:14,976 DEBUG [c.c.a.t.Request] 
(qtp649329985-19:ctx-ad16463d ctx-58b09641) (logid:b1970496) Seq 
1-3859303405679804420: Received:  { Ans: , MgmtId: 172315270, via: 1(s21.lab), 
Ver: v1, Flags:
   10, { Answer } }
   2023-05-29 11:58:14,976 DEBUG [c.c.a.m.AgentManagerImpl] 
(qtp649329985-19:ctx-ad16463d ctx-58b09641) (logid:b1970496) Details from 
executing class com.cloud.agent.api.ValidateVcenterDetailsCommand: Provided v
   Center server address is invalid
   2023-05-29 11:58:14,978 DEBUG [c.c.s.StorageManagerImpl] 
(qtp649329985-19:ctx-ad16463d ctx-58b09641) (logid:b1970496) Failed to add data 
store: Provided vCenter server details does not match with the existing
    vCenter in zone id: 1
   com.cloud.exception.InvalidParameterValueException: Provided vCenter server 
details does not match with the existing vCenter in zone id: 1
           at 
org.apache.cloudstack.storage.datastore.lifecycle.CloudStackPrimaryDataStoreLifeCycleImpl.validateVcenterDetails(CloudStackPrimaryDataStoreLifeCycleImpl.java:379)
           at 
org.apache.cloudstack.storage.datastore.lifecycle.CloudStackPrimaryDataStoreLifeCycleImpl.initialize(CloudStackPrimaryDataStoreLifeCycleImpl.java:256)
           at 
com.cloud.storage.StorageManagerImpl.createPool(StorageManagerImpl.java:823)
           at 
com.cloud.storage.StorageManagerImpl.createPool(StorageManagerImpl.java:238)
           at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.base/java.lang.reflect.Method.invoke(Method.java:566)
           at 
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
           at 
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
           at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
           at 
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)
           at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
           at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:215)
           at com.sun.proxy.$Proxy101.createPool(Unknown Source)
           at 
org.apache.cloudstack.api.command.admin.storage.CreateStoragePoolCmd.execute(CreateStoragePoolCmd.java:157)
           at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:163)
           at com.cloud.api.ApiServer.queueCommand(ApiServer.java:777)
           at com.cloud.api.ApiServer.handleRequest(ApiServer.java:601)
           at 
com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:347)
           at com.cloud.api.ApiServlet$1.run(ApiServlet.java:154)
           at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:55)
           at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:102)
           at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:52)
           at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:151)
           at com.cloud.api.ApiServlet.doGet(ApiServlet.java:105)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:645)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:750)
           at 
org.eclipse.jetty.servlet.ServletHolder$NotAsync.service(ServletHolder.java:1450)
           at 
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799)
           at 
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:554)
           at 
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
           at 
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:600)
           at 
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
           at 
org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
           at 
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624)
           at 
org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
           at 
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1440)
           at 
org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
           at 
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:505)
           at 
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594)
           at 
org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
           at 
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1355)
           at 
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
           at 
org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:772)
           at 
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)
           at 
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
           at org.eclipse.jetty.server.Server.handle(Server.java:516)
           at 
org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:487)
           at 
org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:732)
           at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:479)
           at 
org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277)
           at 
org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
           at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
           at 
org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
           at 
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338)
           at 
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315)
           at 
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173)
           at 
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
           at 
org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:409)
           at 
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883)
           at 
org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034)
           at java.base/java.lang.Thread.run(Thread.java:829)
   2023-05-29 11:58:14,979 INFO  [c.c.a.ApiServer] 
(qtp649329985-19:ctx-ad16463d ctx-58b09641) (logid:b1970496) Failed to add data 
store: Provided vCenter server details does not match with the existing vCenter
   in zone id: 1
   
   
   
   


-- 
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