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

Prachi Damle commented on CLOUDSTACK-3889:
------------------------------------------

Nope, not reproducible with latest 4.2 as well.


GET 
http://localhost:8080/client/api?command=createA...=test565&type=host+anti-affinity&_=1375121529364

{ "createaffinitygroupresponse" : 
{"id":"fcc13e80-06ca-4dc3-b6a9-203cdada76de","jobid":"7ee6458a-f259-4e79-b3d5-0a09fe52e328"}
 }

GET 
http://localhost:8080/client/api?command=queryAs...rNnRLesnFntxkFD%2F4KkI96r391Y%3D&_=1375121532683
        
{ "queryasyncjobresultresponse" : 
{"accountid":"15c22f41-b47e-468d-8ce4-87ec75209623","userid":"df7c5340-b57c-4b05-a3da-cd5557c68b21","cmd":"org.apache.cloudstack.api.command.user.affinitygroup.CreateAffinityGroupCmd","jobstatus":1,"jobprocstatus":0,"jobresultcode":0,"jobresulttype":"object","jobresult":{"affinitygroup":{"id":"fcc13e80-06ca-4dc3-b6a9-203cdada76de","name":"test565","account":"useracct","domainid":"59ba909d-ea58-11e2-ab2c-803aa382a2a4","domain":"ROOT","type":"host
 
anti-affinity"}},"created":"2013-07-29T11:12:09-0700","jobid":"7ee6458a-f259-4e79-b3d5-0a09fe52e328"}
 }
                
> createAffinityGroup API does not return "id" in response.
> ---------------------------------------------------------
>
>                 Key: CLOUDSTACK-3889
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3889
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: API, Automation
>    Affects Versions: 4.2.0
>            Reporter: Girish Shilamkar
>            Assignee: Prachi Damle
>            Priority: Critical
>             Fix For: 4.2.0
>
>
> While making changes to affinity groups testcases, found that 
> createAffinityGroups API does not return id. 
> 2013-07-29 12:17:16,641 INFO  [cloud.api.ApiServer] (catalina-exec-24:null) 
> (userId=2 accountId=2 sessionId=72E8E1EE5D2EC61E90BE7F944D3EA4FC) 
> 192.168.100.53 -- GET 
> command=createAffinityGroup&response=json&sessionkey=Hdq5ogh%2Fc2A5PXXrJDNd2SkwBvU%3D&name=Test_g&type=host+anti-affinity&_=1375080436560
>  200 { "createaffinitygroupresponse" : 
> {"id":"366e51ce-ce6d-41d9-9ea1-dfd932962bdc","jobid":"fba998cc-9285-421b-9a57-8fd3f9fae7a4"}
>  }
> 2013-07-29 12:17:19,668 INFO  [cloud.api.ApiServer] (catalina-exec-21:null) 
> (userId=2 accountId=2 sessionId=72E8E1EE5D2EC61E90BE7F944D3EA4FC) 
> 192.168.100.53 -- GET 
> command=queryAsyncJobResult&jobId=fba998cc-9285-421b-9a57-8fd3f9fae7a4&response=json&sessionkey=Hdq5ogh%2Fc2A5PXXrJDNd2SkwBvU%3D&_=1375080439598
>  200 { "queryasyncjobresultresponse" : 
> {"accountid":"4bc23192-f4f5-11e2-bf57-005056860002","userid":"4bc28d0e-f4f5-11e2-bf57-005056860002","cmd":"org.apache.cloudstack.api.command.user.affinitygroup.CreateAffinityGroupCmd","jobstatus":1,"jobprocstatus":0,"jobresultcode":0,"jobresulttype":"object","jobresult":{"affinitygroup":{"name":"Test_g","account":"admin","domainid":"3d051818-f4f5-11e2-bf57-005056860002","domain":"ROOT","type":"host
>  
> anti-affinity"}},"created":"2013-07-29T12:17:16+0530","jobid":"fba998cc-9285-421b-9a57-8fd3f9fae7a4"}
>  }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to