cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Artem Ageev (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CLOUDSTACK-10405) Add Hyper-V host to ApacheCloudStack
Date Thu, 21 Mar 2019 11:49:00 GMT

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-10405?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Artem Ageev updated CLOUDSTACK-10405:
-------------------------------------
    Environment: Windows Server 2016 Datacenter Hyper-V + ACS 4.11.2.0 (CentOS 6.10)  (was:
Windows Server 2016 Datacenter Hyper-V + ACS 4.11.2.0 (CentOS 6.7))
    Description: 
Hello!

I am trying to add Hyper-V (based on Windows Server 2016 Datacenter) host to Apache Cloud
Stack 4.11.2.0 (ACS based on CentOS 6.10). I've builded agent based on project files from
GitHub, installed it on host correctly, applied self-signed certificate. I've done all steps
according official ACS documentation. CloudStack Agent service is running and port 8250 is
reacheable from management server. I've create zones, podes, clusters etc. But I am not able
to add host. Here is error from management log:
{code:java}
2019-03-21 13:38:11,894 DEBUG [c.c.a.ApiServlet] (qtp1386767190-21:ctx-b53e717a) (logid:9ae60298)
===START=== 192.168.1.10 -- POST command=addHost&response=json
2019-03-21 13:38:11,897 DEBUG [c.c.a.ApiServer] (qtp1386767190-21:ctx-b53e717a ctx-99bc4cad)
(logid:9ae60298) CIDRs from which account 'Acct[f36d2f08-350b-11e9-879d-564d0001952e-admin]'
is allowed to perform API calls: 0.0.0.0/0,::/0
2019-03-21 13:38:11,901 WARN [c.c.a.d.ParamGenericValidationWorker] (qtp1386767190-21:ctx-b53e717a
ctx-99bc4cad) (logid:9ae60298) Received unknown parameters for command addHost. Unknown parameters
: clustertype
2019-03-21 13:38:11,910 INFO [c.c.r.ResourceManagerImpl] (qtp1386767190-21:ctx-b53e717a ctx-99bc4cad)
(logid:9ae60298) Trying to add a new host at http://myhost.domain.com in data center 2
2019-03-21 13:38:11,910 INFO [c.c.h.h.d.HypervServerDiscoverer] (qtp1386767190-21:ctx-b53e717a
ctx-99bc4cad) (logid:9ae60298) Discover host. dc(zone): 2, pod: 12, cluster: 3, uri host:
myhost.domain.com
2019-03-21 13:38:11,912 INFO [c.c.h.h.d.HypervServerDiscoverer] (qtp1386767190-21:ctx-b53e717a
ctx-99bc4cad) (logid:9ae60298) Creatingcom.cloud.hypervisor.hyperv.resource.HypervDirectConnectResource
HypervDirectConnectResource for zone/pod/cluster 2/12/3
2019-03-21 13:38:11,913 DEBUG [c.c.a.r.v.VirtualRoutingResource] (qtp1386767190-21:ctx-b53e717a
ctx-99bc4cad) (logid:9ae60298) The router.aggregation.command.each.timeout in seconds is set
to 600
2019-03-21 13:38:11,913 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (qtp1386767190-21:ctx-b53e717a
ctx-99bc4cad) (logid:9ae60298) POST request to https://192.168.1.20:8250/api/HypervResource/com.cloud.agent.api.ReadyCommand
with contents {"contextMap":{},"wait":0}
2019-03-21 13:38:11,950 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (qtp1386767190-21:ctx-b53e717a
ctx-99bc4cad) (logid:9ae60298) Sending cmd to https://192.168.1.20:8250/api/HypervResource/com.cloud.agent.api.ReadyCommand
cmd data:{"contextMap":{},"wait":0}
2019-03-21 13:38:11,975 ERROR [c.c.h.h.r.HypervDirectConnectResource] (qtp1386767190-21:ctx-b53e717a
ctx-99bc4cad) (logid:9ae60298) javax.net.ssl.SSLException: Unrecognized SSL message, plaintext
connection?
2019-03-21 13:38:11,975 DEBUG [c.c.h.h.d.HypervServerDiscoverer] (qtp1386767190-21:ctx-b53e717a
ctx-99bc4cad) (logid:9ae60298) Agent not running, or no route to agent on at http://myhost.domain.com
2019-03-21 13:38:11,975 INFO [c.c.u.e.CSExceptionErrorCode] (qtp1386767190-21:ctx-b53e717a
ctx-99bc4cad) (logid:9ae60298) Could not find exception: com.cloud.exception.DiscoveryException
in error code list for exceptions
2019-03-21 13:38:11,975 WARN [c.c.h.h.d.HypervServerDiscoverer] (qtp1386767190-21:ctx-b53e717a
ctx-99bc4cad) (logid:9ae60298) can't setup agent, due to com.cloud.exception.DiscoveryException:
Agent not running, or no route to agent on at http://myhost.domain.com - Agent not running,
or no route to agent on at http://myhost.domain.com
2019-03-21 13:38:11,975 WARN [c.c.r.ResourceManagerImpl] (qtp1386767190-21:ctx-b53e717a ctx-99bc4cad)
(logid:9ae60298) Unable to find the server resources at http://myhost.domain.com
2019-03-21 13:38:11,975 INFO [c.c.u.e.CSExceptionErrorCode] (qtp1386767190-21:ctx-b53e717a
ctx-99bc4cad) (logid:9ae60298) Could not find exception: com.cloud.exception.DiscoveryException
in error code list for exceptions
2019-03-21 13:38:11,975 WARN [o.a.c.a.c.a.h.AddHostCmd] (qtp1386767190-21:ctx-b53e717a ctx-99bc4cad)
(logid:9ae60298) Exception:
com.cloud.exception.DiscoveryException: Unable to add the host
at com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:820)
at com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:606)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:338)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:197)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
at com.sun.proxy.$Proxy174.discoverHosts(Unknown Source)
at org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:142)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:150)
at com.cloud.api.ApiServer.queueCommand(ApiServer.java:732)
at com.cloud.api.ApiServer.handleRequest(ApiServer.java:556)
at com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:310)
at com.cloud.api.ApiServlet$1.run(ApiServlet.java:130)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:127)
at com.cloud.api.ApiServlet.doPost(ApiServlet.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:706)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:791)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:852)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:535)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:190)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1253)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1155)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:527)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at org.eclipse.jetty.server.Server.handle(Server.java:530)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:347)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:256)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:247)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:140)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:382)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:708)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:626)
at java.lang.Thread.run(Thread.java:748)
2019-03-21 13:38:11,976 INFO [c.c.a.ApiServer] (qtp1386767190-21:ctx-b53e717a ctx-99bc4cad)
(logid:9ae60298) Unable to add the host
2019-03-21 13:38:11,976 DEBUG [c.c.a.ApiServlet] (qtp1386767190-21:ctx-b53e717a ctx-99bc4cad)
(logid:9ae60298) ===END=== 192.168.1.10 -- POST command=addHost&response=json
{code}
Could you please help me? What am I doing wrong?

  was:
Hello!

I am trying to add Hyper-V (based on Windows Server 2016 Datacenter) host to Apache Cloud
Stack 4.11.2.0 (ACS based on CentOS 6.7). I've builded agent based on project files from GitHub,
installed it on host correctly, applied self-signed certificate. I've done all steps according
official ACS documentation. CloudStack Agent service is running and port 8250 is reacheable
from management server. I've create zones, podes, clusters etc. But I am not able to add host.
Here is error from management log:
{code:java}
2019-03-21 13:38:11,894 DEBUG [c.c.a.ApiServlet] (qtp1386767190-21:ctx-b53e717a) (logid:9ae60298)
===START=== 192.168.1.10 -- POST command=addHost&response=json
2019-03-21 13:38:11,897 DEBUG [c.c.a.ApiServer] (qtp1386767190-21:ctx-b53e717a ctx-99bc4cad)
(logid:9ae60298) CIDRs from which account 'Acct[f36d2f08-350b-11e9-879d-564d0001952e-admin]'
is allowed to perform API calls: 0.0.0.0/0,::/0
2019-03-21 13:38:11,901 WARN [c.c.a.d.ParamGenericValidationWorker] (qtp1386767190-21:ctx-b53e717a
ctx-99bc4cad) (logid:9ae60298) Received unknown parameters for command addHost. Unknown parameters
: clustertype
2019-03-21 13:38:11,910 INFO [c.c.r.ResourceManagerImpl] (qtp1386767190-21:ctx-b53e717a ctx-99bc4cad)
(logid:9ae60298) Trying to add a new host at http://myhost.domain.com in data center 2
2019-03-21 13:38:11,910 INFO [c.c.h.h.d.HypervServerDiscoverer] (qtp1386767190-21:ctx-b53e717a
ctx-99bc4cad) (logid:9ae60298) Discover host. dc(zone): 2, pod: 12, cluster: 3, uri host:
myhost.domain.com
2019-03-21 13:38:11,912 INFO [c.c.h.h.d.HypervServerDiscoverer] (qtp1386767190-21:ctx-b53e717a
ctx-99bc4cad) (logid:9ae60298) Creatingcom.cloud.hypervisor.hyperv.resource.HypervDirectConnectResource
HypervDirectConnectResource for zone/pod/cluster 2/12/3
2019-03-21 13:38:11,913 DEBUG [c.c.a.r.v.VirtualRoutingResource] (qtp1386767190-21:ctx-b53e717a
ctx-99bc4cad) (logid:9ae60298) The router.aggregation.command.each.timeout in seconds is set
to 600
2019-03-21 13:38:11,913 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (qtp1386767190-21:ctx-b53e717a
ctx-99bc4cad) (logid:9ae60298) POST request to https://192.168.1.20:8250/api/HypervResource/com.cloud.agent.api.ReadyCommand
with contents {"contextMap":{},"wait":0}
2019-03-21 13:38:11,950 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (qtp1386767190-21:ctx-b53e717a
ctx-99bc4cad) (logid:9ae60298) Sending cmd to https://192.168.1.20:8250/api/HypervResource/com.cloud.agent.api.ReadyCommand
cmd data:{"contextMap":{},"wait":0}
2019-03-21 13:38:11,975 ERROR [c.c.h.h.r.HypervDirectConnectResource] (qtp1386767190-21:ctx-b53e717a
ctx-99bc4cad) (logid:9ae60298) javax.net.ssl.SSLException: Unrecognized SSL message, plaintext
connection?
2019-03-21 13:38:11,975 DEBUG [c.c.h.h.d.HypervServerDiscoverer] (qtp1386767190-21:ctx-b53e717a
ctx-99bc4cad) (logid:9ae60298) Agent not running, or no route to agent on at http://myhost.domain.com
2019-03-21 13:38:11,975 INFO [c.c.u.e.CSExceptionErrorCode] (qtp1386767190-21:ctx-b53e717a
ctx-99bc4cad) (logid:9ae60298) Could not find exception: com.cloud.exception.DiscoveryException
in error code list for exceptions
2019-03-21 13:38:11,975 WARN [c.c.h.h.d.HypervServerDiscoverer] (qtp1386767190-21:ctx-b53e717a
ctx-99bc4cad) (logid:9ae60298) can't setup agent, due to com.cloud.exception.DiscoveryException:
Agent not running, or no route to agent on at http://myhost.domain.com - Agent not running,
or no route to agent on at http://myhost.domain.com
2019-03-21 13:38:11,975 WARN [c.c.r.ResourceManagerImpl] (qtp1386767190-21:ctx-b53e717a ctx-99bc4cad)
(logid:9ae60298) Unable to find the server resources at http://myhost.domain.com
2019-03-21 13:38:11,975 INFO [c.c.u.e.CSExceptionErrorCode] (qtp1386767190-21:ctx-b53e717a
ctx-99bc4cad) (logid:9ae60298) Could not find exception: com.cloud.exception.DiscoveryException
in error code list for exceptions
2019-03-21 13:38:11,975 WARN [o.a.c.a.c.a.h.AddHostCmd] (qtp1386767190-21:ctx-b53e717a ctx-99bc4cad)
(logid:9ae60298) Exception:
com.cloud.exception.DiscoveryException: Unable to add the host
at com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:820)
at com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:606)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:338)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:197)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
at com.sun.proxy.$Proxy174.discoverHosts(Unknown Source)
at org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:142)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:150)
at com.cloud.api.ApiServer.queueCommand(ApiServer.java:732)
at com.cloud.api.ApiServer.handleRequest(ApiServer.java:556)
at com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:310)
at com.cloud.api.ApiServlet$1.run(ApiServlet.java:130)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:127)
at com.cloud.api.ApiServlet.doPost(ApiServlet.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:706)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:791)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:852)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:535)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:190)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1253)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1155)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:527)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at org.eclipse.jetty.server.Server.handle(Server.java:530)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:347)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:256)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:247)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:140)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:382)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:708)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:626)
at java.lang.Thread.run(Thread.java:748)
2019-03-21 13:38:11,976 INFO [c.c.a.ApiServer] (qtp1386767190-21:ctx-b53e717a ctx-99bc4cad)
(logid:9ae60298) Unable to add the host
2019-03-21 13:38:11,976 DEBUG [c.c.a.ApiServlet] (qtp1386767190-21:ctx-b53e717a ctx-99bc4cad)
(logid:9ae60298) ===END=== 192.168.1.10 -- POST command=addHost&response=json
{code}
Could you please help me? What am I doing wrong?


> Add Hyper-V host to ApacheCloudStack 
> -------------------------------------
>
>                 Key: CLOUDSTACK-10405
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-10405
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: cloudstack-agent
>    Affects Versions: 4.11
>         Environment: Windows Server 2016 Datacenter Hyper-V + ACS 4.11.2.0 (CentOS 6.10)
>            Reporter: Artem Ageev
>            Priority: Major
>              Labels: newbie, windows
>
> Hello!
> I am trying to add Hyper-V (based on Windows Server 2016 Datacenter) host to Apache Cloud
Stack 4.11.2.0 (ACS based on CentOS 6.10). I've builded agent based on project files from
GitHub, installed it on host correctly, applied self-signed certificate. I've done all steps
according official ACS documentation. CloudStack Agent service is running and port 8250 is
reacheable from management server. I've create zones, podes, clusters etc. But I am not able
to add host. Here is error from management log:
> {code:java}
> 2019-03-21 13:38:11,894 DEBUG [c.c.a.ApiServlet] (qtp1386767190-21:ctx-b53e717a) (logid:9ae60298)
===START=== 192.168.1.10 -- POST command=addHost&response=json
> 2019-03-21 13:38:11,897 DEBUG [c.c.a.ApiServer] (qtp1386767190-21:ctx-b53e717a ctx-99bc4cad)
(logid:9ae60298) CIDRs from which account 'Acct[f36d2f08-350b-11e9-879d-564d0001952e-admin]'
is allowed to perform API calls: 0.0.0.0/0,::/0
> 2019-03-21 13:38:11,901 WARN [c.c.a.d.ParamGenericValidationWorker] (qtp1386767190-21:ctx-b53e717a
ctx-99bc4cad) (logid:9ae60298) Received unknown parameters for command addHost. Unknown parameters
: clustertype
> 2019-03-21 13:38:11,910 INFO [c.c.r.ResourceManagerImpl] (qtp1386767190-21:ctx-b53e717a
ctx-99bc4cad) (logid:9ae60298) Trying to add a new host at http://myhost.domain.com in data
center 2
> 2019-03-21 13:38:11,910 INFO [c.c.h.h.d.HypervServerDiscoverer] (qtp1386767190-21:ctx-b53e717a
ctx-99bc4cad) (logid:9ae60298) Discover host. dc(zone): 2, pod: 12, cluster: 3, uri host:
myhost.domain.com
> 2019-03-21 13:38:11,912 INFO [c.c.h.h.d.HypervServerDiscoverer] (qtp1386767190-21:ctx-b53e717a
ctx-99bc4cad) (logid:9ae60298) Creatingcom.cloud.hypervisor.hyperv.resource.HypervDirectConnectResource
HypervDirectConnectResource for zone/pod/cluster 2/12/3
> 2019-03-21 13:38:11,913 DEBUG [c.c.a.r.v.VirtualRoutingResource] (qtp1386767190-21:ctx-b53e717a
ctx-99bc4cad) (logid:9ae60298) The router.aggregation.command.each.timeout in seconds is set
to 600
> 2019-03-21 13:38:11,913 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (qtp1386767190-21:ctx-b53e717a
ctx-99bc4cad) (logid:9ae60298) POST request to https://192.168.1.20:8250/api/HypervResource/com.cloud.agent.api.ReadyCommand
with contents {"contextMap":{},"wait":0}
> 2019-03-21 13:38:11,950 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (qtp1386767190-21:ctx-b53e717a
ctx-99bc4cad) (logid:9ae60298) Sending cmd to https://192.168.1.20:8250/api/HypervResource/com.cloud.agent.api.ReadyCommand
cmd data:{"contextMap":{},"wait":0}
> 2019-03-21 13:38:11,975 ERROR [c.c.h.h.r.HypervDirectConnectResource] (qtp1386767190-21:ctx-b53e717a
ctx-99bc4cad) (logid:9ae60298) javax.net.ssl.SSLException: Unrecognized SSL message, plaintext
connection?
> 2019-03-21 13:38:11,975 DEBUG [c.c.h.h.d.HypervServerDiscoverer] (qtp1386767190-21:ctx-b53e717a
ctx-99bc4cad) (logid:9ae60298) Agent not running, or no route to agent on at http://myhost.domain.com
> 2019-03-21 13:38:11,975 INFO [c.c.u.e.CSExceptionErrorCode] (qtp1386767190-21:ctx-b53e717a
ctx-99bc4cad) (logid:9ae60298) Could not find exception: com.cloud.exception.DiscoveryException
in error code list for exceptions
> 2019-03-21 13:38:11,975 WARN [c.c.h.h.d.HypervServerDiscoverer] (qtp1386767190-21:ctx-b53e717a
ctx-99bc4cad) (logid:9ae60298) can't setup agent, due to com.cloud.exception.DiscoveryException:
Agent not running, or no route to agent on at http://myhost.domain.com - Agent not running,
or no route to agent on at http://myhost.domain.com
> 2019-03-21 13:38:11,975 WARN [c.c.r.ResourceManagerImpl] (qtp1386767190-21:ctx-b53e717a
ctx-99bc4cad) (logid:9ae60298) Unable to find the server resources at http://myhost.domain.com
> 2019-03-21 13:38:11,975 INFO [c.c.u.e.CSExceptionErrorCode] (qtp1386767190-21:ctx-b53e717a
ctx-99bc4cad) (logid:9ae60298) Could not find exception: com.cloud.exception.DiscoveryException
in error code list for exceptions
> 2019-03-21 13:38:11,975 WARN [o.a.c.a.c.a.h.AddHostCmd] (qtp1386767190-21:ctx-b53e717a
ctx-99bc4cad) (logid:9ae60298) Exception:
> com.cloud.exception.DiscoveryException: Unable to add the host
> at com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:820)
> at com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:606)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:338)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:197)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
> at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)
> at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
> at com.sun.proxy.$Proxy174.discoverHosts(Unknown Source)
> at org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:142)
> at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:150)
> at com.cloud.api.ApiServer.queueCommand(ApiServer.java:732)
> at com.cloud.api.ApiServer.handleRequest(ApiServer.java:556)
> at com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:310)
> at com.cloud.api.ApiServlet$1.run(ApiServlet.java:130)
> at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
> at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
> at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
> at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:127)
> at com.cloud.api.ApiServlet.doPost(ApiServlet.java:94)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:706)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:791)
> at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:852)
> at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:535)
> at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
> at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
> at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
> at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:190)
> at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)
> at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188)
> at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1253)
> at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168)
> at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)
> at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)
> at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166)
> at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1155)
> at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
> at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:527)
> at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)
> at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
> at org.eclipse.jetty.server.Server.handle(Server.java:530)
> at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:347)
> at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:256)
> at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
> at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)
> at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)
> at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:247)
> at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:140)
> at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
> at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:382)
> at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:708)
> at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:626)
> at java.lang.Thread.run(Thread.java:748)
> 2019-03-21 13:38:11,976 INFO [c.c.a.ApiServer] (qtp1386767190-21:ctx-b53e717a ctx-99bc4cad)
(logid:9ae60298) Unable to add the host
> 2019-03-21 13:38:11,976 DEBUG [c.c.a.ApiServlet] (qtp1386767190-21:ctx-b53e717a ctx-99bc4cad)
(logid:9ae60298) ===END=== 192.168.1.10 -- POST command=addHost&response=json
> {code}
> Could you please help me? What am I doing wrong?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message