Sailaja Mada created CLOUDSTACK-3266:
----------------------------------------
Summary: 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
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