I cannot reproduce this using latest 4.2. Updated the bug with details of tests.

Is this only seen when using automation tests?

Prachi

From: Girish Shilamkar [mailto:gir...@clogeny.com]
Sent: Monday, July 29, 2013 12:04 AM
To: dev@cloudstack.apache.org; Prachi Damle
Cc: Prasanna Santhanam
Subject: Create Affinity Group API

Hello,

While testing Affinity Groups feature I found that createAffinityGroups API 
does not return "id" in response.

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"}
 }

I have filed a defect for it.  
https://issues.apache.org/jira/browse/CLOUDSTACK-3889

Regards,
Girish

Reply via email to