Hi Ricardo, Was the network tier (of the VPC network) created without associating any ACL. Based on the NPE, it seems like it. This issue doesn't crop up when done via the UI, because creation of network tiers mandates associating an ACL.
Regards, Pearl ________________________________ From: Ricardo Pertuz <[email protected]> Sent: April 15, 2024 2:05 PM To: Vivek Kumar via users <[email protected]> Subject: Null Pointer Exception on Kubernetes Deploy with CloudMonkey Hi Community, When using Cloudmonkey to create a Kubernetes Cluster we are getting a NullPointer Exception Env ***** ACS: 4.19.0.1 Hyp: KVM SO: Ubuntu 20 Logs ***** 2024-04-15 12:55:08,360 ERROR [c.c.a.ApiServer] (qtp931675031-20:ctx-b9ffa6f7 ctx-f16eb6b9 ctx-d99f7c6a) (logid:5accec2e) unhandled exception executing api command: [Ljava.lang.String;@50546e38 java.lang.NullPointerException at com.cloud.kubernetes.cluster.KubernetesClusterManagerImpl.validateVpcTier(KubernetesClusterManagerImpl.java:414) at com.cloud.kubernetes.cluster.KubernetesClusterManagerImpl.validateNetwork(KubernetesClusterManagerImpl.java:438) at com.cloud.kubernetes.cluster.KubernetesClusterManagerImpl.getKubernetesClusterNetworkIfMissing(KubernetesClusterManagerImpl.java:845) at com.cloud.kubernetes.cluster.KubernetesClusterManagerImpl.createManagedKubernetesCluster(KubernetesClusterManagerImpl.java:1221) at org.apache.cloudstack.api.command.user.kubernetes.cluster.CreateKubernetesClusterCmd.create(CreateKubernetesClusterCmd.java:317) at com.cloud.api.dispatch.CommandCreationWorker.handle(CommandCreationWorker.java:47) at com.cloud.api.dispatch.DispatchChain.dispatch(DispatchChain.java:37) at com.cloud.api.ApiDispatcher.dispatchCreateCmd(ApiDispatcher.java:94) at com.cloud.api.ApiServer.queueCommand(ApiServer.java:724) at com.cloud.api.ApiServer.handleRequest(ApiServer.java:624) at com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:342) at com.cloud.api.ApiServlet$1.run(ApiServlet.java:149) at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:55) at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:102) at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:52) at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:146) at com.cloud.api.ApiServlet.doGet(ApiServlet.java:100) at javax.servlet.http.HttpServlet.service(HttpServlet.java:645) at javax.servlet.http.HttpServlet.service(HttpServlet.java:750) at org.eclipse.jetty.servlet.ServletHolder$NotAsync.service(ServletHolder.java:1450) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:554) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:600) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1440) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:505) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1355) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:772) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) at org.eclipse.jetty.server.Server.handle(Server.java:516) at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:487) at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:732) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:479) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105) at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131) at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:409) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883) at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034) at java.base/java.lang.Thread.run(Thread.java:829) Request -------- apiKey=xxxxxxxxxxx command=createKubernetesCluster kubernetesversionid=1736f8b7-65bd-4705-98f1-xxxxxxxxxxx name=smoketest networkid=10701bf3-a422-49dc-92ee-xxxxxxxxxxx projectid=6d8b5ae9-ebb2-4cac-b531-bd0d4aab8bce serviceofferingid=1ab1b2ef-21c3-444c-b16f-xxxxxxxxxxx size=2 zoneid=6d4b1650-357e-4885-9ed3-3a78d8e2a9f4 signature=xxxxxxxxxxx862phto6%2Fqluc%xxxxxxxxxxx Response --------- Error: (HTTP 530, error code 9999) Internal error executing command, please contact your system administrator Any clue? Atte, Ricardo Pertuz
