[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-6482?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jayapal Reddy resolved CLOUDSTACK-6482.
---------------------------------------

    Resolution: Invalid

When API is called from the browser we will get the job id.
If you query the job id then you will get the status and error msg.

Please find error msgs in the cloudmonkey:

> assign toloadbalancerrule id=47e7feaa-0da4-4702-b5cf-9a1abc7af1af 
> vmidipmap[0].vmid=5c42e176-8a8a-497c-9b06-703753d7412a 
> vmidipmap[0].vmip=10.1.1.200
.Async job a6850da3-81ca-4abc-b080-4c0e6200fb52 failed
Error 530, Unable to find virtual machine ID: 
5c42e176-8a8a-497c-9b06-703753d7412a
accountid = 7aa83f72-da5c-11e3-80cb-b51f7904a635
cmd = 
org.apache.cloudstack.api.command.user.loadbalancer.AssignToLoadBalancerRuleCmd
created = 2014-05-13T11:55:44+0530
jobid = a6850da3-81ca-4abc-b080-4c0e6200fb52
jobprocstatus = 0
jobresult:
errorcode = 530
errortext = Unable to find virtual machine ID: 
5c42e176-8a8a-497c-9b06-703753d7412a
jobresultcode = 530
jobresulttype = object
jobstatus = 2
userid = 7aa86196-da5c-11e3-80cb-b51f7904a635

> assign toloadbalancerrule id=47e7feaa-0da4-4702-b5cf-9a1abc7af1af 
> vmidipmap[0].vmid=5c42e176-8a8a-497c-9b06-703753d7412b 
> vmidipmap[0].vmip=10.1.1.200
.Async job 743b9642-c7fc-4434-a515-c7568029596b failed
Error 530, VM ip 10.1.1.200 specified does not belong to nic in network 204
accountid = 7aa83f72-da5c-11e3-80cb-b51f7904a635
cmd = 
org.apache.cloudstack.api.command.user.loadbalancer.AssignToLoadBalancerRuleCmd
created = 2014-05-13T11:57:00+0530
jobid = 743b9642-c7fc-4434-a515-c7568029596b
jobprocstatus = 0
jobresult:
errorcode = 530
errortext = VM ip 10.1.1.200 specified does not belong to nic in network 204
jobresultcode = 530
jobresulttype = object
jobstatus = 2
userid = 7aa86196-da5c-11e3-80cb-b51f7904a635

> [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
>            Assignee: Jayapal Reddy
>             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)

Reply via email to