I did those steps:
mkdir -p /root/.ssh
ssh-keygen -A -q

Did you execute them ?
I guess they are needed


2013/9/4 Lisa B. <nordlicht1...@hotmail.de>

> Hey Rafael,
>
> yes, Xen 4.1 + XCP 1.6. The compatibility matrix was slightly confusing,
> but i figured Xenserver 6.1 and XCP 1.6 are basically the same to
> Cloudstack. Right?
>
> I've tried building from source on 13.04 which worked fine for me in the
> beginning, but i decided to go back to 12.04 with packages after i came
> across the compatibility matrix. Just to be sure.
>
> Thank you for the link but I have already followed the instructions
> (overwrite '/usr/lib/xcp/plugins/echo' and make it executable) and echo
> works on the host.
> The only thing else that seemed relevant to my issue was
> mkdir -p /root/.ssh
> ssh-keygen -A -q
> As I have had a different type of connection error before (had to set a
> password for root) and it didn't complain after i set one, i figured SSH
> cannot be the culprit. All the other settings seem to be either developer
> related or otherwise irrelevant. Am I missing something?
>
> What baffles me is that he gave up on 12.04.1 and chose Debian Wheezy
> instead.
>
> One thing I should have mentioned is that i set up OVS instead of bridged
> networking on the host, but I still have xenbr0 on the XCP host and a
> manually started VM runs just fine with it.
>
> When I try to access http://192.168.2.99 (my XCP host os1) Xapi Server
> gives me
> "Not Found
>
> The requested URL / was not found on this server.
> Xapi Server"
> Is this expected behavior? It does not require SSL, does it?
>
>
>
> Lisa
> Any of you guys in Amsterdam in November?
>
> ----------------------------------------
> > Date: Wed, 4 Sep 2013 10:37:41 -0300
> > Subject: Re: echo test failed, plugin error, failed to add host
> > From: rafaelweingart...@gmail.com
> > To: users@cloudstack.apache.org
> >
> > are you using Xen with XCP?
> > if so, here is the bug report and a workaround:
> > https://issues.apache.org/jira/browse/CLOUDSTACK-534
> >
> >
> > 2013/9/4 Lisa B. <nordlicht1...@hotmail.de>
> >
> >> hey,
> >>
> >> i get these errors on cloudstack 4.1.1 while trying to add the XCP 1.6
> >> ubuntu host.
> >> i might have made a mistake on the network setup. but where do i start?
> >>
> >> more information and error log below.
> >>
> >> have a nice day & thanks for reading
> >> lisa
> >>
> >> &zone
> >> & name: cloudstack1
> >> & externer dns: 192.168.2.1
> >> & interner dns: 192.168.2.1
> >> &pod
> >> & name: cloudstack1-pod1
> >> & gateway: 192.168.2.1
> >> & netzmaske: 255.255.255.0
> >> & ip-bereich:192.168.2.50-192.168.2.100
> >> &add guest network
> >> & gateway: 192.168.3.1
> >> & netzmaske: 255.255.255.0
> >> & ip bereich:192.168.3.151-192.168.3.190
> >> &cluster hinzufügen
> >> & hypervisor: xenserver
> >> & name: cloudstack1-pod1-cluster1
> >> &host hinzufügen
> >> & host name: 192.168.2.99
> >> & benutzername: root
> >> & passwort: ***
> >> & auf 192.168.2.99 sudo passwd root ausführen, sonst kann cloudstack
> sich
> >> nicht verbinden
> >> &primary storage hinzufügen
> >> & name: mgmnfs
> >> & protokoll: nfs
> >> & server:mgm.***.com
> >> & path: /export/primary
> >> &Sekundärspeicher hinzufügen
> >> & nfs server: mgm.***.com / 192.168.2.50
> >> & path: /export/secondary
> >>
> >> '/usr/lib/xcp/plugins/echo' works via command line on the host and i
> made
> >> sure it looks like this:
> >>
> >> &!/usr/bin/env python
> >>
> >> & Simple XenAPI plugin
> >> import XenAPIPlugin, time
> >>
> >> def main(session, args):
> >> if args.has_key("sleep"):
> >> secs = int(args["sleep"])
> >> time.sleep(secs)
> >> return "args were: %s" % (repr(args))
> >>
> >> if __name__ == "__main__":
> >> XenAPIPlugin.dispatch({"main": main})
> >>
> >>
> >>
> >> 2013-09-02 03:42:48,838 DEBUG [cloud.api.ApiServlet]
> >> (catalina-exec-16:null) ===START=== 192.168.2.101 -- POST
> >>
> command=addHost&response=json&sessionkey=7DUTpl9gctKWi%2FlCY4EjMbYbrcM%3D
> >> 2013-09-02 03:42:48,849 INFO [cloud.resource.ResourceManagerImpl]
> >> (catalina-exec-16:null) Trying to add a new host at
> http://192.168.2.99in data center 1
> >> 2013-09-02 03:42:48,868 DEBUG [xen.resource.XenServerConnectionPool]
> >> (catalina-exec-16:null) Slave logon to 192.168.2.99
> >> 2013-09-02 03:42:48,881 DEBUG [xen.resource.XenServerConnectionPool]
> >> (catalina-exec-16:null) Logging on as the master to 192.168.2.99
> >> 2013-09-02 03:42:48,954 INFO [xen.discoverer.XcpServerDiscoverer]
> >> (catalina-exec-16:null) Found host os1 ip=192.168.2.99 product
> version=1.6.0
> >> 2013-09-02 03:42:49,023 WARN [xen.resource.XenServerConnectionPool]
> >> (catalina-exec-16:null) Echo test failed on host
> >> 61d0f66b-044e-37f1-effa-d7f09ec29946 IP 192.168.2.99
> >> There was a failure communicating with the plugin.
> >> at com.xensource.xenapi.Types.checkResponse(Types.java:1294)
> >> at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
> >> at
> >>
> com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnection.dispatch(XenServerConnectionPool.java:909)
> >> at com.xensource.xenapi.Host.callPlugin(Host.java:2560)
> >> at
> >>
> com.cloud.hypervisor.xen.resource.XenServerConnectionPool.connect(XenServerConnectionPool.java:643)
> >> at
> >>
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.getConnection(CitrixResourceBase.java:5384)
> >> at
> >>
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.initialize(CitrixResourceBase.java:4495)
> >> at
> >>
> com.cloud.resource.ResourceManagerImpl.createHostAndAgentDeferred(ResourceManagerImpl.java:1981)
> >> at
> >>
> com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:845)
> >> at
> >>
> com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:619)
> >> at
> >>
> org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:143)
> >> at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:162)
> >> at com.cloud.api.ApiServer.queueCommand(ApiServer.java:505)
> >> at com.cloud.api.ApiServer.handleRequest(ApiServer.java:355)
> >> at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:302)
> >> 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:615)
> >> at
> >>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> >> at
> >>
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
> >> at
> >>
> org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
> >> at
> >>
> org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:744)
> >> at
> >>
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2282)
> >> 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-09-02 03:42:49,024 WARN [cloud.resource.ResourceManagerImpl]
> >> (catalina-exec-16:null) Unable to connect due to
> >> com.cloud.utils.exception.CloudRuntimeException: Echo test failed on
> host
> >> 61d0f66b-044e-37f1-effa-d7f09ec29946 IP 192.168.2.99
> >> at
> >>
> com.cloud.hypervisor.xen.resource.XenServerConnectionPool.connect(XenServerConnectionPool.java:671)
> >> at
> >>
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.getConnection(CitrixResourceBase.java:5384)
> >> at
> >>
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.initialize(CitrixResourceBase.java:4495)
> >> at
> >>
> com.cloud.resource.ResourceManagerImpl.createHostAndAgentDeferred(ResourceManagerImpl.java:1981)
> >> at
> >>
> com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:845)
> >> at
> >>
> com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:619)
> >> at
> >>
> org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:143)
> >> at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:162)
> >> at com.cloud.api.ApiServer.queueCommand(ApiServer.java:505)
> >> at com.cloud.api.ApiServer.handleRequest(ApiServer.java:355)
> >> at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:302)
> >> 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:615)
> >> at
> >>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> >> at
> >>
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
> >> at
> >>
> org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
> >> at
> >>
> org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:744)
> >> at
> >>
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2282)
> >> 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)
> >> Caused by: There was a failure communicating with the plugin.
> >> at com.xensource.xenapi.Types.checkResponse(Types.java:1294)
> >> at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
> >> at
> >>
> com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnection.dispatch(XenServerConnectionPool.java:909)
> >> at com.xensource.xenapi.Host.callPlugin(Host.java:2560)
> >> at
> >>
> com.cloud.hypervisor.xen.resource.XenServerConnectionPool.connect(XenServerConnectionPool.java:643)
> >> ... 28 more
> >> 2013-09-02 03:42:49,025 INFO [cloud.resource.ResourceManagerImpl]
> >> (catalina-exec-16:null) server resources successfully discovered by XCP
> >> Agent
> >> 2013-09-02 03:42:49,025 INFO [cloud.api.ApiServer]
> (catalina-exec-16:null)
> >> Failed to add host
> >> 2013-09-02 03:42:49,025 DEBUG [cloud.api.ApiServlet]
> >> (catalina-exec-16:null) ===END=== 192.168.2.101 -- POST
> >>
> command=addHost&response=json&sessionkey=7DUTpl9gctKWi%2FlCY4EjMbYbrcM%3D
> >> 2013-09-02 03:42:49,151 DEBUG
> >> [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null)
> Zone 1
> >> is not ready to launch secondary storage VM yet
> >> 2013-09-02 03:42:49,734 DEBUG
> [cloud.consoleproxy.ConsoleProxyManagerImpl]
> >> (consoleproxy-1:null) Skip capacity scan due to there is no Primary
> Storage
> >> UPintenance mode
> >> 2013-09-02 03:42:50,157 DEBUG
> >> [network.router.VirtualNetworkApplianceManagerImpl]
> >> (RouterStatusMonitor-1:null) Found 0 routers to update status.
> >> 2013-09-02 03:42:50,158 DEBUG
> >> [network.router.VirtualNetworkApplianceManagerImpl]
> >> (RouterStatusMonitor-1:null) Found 0 networks to update RvR status.
> >> 2013-09-02 03:42:50,186 DEBUG
> >> [network.router.VirtualNetworkApplianceManagerImpl]
> >> (RouterStatusMonitor-1:null) Found 0 routers to update status.
> >> 2013-09-02 03:42:50,187 DEBUG
> >> [network.router.VirtualNetworkApplianceManagerImpl]
> >> (RouterStatusMonitor-1:null) Found 0 networks to update RvR status.
> >>
> >
> >
> >
> >
> > --
> > Rafael Weingartner
>



-- 
Rafael Weingartner

Reply via email to