You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Sateesh Chodapuneedi <sa...@citrix.com> on 2013/05/02 15:59:33 UTC

Optional parameters of addCluster API

addCluster API specification says url, username & password as optional parameters.
Any reason why these 3 parameters are not required? Specific hypervisor specific discover uses these parameters to connect & discover the resources further.
Can these be made required parameters?

--snip--
    @Parameter(name=ApiConstants.PASSWORD, type=CommandType.STRING, required=false, description="the password for the host")
    private String password;

    @Parameter(name=ApiConstants.URL, type=CommandType.STRING, required=false, description="the URL")
    private String url;

    @Parameter(name=ApiConstants.USERNAME, type=CommandType.STRING, required=false, description="the username for the cluster")
    private String username;
--snip-

Regards,
Sateesh


Re: Optional parameters of addCluster API

Posted by Chiradeep Vittal <Ch...@citrix.com>.
The cluster for KVM hypervisors is not a real cluster managed by another
virtualization manager (as in VMWare).

On 5/2/13 9:09 AM, "Chip Childers" <ch...@sungard.com> wrote:

>On Thu, May 02, 2013 at 01:59:33PM +0000, Sateesh Chodapuneedi wrote:
>> addCluster API specification says url, username & password as optional
>>parameters.
>> Any reason why these 3 parameters are not required? Specific hypervisor
>>specific discover uses these parameters to connect & discover the
>>resources further.
>> Can these be made required parameters?
>> 
>> --snip--
>>     @Parameter(name=ApiConstants.PASSWORD, type=CommandType.STRING,
>>required=false, description="the password for the host")
>>     private String password;
>> 
>>     @Parameter(name=ApiConstants.URL, type=CommandType.STRING,
>>required=false, description="the URL")
>>     private String url;
>> 
>>     @Parameter(name=ApiConstants.USERNAME, type=CommandType.STRING,
>>required=false, description="the username for the cluster")
>>     private String username;
>> --snip-
>> 
>> Regards,
>> Sateesh
>>
>
>What about a bare-metal environment?  It seems like they should remain
>optional.
>
>Also, technically, making that change would break API compatibility
>causing a 4.x to 5.x bump.  Is it worth it?


Re: Optional parameters of addCluster API

Posted by Chip Childers <ch...@sungard.com>.
On Thu, May 02, 2013 at 01:59:33PM +0000, Sateesh Chodapuneedi wrote:
> addCluster API specification says url, username & password as optional parameters.
> Any reason why these 3 parameters are not required? Specific hypervisor specific discover uses these parameters to connect & discover the resources further.
> Can these be made required parameters?
> 
> --snip--
>     @Parameter(name=ApiConstants.PASSWORD, type=CommandType.STRING, required=false, description="the password for the host")
>     private String password;
> 
>     @Parameter(name=ApiConstants.URL, type=CommandType.STRING, required=false, description="the URL")
>     private String url;
> 
>     @Parameter(name=ApiConstants.USERNAME, type=CommandType.STRING, required=false, description="the username for the cluster")
>     private String username;
> --snip-
> 
> Regards,
> Sateesh
>

What about a bare-metal environment?  It seems like they should remain
optional.

Also, technically, making that change would break API compatibility
causing a 4.x to 5.x bump.  Is it worth it?