incubator-cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edison Su <Edison...@citrix.com>
Subject RE: Cannot Find Template Adapter Error - registerTemplate API returns error "Cannot find template adapter for XenServer"
Date Wed, 24 Oct 2012 23:01:39 GMT
Please checkout the latest code, it should be fixed.

> -----Original Message-----
> From: Jessica Wang
> Sent: Wednesday, October 24, 2012 10:44 AM
> To: Edison Su; jburwell@basho.com
> Cc: cloudstack-dev@incubator.apache.org
> Subject: RE: Cannot Find Template Adapter Error - registerTemplate API
> returns error "Cannot find template adapter for XenServer"
> 
> I'm using real XenServer instead of DevCloud, but I encountered the
> same error when trying to register template:
> 
> http://localhost:8080/client/api?command=registerTemplate&response=json
> &sessionkey=jFnBsQ%2BCaoow57qABLd%2BhDXjQ5w%3D&name=templateAAA&display
> Text=templateAAADesc&url=http%3A%2F%2Fnfs1.lab.vmops.com%2Ftemplates%2F
> Windows2008%2FWindows2008R2PV.vhd&zoneid=-
> 1&format=VHD&isextractable=false&passwordEnabled=false&osTypeId=0ab05e1
> 2-28c8-40b6-96f7-
> 6d7759043ea1&hypervisor=XenServer&ispublic=false&isfeatured=false&_=135
> 1100358415
> {
>     "registertemplateresponse": {
>         "uuidList": [],
>         "errorcode": 530,
>         "errortext": "Cannot find template adapter for XenServer"
>     }
> }
> 
> 
> 
> 
> My vmops.log:
> 
> 2012-10-24 10:39:12,520 DEBUG
> [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null) Zone
> 1 is ready to launch console proxy
> 2012-10-24 10:39:14,922 DEBUG
> [network.router.VirtualNetworkApplianceManagerImpl]
> (RouterStatusMonitor-1:null) Found 1 routers.
> 2012-10-24 10:39:18,579 ERROR [cloud.api.ApiDispatcher] (catalina-exec-
> 15:null) Exception while executing RegisterTemplateCmd:
> com.cloud.utils.exception.CloudRuntimeException: Cannot find template
> adapter for XenServer
> 	at
> com.cloud.template.TemplateManagerImpl.getAdapter(TemplateManagerImpl.j
> ava:221)
> 	at
> com.cloud.template.TemplateManagerImpl.registerTemplate(TemplateManager
> Impl.java:250)
> 	at
> com.cloud.event.ActionEventCallback.intercept(ActionEventCallback.java:
> 32)
> 	at
> com.cloud.api.commands.RegisterTemplateCmd.execute(RegisterTemplateCmd.
> java:222)
> 	at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:263)
> 	at com.cloud.api.ApiServer.queueCommand(ApiServer.java:535)
> 	at com.cloud.api.ApiServer.handleRequest(ApiServer.java:419)
> 	at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:300)
> 	at com.cloud.api.ApiServlet.doGet(ApiServlet.java:59)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
> 	at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
> ationFilterChain.java:290)
> 	at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
> terChain.java:206)
> 	at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
> ve.java:233)
> 	at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal
> ve.java:191)
> 	at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav
> a:128)
> 	at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav
> a:102)
> 	at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:56
> 8)
> 	at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve
> .java:109)
> 	at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
> 286)
> 	at
> org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.
> java:880)
> 	at
> org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.proc
> ess(Http11NioProtocol.java:719)
> 	at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.
> java:2081)
> 	at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecut
> or.java:886)
> 	at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.j
> ava:908)
> 	at java.lang.Thread.run(Thread.java:619)
> 2012-10-24 10:39:22,579 DEBUG [agent.manager.AgentManagerImpl]
> (AgentManager-Handler-1:null) Ping from 4
> 2012-10-24 10:39:22,625 DEBUG [agent.manager.AgentManagerImpl]
> (AgentManager-Handler-2:null) Ping from 3
> 2012-10-24 10:39:25,341 DEBUG [agent.manager.DirectAgentAttache]
> (DirectAgent-6:null) Ping from 1
> 2012-10-24 10:39:25,804 DEBUG [cloud.server.StatsCollector]
> (StatsCollector-1:null) VmStatsCollector is running...
> 2012-10-24 10:39:25,826 DEBUG [cloud.server.StatsCollector]
> (StatsCollector-3:null) HostStatsCollector is running...
> 
> 
> 
> -----Original Message-----
> From: Edison Su [mailto:Edison.su@citrix.com]
> Sent: Tuesday, October 23, 2012 2:06 PM
> To: cloudstack-dev@incubator.apache.org
> Subject: RE: Cannot Find Template Adapter Error
> 
> TemplateAdapter is injected into mgt server in defaultComponentLibrary-
> >populateAdapters() during mgt server bootstrap, is there any exception
> in the log?
> 
> > -----Original Message-----
> > From: John Burwell [mailto:jburwell@basho.com]
> > Sent: Tuesday, October 23, 2012 1:38 PM
> > To: cloudstack-dev@incubator.apache.org
> > Subject: Cannot Find Template Adapter Error
> >
> > All,
> >
> > I am running a build off the latest master (fetched around 3:30pm EDT)
> > on a devcloud VM.  When I attempt to upload a template or ISO, I
> > receive an error stating that a template adapter can not be found and
> > the following stack trace occurs in the log:
> >
> > com.cloud.utils.exception.CloudRuntimeException: Cannot find template
> > adapter for XenServer
> >         at
> >
> com.cloud.template.TemplateManagerImpl.getAdapter(TemplateManagerImpl.j
> > ava:263)
> >         at
> >
> com.cloud.template.TemplateManagerImpl.registerTemplate(TemplateManager
> > Impl.java:296)
> >         at
> >
> com.cloud.event.ActionEventCallback.intercept(ActionEventCallback.java:
> > 36)
> >         at
> >
> com.cloud.api.commands.RegisterTemplateCmd.execute(RegisterTemplateCmd.
> > java:226)
> >         at
> com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:167)
> >         at com.cloud.api.ApiServer.queueCommand(ApiServer.java:539)
> >         at com.cloud.api.ApiServer.handleRequest(ApiServer.java:423)
> >         at
> com.cloud.api.ApiServlet.processRequest(ApiServlet.java:304)
> >         at com.cloud.api.ApiServlet.doGet(ApiServlet.java:63)
> >         at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> >         at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> >         at
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
> > ationFilterChain.java:290)
> >         at
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
> > terChain.java:206)
> >         at
> >
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
> > ve.java:233)
> >         at
> >
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal
> > ve.java:191)
> >         at
> >
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav
> > a:127)
> >         at
> >
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav
> > a:102)
> >         at
> >
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:55
> > 4)
> >         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.proc
> > ess(Http11NioProtocol.java:732)
> >         at
> >
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.
> > java:2262)
> >         at
> >
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.ja
> > va:1110)
> >         at
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.j
> > ava:603)
> >         at java.lang.Thread.run(Thread.java:679)
> >
> > I attached a remote debugger, and the TemplateManagerImpl::_adapters
> is
> > non-null and empty when this error occurs.
> >
> > Thank you for your assistance,
> > -John
> >
> > -----
> > John Burwell
> > Consulting Engineer
> > Basho Technologies

Mime
View raw message