You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Prachi Damle (JIRA)" <ji...@apache.org> on 2013/07/17 01:36:48 UTC

[jira] [Commented] (CLOUDSTACK-3266) Failed to delete Anti affinitygroup for the first time

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

Prachi Damle commented on CLOUDSTACK-3266:
------------------------------------------

This is a UI bug.

Tested out the given steps and I could reproduce this issue. I created an affinity group and then tried to delete it from the 'QuickView' option. The delete option is not passing the affinity group id to the API call.

http://localhost:8080/client/api?command=deleteAffinityGroup&response=json&sessionkey=AUMScYpq1%2B2bmwt7s22trloFwHQ%3D&_=1374017619056
                
> Failed to delete Anti affinitygroup for the first time 
> -------------------------------------------------------
>
>                 Key: CLOUDSTACK-3266
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3266
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Management Server
>    Affects Versions: 4.2.0
>            Reporter: Sailaja Mada
>         Attachments: apilog.log, deleteAntiAff.png, management-server.log
>
>
> Setup : Advanced Networking Zone  - VMWARE
> Steps:
> 1. Have one instance deployed  with enw user account 
> 2. later create Anti affinitygroup 1
> 3. Tried to delete it from  UI 
> It failed saying: 
> 2013-06-28 14:37:18,594 DEBUG [cloud.api.ApiServlet] (catalina-exec-19:null) ===END===  10.144.6.19 -- GET  command=deleteAffinityGroup&response=json&sessionkey=cAlesfWeL1LC7v5VBrAi%2B%2FiRJ%2F8%3D&_=1372410634034
> 2013-06-28 14:37:18,595 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-113:job-91) Executing org.apache.cloudstack.api.command.user.affinitygroup.DeleteAffinityGroupCmd for job-91
> 2013-06-28 14:37:18,620 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-113:job-91) Unexpected exception while executing org.apache.cloudstack.api.command.user.affinitygroup.DeleteAffinityGroupCmd
> com.cloud.exception.InvalidParameterValueException: Either the affinity group Id or group name must be specified to delete the group
>         at org.apache.cloudstack.affinity.AffinityGroupServiceImpl.deleteAffinityGroup(AffinityGroupServiceImpl.java:147)
>         at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
>         at org.apache.cloudstack.api.command.user.affinitygroup.DeleteAffinityGroupCmd.execute(DeleteAffinityGroupCmd.java:125)
>         at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:155)
>         at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:437)
>         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>         at java.lang.Thread.run(Thread.java:679)
> 2013-06-28 14:37:18,620 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-113:job-91) Complete async job-91, jobStatus: 2, resultCode: 530, result: Error Code: 530 Error text: Either the affinity group Id or group name must be specified to delete the group
> 5. Again tried deleting the second group.
> Then it deleted the group. (Attached UI and logs)

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