cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajesh Battala <rajesh.batt...@citrix.com>
Subject RE: Error : Unknown API command: for my commands.
Date Thu, 14 Feb 2013 15:59:59 GMT
I have added my commands createLBHealthCheckPolicy and related commands in managementserverimpl
class. Now am not getting error. 
But before javelin I didn't add it.  I was using annotation @APICommand and specified in command.properties

Thanks
Rajesh Battala

> -----Original Message-----
> From: Mice Xia [mailto:weiran.xia1@gmail.com]
> Sent: Thursday, February 14, 2013 8:02 PM
> To: cloudstack-dev@incubator.apache.org
> Subject: Re: Error : Unknown API command: for my commands.
> 
> 2. Mechanism for discovery of APIs is through PluggableServices: Check that
> your plugin implements this and getCommands() return list of cmd classes
> supported by that plugin. This applies for ManagementServerImpl as well which
> is a pluggableservice, add you api cmd class in the cmdList of getCommands() (if
> it has to be part of CloudStack's api).
> 
> You need to add the new cmd in ManagementServerImpl.getCommands() or
> your impl of pluggableservice.
> 
> Mice
> 
> 
> 
> > Hi All,
> >
> > I had added few API commands, createLBHealthCheckPolicy,
> listLBHealthCheckspolicies etc.
> > I have added @APICommand to the command java files. I had added the
> commands to command.properties files also.
> > The commands are in the package
> > org.apache.cloudstack.api.command.user.loadbalancer;
> >
> >
> > Before Javelin merge commands are working well, after rebasing with latest
> master with javelin merge am getting the error.
> > { "errorresponse" :
> > {"errorcode":432,"cserrorcode":9999,"errortext":"Unknown API command:
> > createLBHealthCheckPolicy"} }
> >
> > When ApiServer got initialized, this map object _apiNameCmdClassMap don't
> have my command class map.
> >
> > Am I missing to add my commands in any other config files?
> >
> > Thanks
> > Rajesh Battala

Mime
View raw message