kiranchavala opened a new issue, #11293:
URL: https://github.com/apache/cloudstack/issues/11293

   ### problem
   
   Getting NPE when performing Unmanage Cluster 
   
   ### versions
   
   ACS 4.19 and 4.20 
   
   ### The steps to reproduce the bug
   
   1.  Navigate to cluster and Unmanage a cluster 
   
   2. Exception observed 
   
   <img width="1152" height="564" alt="Image" 
src="https://github.com/user-attachments/assets/4bcc131d-96cf-4e4d-a3ee-5bf1556f3283";
 />
   
   3. Execute the API also 
   
   (admin) 🐱 > update cluster managedstate=Unmanaged 
id=f16d90eb-c351-40d0-9400-bb68baf896a2
   🙈 Error: (HTTP 530, error code 9999) current thread is not owner
   
   
   Logs 
   
   ```
   2025-07-25 07:26:38,088 ERROR [c.c.a.ApiServer] 
(qtp253011924-19:[ctx-813f8f25, ctx-7b32b728]) (logid:4995b315) unhandled 
exception executing api command: [Ljava.lang.String;@ef7f0ca 
java.lang.IllegalMonitorStateException: current thread is not owner
           at java.base/java.lang.Object.wait(Native Method)
           at 
com.cloud.resource.ResourceManagerImpl.updateCluster(ResourceManagerImpl.java:1262)
           at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
           at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.base/java.lang.reflect.Method.invoke(Method.java:569)
           at 
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
           at 
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
           at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
           at 
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)
           at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
           at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:215)
           at jdk.proxy3/jdk.proxy3.$Proxy229.updateCluster(Unknown Source)
           at 
org.apache.cloudstack.api.command.admin.cluster.UpdateClusterCmd.execute(UpdateClusterCmd.java:131)
           at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:173)
           at com.cloud.api.ApiServer.queueCommand(ApiServer.java:854)
           at com.cloud.api.ApiServer.handleRequest(ApiServer.java:668)
           at 
com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:416)
   
   ```
   
   
   
   
   ### What to do about it?
   
   There should be no exception when user perform unmnage cluster 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to