You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by CK <cl...@gmail.com> on 2013/10/10 19:15:10 UTC

DevCloud with Centos and Xen

Does anyone know if Centos 4.2 running Xen (not xenserver) hypervisor work
with CloudStack 4.2?

I am trying to build a DevCloud on Centos. I have Xen running but when I
try to add the host to cloudstack I get "unable to add host" - the log
shows:

2013-10-10 17:14:26,013 DEBUG [cloud.api.ApiServlet]
(catalina-exec-16:null) ===START===  192.168.2.20 -- POST
 command=addHost&response=json&sessionkey=079lP7s5sEFBEFUlmYP8Pq%2Fq8B4%3D
2013-10-10 17:14:26,081 INFO  [cloud.resource.ResourceManagerImpl]
(catalina-exec-16:null) Trying to add a new host at http://192.168.2.32 in
data center 1
2013-10-10 17:14:26,093 DEBUG [xen.resource.XenServerConnectionPool]
(catalina-exec-16:null) Failed to slave local login to 192.168.2.32 due to
org.apache.xmlrpc.XmlRpcException: Failed to read server's response:
Connection refused
2013-10-10 17:14:26,094 DEBUG [xen.resource.XenServerConnectionPool]
(catalina-exec-16:null) localLogout has problem Failed to read server's
response: Connection refused
2013-10-10 17:14:26,094 DEBUG [xen.discoverer.XcpServerDiscoverer]
(catalina-exec-16:null) other exceptions: java.lang.RuntimeException: can
not get master ip
java.lang.RuntimeException: can not get master ip
        at
com.cloud.hypervisor.xen.resource.XenServerConnectionPool.getMasterIp(XenServerConnectionPool.java:347)
        at
com.cloud.hypervisor.xen.discoverer.XcpServerDiscoverer.find(XcpServerDiscoverer.java:183)
        at
com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:741)
        at
com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:590)
        at
org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:143)
        at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
        at com.cloud.api.ApiServer.queueCommand(ApiServer.java:514)
        at com.cloud.api.ApiServer.handleRequest(ApiServer.java:372)
        at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:305)
        at com.cloud.api.ApiServlet.doPost(ApiServlet.java:71)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at
org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
        at
org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
        at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2274)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:679)
2013-10-10 17:14:26,095 WARN  [cloud.resource.ResourceManagerImpl]
(catalina-exec-16:null) Unable to find the server resources at
http://192.168.2.32
2013-10-10 17:14:26,095 INFO  [utils.exception.CSExceptionErrorCode]
(catalina-exec-16:null) Could not find exception:
com.cloud.exception.DiscoveryException in error code list for exceptions
2013-10-10 17:14:26,096 WARN  [admin.host.AddHostCmd]
(catalina-exec-16:null) Exception:
com.cloud.exception.DiscoveryException: Unable to add the host
        at
com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:798)
        at
com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:590)
        at
org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:143)
        at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
        at com.cloud.api.ApiServer.queueCommand(ApiServer.java:514)
        at com.cloud.api.ApiServer.handleRequest(ApiServer.java:372)
        at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:305)
        at com.cloud.api.ApiServlet.doPost(ApiServlet.java:71)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at
org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
        at
org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
        at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2274)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:679)
2013-10-10 17:14:26,101 INFO  [cloud.api.ApiServer] (catalina-exec-16:null)
Unable to add the host
2013-10-10 17:14:26,115 DEBUG [cloud.api.ApiServlet]
(catalina-exec-16:null) ===END===  192.168.2.20 -- POST
 command=addHost&response=json&sessionkey=079lP7s5sEFBEFUlmYP8Pq%2Fq8B4%3D

Re: DevCloud with Centos and Xen

Posted by CK <cl...@gmail.com>.
For my host, I have Xen(XCP) running on Centos6.4, is there a plugin or
something that I also need to setup/configure on this host for it to be
recoginised by CloudStack 4.2?

At the moment when I try to Add Host it does not find it, what does
cloudstack look for on the host to identify it is a Xen host?


On 10 October 2013 19:35, Travis Graham <tg...@tgraham.us> wrote:

> I have no real idea of how the LXC implementation works, but it's layered
> on top of libvirt and it's KVM/QEMU drivers. Would tapping into libvirt in
> the same way with it's Xen driver be possible?
>
> And I ask that having zero idea of how CS uses QEMU and libvirt to get its
> hooks into KVM or KVM itself or LXC.
>
> Travis
>
> On Oct 10, 2013, at 2:27 PM, David Nalley <da...@gnsa.us> wrote:
>
> > On Thu, Oct 10, 2013 at 1:15 PM, CK <cl...@gmail.com> wrote:
> >> Does anyone know if Centos 4.2 running Xen (not xenserver) hypervisor
> work
> >> with CloudStack 4.2?
> >
> > In a few words; not easily.
> > CloudStack talks to the XenAPI - which CentOS doesn't have by default.
> > There was some work to build XAPI on EL6 with the CentOS + Xen work
> > that was happening, but I don't know where that stands. If you did get
> > XAPI on CentOS, you'd still likely need to fake the version
> > information.
> >
> > --David
>
>

Re: DevCloud with Centos and Xen

Posted by Travis Graham <tg...@tgraham.us>.
I have no real idea of how the LXC implementation works, but it's layered on top of libvirt and it's KVM/QEMU drivers. Would tapping into libvirt in the same way with it's Xen driver be possible?

And I ask that having zero idea of how CS uses QEMU and libvirt to get its hooks into KVM or KVM itself or LXC.

Travis

On Oct 10, 2013, at 2:27 PM, David Nalley <da...@gnsa.us> wrote:

> On Thu, Oct 10, 2013 at 1:15 PM, CK <cl...@gmail.com> wrote:
>> Does anyone know if Centos 4.2 running Xen (not xenserver) hypervisor work
>> with CloudStack 4.2?
> 
> In a few words; not easily.
> CloudStack talks to the XenAPI - which CentOS doesn't have by default.
> There was some work to build XAPI on EL6 with the CentOS + Xen work
> that was happening, but I don't know where that stands. If you did get
> XAPI on CentOS, you'd still likely need to fake the version
> information.
> 
> --David


Re: DevCloud with Centos and Xen

Posted by David Nalley <da...@gnsa.us>.
On Thu, Oct 10, 2013 at 1:15 PM, CK <cl...@gmail.com> wrote:
> Does anyone know if Centos 4.2 running Xen (not xenserver) hypervisor work
> with CloudStack 4.2?

In a few words; not easily.
CloudStack talks to the XenAPI - which CentOS doesn't have by default.
There was some work to build XAPI on EL6 with the CentOS + Xen work
that was happening, but I don't know where that stands. If you did get
XAPI on CentOS, you'd still likely need to fake the version
information.

--David