You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "manasaveloori (JIRA)" <ji...@apache.org> on 2014/04/24 08:04:14 UTC

[jira] [Comment Edited] (CLOUDSTACK-6482) [API-LoadBalancing]Passing invalid vm name and vmip to assignToLoadBalancerRule API is not giving proper error message in response.

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-6482?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13979324#comment-13979324 ] 

manasaveloori edited comment on CLOUDSTACK-6482 at 4/24/14 6:03 AM:
--------------------------------------------------------------------

proper error message is not displayed if already assigned ip is passed in vmidipmap using API.
API for removing non existent/invalid  IP from LB rule is not giving proper Error message

http://10.147.59.222:8096/client/api?command=removeFromLoadBalancerRule&id=affdd17c-1aa2-48fc-b518-9a0766773d55&vmidipmap[0].vmid=e59de8ab-7ed5-4432-8838-ac64600323dd&vmidipmap[0].vmip=10.1.1....  

response:
<removefromloadbalancerruleresponse cloud-stack-version="4.4.0-SNAPSHOT">
<jobid>1fd0ec23-2979-43cc-83ca-fa3e714cb589</jobid>
</removefromloadbalancerruleresponse>


was (Author: t_manasave):
proper error message is not displayed if already assigned ip is passed in vmidipmap using API.

> [API-LoadBalancing]Passing invalid vm name and vmip to assignToLoadBalancerRule API is not giving proper error message in response.
> -----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-6482
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6482
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: API
>    Affects Versions: 4.4.0
>            Reporter: manasaveloori
>             Fix For: 4.4.0
>
>
> 1. Configure the LB rule.
> 2. Assign a VM to the LB rule by providing invalid VM name or invalid VMid.
> API:
> http://10.147.59.222:8096/client/api?command=assignToLoadBalancerRule&id=3&vmidipmap[0].vmid=e59de8ab-7ed5-4432-8838-ac600323dd&vmidipmap[0].vmip=10.1.....1.247 
> Response:
> <assigntoloadbalancerruleresponse cloud-stack-version="4.4.0-SNAPSHOT">
> <jobid>683e99a1-8ce2-47be-93f6-a11e18685910</jobid>
> </assigntoloadbalancerruleresponse>
> Observation:
> API does not proper error message to user.
> In MS logs able to proper message:
> com.cloud.exception.InvalidParameterValueException: Invalid ip address 10.1.1..9 passed in vmidipmap for vmid e59de8ab-7ed5-4432-8838-ac64600323dd



--
This message was sent by Atlassian JIRA
(v6.2#6252)