You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Jimmy Huybrechts <ji...@linservers.com> on 2023/11/14 16:17:47 UTC
Unable to add second host
I’m trying to add a second host to my cluster now after the tests I did with having only one, however I get a Error 530 in the GUI and the management log says the following:
2023-11-14 17:11:33,491 WARN [c.c.a.d.ParamGenericValidationWorker] (qtp1278852808-495:ctx-1cea20ad ctx-5982a2e5) (logid:d7576e47) Received unknown parameters for command addHost. Unknown parameters : clustertype
2023-11-14 17:11:33,495 ERROR [c.c.a.ApiServer] (qtp1278852808-495:ctx-1cea20ad ctx-5982a2e5) (logid:d7576e47) unhandled exception executing api command: [Ljava.lang.String;@44dcd5ae
com.cloud.utils.exception.CloudRuntimeException: Guid is not updated for cluster with specified cluster id; need to wait for hosts in this cluster to come up
at com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:640)
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.$Proxy199.discoverHosts(Unknown Source)
at org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:136)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:163)
at com.cloud.api.ApiServer.queueCommand(ApiServer.java:782)
at com.cloud.api.ApiServer.handleRequest(ApiServer.java:603)
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.doPost(ApiServlet.java:110)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:665)
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.ssl.SslConnection$DecryptedEndPoint.onFillable(SslConnection.java:555)
at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:410)
at org.eclipse.jetty.io.ssl.SslConnection$2.succeeded(SslConnection.java:164)
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-11-14 17:11:33,499 DEBUG [c.c.a.ApiServlet] (qtp1278852808-495:ctx-1cea20ad ctx-5982a2e5) (logid:d7576e47) ===END=== 167.172.33.35 -- POST command=addHost&response=json
> need to wait for hosts in this cluster to come up
My cluster only has one host currently and that one is registered as up in the GUI.
State Up – Resource State Enabled.
How to debug this?
--
Jimmy
Re: Unable to add second host
Posted by Jimmy Huybrechts <ji...@linservers.com>.
Hi Jithin,
I don’t unfortunately since I did so much tests with just 1 host in adding / removing it, also tried building the cluster in the beginning and ran in some errors because it was the first I worked with Cloudstack.
In case a new cloudstack setup is built it is known now how it works, If the same issue appears an issue for it will be created.
--
Jimmy
Van: Jithin Raju <ji...@shapeblue.com>
Datum: donderdag, 16 november 2023 om 05:18
Aan: users@cloudstack.apache.org <us...@cloudstack.apache.org>
Onderwerp: Re: Unable to add second host
If you have the steps to reproduce the issue it might be worth reporting the issue.
-Jithin
From: Jimmy Huybrechts <ji...@linservers.com>
Date: Wednesday, 15 November 2023 at 3:53 PM
To: users@cloudstack.apache.org <us...@cloudstack.apache.org>
Subject: Re: Unable to add second host
Hi Jithin,
That was it actually, I filled in a guid in that table and now it added it, currently doing tests with it already :)
--
Jimmy
Van: Jithin Raju <ji...@shapeblue.com>
Datum: woensdag, 15 november 2023 om 05:15
Aan: users@cloudstack.apache.org <us...@cloudstack.apache.org>
Onderwerp: Re: Unable to add second host
Hi Jimmy,
>Guid is not updated for cluster with specified cluster id
Could you verify whether there is any value for the ‘guid’ filed in the ‘cluster’ table for this cluster, if its NULL generate a random UUID and update the field.
-Jithin
From: Jimmy Huybrechts <ji...@linservers.com>
Date: Tuesday, 14 November 2023 at 10:13 PM
To: users@cloudstack.apache.org <us...@cloudstack.apache.org>
Subject: Re: Unable to add second host
Hi Gary,
I did that doing the fqdn indeed, just like the first host.
--
Jimmy
Van: Gary Dixon <Ga...@quadris.co.uk.INVALID>
Datum: dinsdag, 14 november 2023 om 17:22
Aan: users@cloudstack.apache.org <us...@cloudstack.apache.org>
Onderwerp: RE: Unable to add second host
Hi Jimmy
Did you try to add the host via its IP or FQDN - it looks like you need to add it via FQDN
[cid:image195681.png@8AB6B0A1.40521B2B]
Gary Dixon
Senior Technical Consultant
[cid:image607471.png@6EABA39E.15C283A8]
0161 537 4980<tel:0161%20537%204980>
+44 7989717661<tel:+44%207989717661>
[cid:image039452.png@587E2583.30F76F95]
Gary.Dixon@quadris.co.uk<ma...@quadris.co.uk>
[cid:image674966.png@DDFF6C88.15096CB3]
www.quadris.com<http://www.quadris.com>
[cid:image900790.png@68DA5719.E45F2990]
Innovation House, 12‑13 Bredbury Business Park
Bredbury Park Way, Bredbury, Stockport, SK6 2SN
-----Original Message-----
From: Jimmy Huybrechts <ji...@linservers.com>
Sent: Tuesday, November 14, 2023 4:18 PM
To: users@cloudstack.apache.org
Subject: Unable to add second host
I'm trying to add a second host to my cluster now after the tests I did with having only one, however I get a Error 530 in the GUI and the management log says the following:
2023-11-14 17:11:33,491 WARN [c.c.a.d.ParamGenericValidationWorker] (qtp1278852808-495:ctx-1cea20ad ctx-5982a2e5) (logid:d7576e47) Received unknown parameters for command addHost. Unknown parameters : clustertype
2023-11-14 17:11:33,495 ERROR [c.c.a.ApiServer] (qtp1278852808-495:ctx-1cea20ad ctx-5982a2e5) (logid:d7576e47) unhandled exception executing api command: [Ljava.lang.String;@44dcd5ae
com.cloud.utils.exception.CloudRuntimeException: Guid is not updated for cluster with specified cluster id; need to wait for hosts in this cluster to come up
at com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:640)
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.$Proxy199.discoverHosts(Unknown Source)
at org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:136)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:163)
at com.cloud.api.ApiServer.queueCommand(ApiServer.java:782)
at com.cloud.api.ApiServer.handleRequest(ApiServer.java:603)
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.doPost(ApiServlet.java:110)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:665)
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.ssl.SslConnection$DecryptedEndPoint.onFillable(SslConnection.java:555)
at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:410)
at org.eclipse.jetty.io.ssl.SslConnection$2.succeeded(SslConnection.java:164)
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-11-14 17:11:33,499 DEBUG [c.c.a.ApiServlet] (qtp1278852808-495:ctx-1cea20ad ctx-5982a2e5) (logid:d7576e47) ===END=== 167.172.33.35 -- POST command=addHost&response=json
> need to wait for hosts in this cluster to come up
My cluster only has one host currently and that one is registered as up in the GUI.
State Up - Resource State Enabled.
How to debug this?
--
Jimmy
Re: Unable to add second host
Posted by Jithin Raju <ji...@shapeblue.com>.
If you have the steps to reproduce the issue it might be worth reporting the issue.
-Jithin
From: Jimmy Huybrechts <ji...@linservers.com>
Date: Wednesday, 15 November 2023 at 3:53 PM
To: users@cloudstack.apache.org <us...@cloudstack.apache.org>
Subject: Re: Unable to add second host
Hi Jithin,
That was it actually, I filled in a guid in that table and now it added it, currently doing tests with it already :)
--
Jimmy
Van: Jithin Raju <ji...@shapeblue.com>
Datum: woensdag, 15 november 2023 om 05:15
Aan: users@cloudstack.apache.org <us...@cloudstack.apache.org>
Onderwerp: Re: Unable to add second host
Hi Jimmy,
>Guid is not updated for cluster with specified cluster id
Could you verify whether there is any value for the ‘guid’ filed in the ‘cluster’ table for this cluster, if its NULL generate a random UUID and update the field.
-Jithin
From: Jimmy Huybrechts <ji...@linservers.com>
Date: Tuesday, 14 November 2023 at 10:13 PM
To: users@cloudstack.apache.org <us...@cloudstack.apache.org>
Subject: Re: Unable to add second host
Hi Gary,
I did that doing the fqdn indeed, just like the first host.
--
Jimmy
Van: Gary Dixon <Ga...@quadris.co.uk.INVALID>
Datum: dinsdag, 14 november 2023 om 17:22
Aan: users@cloudstack.apache.org <us...@cloudstack.apache.org>
Onderwerp: RE: Unable to add second host
Hi Jimmy
Did you try to add the host via its IP or FQDN - it looks like you need to add it via FQDN
[cid:image195681.png@8AB6B0A1.40521B2B]
Gary Dixon
Senior Technical Consultant
[cid:image607471.png@6EABA39E.15C283A8]
0161 537 4980<tel:0161%20537%204980>
+44 7989717661<tel:+44%207989717661>
[cid:image039452.png@587E2583.30F76F95]
Gary.Dixon@quadris.co.uk<ma...@quadris.co.uk>
[cid:image674966.png@DDFF6C88.15096CB3]
www.quadris.com<http://www.quadris.com>
[cid:image900790.png@68DA5719.E45F2990]
Innovation House, 12‑13 Bredbury Business Park
Bredbury Park Way, Bredbury, Stockport, SK6 2SN
-----Original Message-----
From: Jimmy Huybrechts <ji...@linservers.com>
Sent: Tuesday, November 14, 2023 4:18 PM
To: users@cloudstack.apache.org
Subject: Unable to add second host
I'm trying to add a second host to my cluster now after the tests I did with having only one, however I get a Error 530 in the GUI and the management log says the following:
2023-11-14 17:11:33,491 WARN [c.c.a.d.ParamGenericValidationWorker] (qtp1278852808-495:ctx-1cea20ad ctx-5982a2e5) (logid:d7576e47) Received unknown parameters for command addHost. Unknown parameters : clustertype
2023-11-14 17:11:33,495 ERROR [c.c.a.ApiServer] (qtp1278852808-495:ctx-1cea20ad ctx-5982a2e5) (logid:d7576e47) unhandled exception executing api command: [Ljava.lang.String;@44dcd5ae
com.cloud.utils.exception.CloudRuntimeException: Guid is not updated for cluster with specified cluster id; need to wait for hosts in this cluster to come up
at com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:640)
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.$Proxy199.discoverHosts(Unknown Source)
at org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:136)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:163)
at com.cloud.api.ApiServer.queueCommand(ApiServer.java:782)
at com.cloud.api.ApiServer.handleRequest(ApiServer.java:603)
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.doPost(ApiServlet.java:110)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:665)
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.ssl.SslConnection$DecryptedEndPoint.onFillable(SslConnection.java:555)
at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:410)
at org.eclipse.jetty.io.ssl.SslConnection$2.succeeded(SslConnection.java:164)
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-11-14 17:11:33,499 DEBUG [c.c.a.ApiServlet] (qtp1278852808-495:ctx-1cea20ad ctx-5982a2e5) (logid:d7576e47) ===END=== 167.172.33.35 -- POST command=addHost&response=json
> need to wait for hosts in this cluster to come up
My cluster only has one host currently and that one is registered as up in the GUI.
State Up - Resource State Enabled.
How to debug this?
--
Jimmy
Re: Unable to add second host
Posted by Jimmy Huybrechts <ji...@linservers.com>.
Hi Jithin,
That was it actually, I filled in a guid in that table and now it added it, currently doing tests with it already :)
--
Jimmy
Van: Jithin Raju <ji...@shapeblue.com>
Datum: woensdag, 15 november 2023 om 05:15
Aan: users@cloudstack.apache.org <us...@cloudstack.apache.org>
Onderwerp: Re: Unable to add second host
Hi Jimmy,
>Guid is not updated for cluster with specified cluster id
Could you verify whether there is any value for the ‘guid’ filed in the ‘cluster’ table for this cluster, if its NULL generate a random UUID and update the field.
-Jithin
From: Jimmy Huybrechts <ji...@linservers.com>
Date: Tuesday, 14 November 2023 at 10:13 PM
To: users@cloudstack.apache.org <us...@cloudstack.apache.org>
Subject: Re: Unable to add second host
Hi Gary,
I did that doing the fqdn indeed, just like the first host.
--
Jimmy
Van: Gary Dixon <Ga...@quadris.co.uk.INVALID>
Datum: dinsdag, 14 november 2023 om 17:22
Aan: users@cloudstack.apache.org <us...@cloudstack.apache.org>
Onderwerp: RE: Unable to add second host
Hi Jimmy
Did you try to add the host via its IP or FQDN - it looks like you need to add it via FQDN
[cid:image195681.png@8AB6B0A1.40521B2B]
Gary Dixon
Senior Technical Consultant
[cid:image607471.png@6EABA39E.15C283A8]
0161 537 4980<tel:0161%20537%204980>
+44 7989717661<tel:+44%207989717661>
[cid:image039452.png@587E2583.30F76F95]
Gary.Dixon@quadris.co.uk<ma...@quadris.co.uk>
[cid:image674966.png@DDFF6C88.15096CB3]
www.quadris.com<http://www.quadris.com>
[cid:image900790.png@68DA5719.E45F2990]
Innovation House, 12‑13 Bredbury Business Park
Bredbury Park Way, Bredbury, Stockport, SK6 2SN
-----Original Message-----
From: Jimmy Huybrechts <ji...@linservers.com>
Sent: Tuesday, November 14, 2023 4:18 PM
To: users@cloudstack.apache.org
Subject: Unable to add second host
I'm trying to add a second host to my cluster now after the tests I did with having only one, however I get a Error 530 in the GUI and the management log says the following:
2023-11-14 17:11:33,491 WARN [c.c.a.d.ParamGenericValidationWorker] (qtp1278852808-495:ctx-1cea20ad ctx-5982a2e5) (logid:d7576e47) Received unknown parameters for command addHost. Unknown parameters : clustertype
2023-11-14 17:11:33,495 ERROR [c.c.a.ApiServer] (qtp1278852808-495:ctx-1cea20ad ctx-5982a2e5) (logid:d7576e47) unhandled exception executing api command: [Ljava.lang.String;@44dcd5ae
com.cloud.utils.exception.CloudRuntimeException: Guid is not updated for cluster with specified cluster id; need to wait for hosts in this cluster to come up
at com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:640)
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.$Proxy199.discoverHosts(Unknown Source)
at org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:136)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:163)
at com.cloud.api.ApiServer.queueCommand(ApiServer.java:782)
at com.cloud.api.ApiServer.handleRequest(ApiServer.java:603)
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.doPost(ApiServlet.java:110)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:665)
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.ssl.SslConnection$DecryptedEndPoint.onFillable(SslConnection.java:555)
at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:410)
at org.eclipse.jetty.io.ssl.SslConnection$2.succeeded(SslConnection.java:164)
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-11-14 17:11:33,499 DEBUG [c.c.a.ApiServlet] (qtp1278852808-495:ctx-1cea20ad ctx-5982a2e5) (logid:d7576e47) ===END=== 167.172.33.35 -- POST command=addHost&response=json
> need to wait for hosts in this cluster to come up
My cluster only has one host currently and that one is registered as up in the GUI.
State Up - Resource State Enabled.
How to debug this?
--
Jimmy
Re: Unable to add second host
Posted by Jithin Raju <ji...@shapeblue.com>.
Hi Jimmy,
>Guid is not updated for cluster with specified cluster id
Could you verify whether there is any value for the ‘guid’ filed in the ‘cluster’ table for this cluster, if its NULL generate a random UUID and update the field.
-Jithin
From: Jimmy Huybrechts <ji...@linservers.com>
Date: Tuesday, 14 November 2023 at 10:13 PM
To: users@cloudstack.apache.org <us...@cloudstack.apache.org>
Subject: Re: Unable to add second host
Hi Gary,
I did that doing the fqdn indeed, just like the first host.
--
Jimmy
Van: Gary Dixon <Ga...@quadris.co.uk.INVALID>
Datum: dinsdag, 14 november 2023 om 17:22
Aan: users@cloudstack.apache.org <us...@cloudstack.apache.org>
Onderwerp: RE: Unable to add second host
Hi Jimmy
Did you try to add the host via its IP or FQDN - it looks like you need to add it via FQDN
[cid:image195681.png@8AB6B0A1.40521B2B]
Gary Dixon
Senior Technical Consultant
[cid:image607471.png@6EABA39E.15C283A8]
0161 537 4980<tel:0161%20537%204980>
+44 7989717661<tel:+44%207989717661>
[cid:image039452.png@587E2583.30F76F95]
Gary.Dixon@quadris.co.uk<ma...@quadris.co.uk>
[cid:image674966.png@DDFF6C88.15096CB3]
www.quadris.com<http://www.quadris.com>
[cid:image900790.png@68DA5719.E45F2990]
Innovation House, 12‑13 Bredbury Business Park
Bredbury Park Way, Bredbury, Stockport, SK6 2SN
-----Original Message-----
From: Jimmy Huybrechts <ji...@linservers.com>
Sent: Tuesday, November 14, 2023 4:18 PM
To: users@cloudstack.apache.org
Subject: Unable to add second host
I'm trying to add a second host to my cluster now after the tests I did with having only one, however I get a Error 530 in the GUI and the management log says the following:
2023-11-14 17:11:33,491 WARN [c.c.a.d.ParamGenericValidationWorker] (qtp1278852808-495:ctx-1cea20ad ctx-5982a2e5) (logid:d7576e47) Received unknown parameters for command addHost. Unknown parameters : clustertype
2023-11-14 17:11:33,495 ERROR [c.c.a.ApiServer] (qtp1278852808-495:ctx-1cea20ad ctx-5982a2e5) (logid:d7576e47) unhandled exception executing api command: [Ljava.lang.String;@44dcd5ae
com.cloud.utils.exception.CloudRuntimeException: Guid is not updated for cluster with specified cluster id; need to wait for hosts in this cluster to come up
at com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:640)
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.$Proxy199.discoverHosts(Unknown Source)
at org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:136)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:163)
at com.cloud.api.ApiServer.queueCommand(ApiServer.java:782)
at com.cloud.api.ApiServer.handleRequest(ApiServer.java:603)
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.doPost(ApiServlet.java:110)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:665)
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.ssl.SslConnection$DecryptedEndPoint.onFillable(SslConnection.java:555)
at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:410)
at org.eclipse.jetty.io.ssl.SslConnection$2.succeeded(SslConnection.java:164)
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-11-14 17:11:33,499 DEBUG [c.c.a.ApiServlet] (qtp1278852808-495:ctx-1cea20ad ctx-5982a2e5) (logid:d7576e47) ===END=== 167.172.33.35 -- POST command=addHost&response=json
> need to wait for hosts in this cluster to come up
My cluster only has one host currently and that one is registered as up in the GUI.
State Up - Resource State Enabled.
How to debug this?
--
Jimmy
Re: Unable to add second host
Posted by Jimmy Huybrechts <ji...@linservers.com>.
Hi Gary,
I did that doing the fqdn indeed, just like the first host.
--
Jimmy
Van: Gary Dixon <Ga...@quadris.co.uk.INVALID>
Datum: dinsdag, 14 november 2023 om 17:22
Aan: users@cloudstack.apache.org <us...@cloudstack.apache.org>
Onderwerp: RE: Unable to add second host
Hi Jimmy
Did you try to add the host via its IP or FQDN - it looks like you need to add it via FQDN
[cid:image195681.png@8AB6B0A1.40521B2B]
Gary Dixon
Senior Technical Consultant
[cid:image607471.png@6EABA39E.15C283A8]
0161 537 4980<tel:0161%20537%204980>
+44 7989717661<tel:+44%207989717661>
[cid:image039452.png@587E2583.30F76F95]
Gary.Dixon@quadris.co.uk<ma...@quadris.co.uk>
[cid:image674966.png@DDFF6C88.15096CB3]
www.quadris.com
[cid:image900790.png@68DA5719.E45F2990]
Innovation House, 12‑13 Bredbury Business Park
Bredbury Park Way, Bredbury, Stockport, SK6 2SN
-----Original Message-----
From: Jimmy Huybrechts <ji...@linservers.com>
Sent: Tuesday, November 14, 2023 4:18 PM
To: users@cloudstack.apache.org
Subject: Unable to add second host
I'm trying to add a second host to my cluster now after the tests I did with having only one, however I get a Error 530 in the GUI and the management log says the following:
2023-11-14 17:11:33,491 WARN [c.c.a.d.ParamGenericValidationWorker] (qtp1278852808-495:ctx-1cea20ad ctx-5982a2e5) (logid:d7576e47) Received unknown parameters for command addHost. Unknown parameters : clustertype
2023-11-14 17:11:33,495 ERROR [c.c.a.ApiServer] (qtp1278852808-495:ctx-1cea20ad ctx-5982a2e5) (logid:d7576e47) unhandled exception executing api command: [Ljava.lang.String;@44dcd5ae
com.cloud.utils.exception.CloudRuntimeException: Guid is not updated for cluster with specified cluster id; need to wait for hosts in this cluster to come up
at com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:640)
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.$Proxy199.discoverHosts(Unknown Source)
at org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:136)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:163)
at com.cloud.api.ApiServer.queueCommand(ApiServer.java:782)
at com.cloud.api.ApiServer.handleRequest(ApiServer.java:603)
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.doPost(ApiServlet.java:110)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:665)
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.ssl.SslConnection$DecryptedEndPoint.onFillable(SslConnection.java:555)
at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:410)
at org.eclipse.jetty.io.ssl.SslConnection$2.succeeded(SslConnection.java:164)
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-11-14 17:11:33,499 DEBUG [c.c.a.ApiServlet] (qtp1278852808-495:ctx-1cea20ad ctx-5982a2e5) (logid:d7576e47) ===END=== 167.172.33.35 -- POST command=addHost&response=json
> need to wait for hosts in this cluster to come up
My cluster only has one host currently and that one is registered as up in the GUI.
State Up - Resource State Enabled.
How to debug this?
--
Jimmy
RE: Unable to add second host
Posted by Gary Dixon <Ga...@quadris.co.uk.INVALID>.
Hi Jimmy
Did you try to add the host via its IP or FQDN - it looks like you need to add it via FQDN
Gary Dixon
Senior Technical Consultant
0161 537 4980 +44 7989717661
Gary.Dixon@quadris.co.uk
www.quadris.com
Innovation House, 12-13 Bredbury Business Park
Bredbury Park Way, Bredbury, Stockport, SK6 2SN
-----Original Message-----
From: Jimmy Huybrechts <ji...@linservers.com>
Sent: Tuesday, November 14, 2023 4:18 PM
To: users@cloudstack.apache.org
Subject: Unable to add second host
I'm trying to add a second host to my cluster now after the tests I did with having only one, however I get a Error 530 in the GUI and the management log says the following:
2023-11-14 17:11:33,491 WARN [c.c.a.d.ParamGenericValidationWorker] (qtp1278852808-495:ctx-1cea20ad ctx-5982a2e5) (logid:d7576e47) Received unknown parameters for command addHost. Unknown parameters : clustertype
2023-11-14 17:11:33,495 ERROR [c.c.a.ApiServer] (qtp1278852808-495:ctx-1cea20ad ctx-5982a2e5) (logid:d7576e47) unhandled exception executing api command: [Ljava.lang.String;@44dcd5ae
com.cloud.utils.exception.CloudRuntimeException: Guid is not updated for cluster with specified cluster id; need to wait for hosts in this cluster to come up
at com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:640)
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.$Proxy199.discoverHosts(Unknown Source)
at org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:136)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:163)
at com.cloud.api.ApiServer.queueCommand(ApiServer.java:782)
at com.cloud.api.ApiServer.handleRequest(ApiServer.java:603)
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.doPost(ApiServlet.java:110)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:665)
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.ssl.SslConnection$DecryptedEndPoint.onFillable(SslConnection.java:555)
at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:410)
at org.eclipse.jetty.io.ssl.SslConnection$2.succeeded(SslConnection.java:164)
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-11-14 17:11:33,499 DEBUG [c.c.a.ApiServlet] (qtp1278852808-495:ctx-1cea20ad ctx-5982a2e5) (logid:d7576e47) ===END=== 167.172.33.35 -- POST command=addHost&response=json
> need to wait for hosts in this cluster to come up
My cluster only has one host currently and that one is registered as up in the GUI.
State Up - Resource State Enabled.
How to debug this?
--
Jimmy