Skip to content

Getting NPE when unmange cluster is performed #11293

Closed

Description

@kiranchavala

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

Image
  1. 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

Activity

  1. added theissue type on Jul 25, 2025
  2. added a commit that references this issue on Jul 28, 2025
    69c2a7e
  3. added a commit that references this issue on Jul 29, 2025
    4b1a605
  4. sureshanaparti commented on Jul 29, 2025

    @sureshanaparti
    Contributor

    Fixed in #11310

  5. added a commit that references this issue on Aug 6, 2025
    aa88976
  6. added this to the unplanned milestone on Sep 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions