You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by "rohityadavcloud (via GitHub)" <gi...@apache.org> on 2025/08/11 06:41:51 UTC

[I] Unable to deploy zone with mbx/ACS 4.21 RC2 [cloudstack]

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

   ### problem
   
   On mbx launch, the zone deployment fails when trying to add host with:
   ```
   2025-08-11 06:36:51,249 DEBUG [c.c.u.s.SSHCmdHelper] (ApiServer-10:[ctx-02b4a502, ctx-4d6f0914]) (logid:a7d01871) Executing cmd: sudo /usr/share/cloudstack-common/scripts/util/keystore-setup /etc/cloudstack/agent/agent.properties /etc/cloudstack/agent/
   ...
   2025-08-11 06:36:53,047 DEBUG [c.c.u.s.SSHCmdHelper] (ApiServer-10:[ctx-02b4a502, ctx-4d6f0914]) (logid:a7d01871) SSH command: sudo /usr/share/cloudstack-common/scripts/util/keystore-setup /etc/cloudstack/agent/agent.properties /etc/cloudstack/agent/
   ...
   2025-08-11 06:36:53,126 WARN  [c.c.h.k.d.KvmServerDiscoverer] (ApiServer-10:[ctx-02b4a502, ctx-4d6f0914]) (logid:a7d01871)  can't setup agent, due to java.lang.NullPointerException: Cannot invoke "java.security.KeyPair.getPrivate()" because "caKeyPair" is null - Cannot invoke "java.security.KeyPair.getPrivate()" because "caKeyPair" is null
   2025-08-11 06:36:53,126 DEBUG [c.c.h.k.d.KvmServerDiscoverer] (ApiServer-10:[ctx-02b4a502, ctx-4d6f0914]) (logid:a7d01871)  can't setup agent, due to java.lang.NullPointerException: Cannot invoke "java.security.KeyPair.getPrivate()" because "caKeyPair" is null - Cannot invoke "java.security.KeyPair.getPrivate()" because "caKeyPair" is null java.lang.NullPointerException: Cannot invoke "java.security.KeyPair.getPrivate()" because "caKeyPair" is null
           at org.apache.cloudstack.utils.security.CertUtils.generateV3Certificate(CertUtils.java:242)
           at org.apache.cloudstack.ca.provider.RootCAProvider.generateCertificateUsingCsr(RootCAProvider.java:204)
           at org.apache.cloudstack.ca.provider.RootCAProvider.issueCertificate(RootCAProvider.java:238)
           at org.apache.cloudstack.ca.CAManagerImpl.issueCertificate(CAManagerImpl.java:163)
           at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   ```
   
   ### versions
   
   ACS 4.21 EL8 (Alma Linux 8) with mbx (main/v0.5)
   
   ### The steps to reproduce the bug
   
   1. mbx deploy:
   ```
   mbx deploy 421-xaas-demo mbxt-kvm-el8 mbxt-kvm-el8 https://download.cloudstack.org/testing/4.21.0.0-RC2/el8/4.21/
   ```
   2. Launch
   ```
   $ mbx launch qa1-421-xaas-demo-2de0f286-kvm
   ...
   Installing collected packages: protobuf, mysql-connector-python
   Successfully installed mysql-connector-python-8.0.31 protobuf-3.19.6
   WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
   /usr/local/lib/python3.6/site-packages/paramiko/transport.py:32: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography. The next release of cryptography will remove support for Python 3.6.
     from cryptography.hazmat.backends import default_backend
   
   ==== Log Folder Path: /tmp/MarvinLogs/DeployDataCenter__Aug_11_2025_06_36_34_JW0EGB All logs will be available here ====
   
   ==== Deploy DC Started ====
   Exception Occurred :['Traceback (most recent call last):\n', '  File "/usr/local/lib/python3.6/site-packages/marvin/deployDataCenter.py", line 141, in addHosts\n    ret = self.__apiClient.addHost(hostcmd)\n', '  File "/usr/local/lib/python3.6/site-packages/marvin/cloudstackAPI/cloudstackAPIClient.py", line 2322, in addHost\n    response = self.connection.marvinRequest(command, response_type=response, method=method)\n', '  File "/usr/local/lib/python3.6/site-packages/marvin/cloudstackConnection.py", line 381, in marvinRequest\n    raise e\n', '  File "/usr/local/lib/python3.6/site-packages/marvin/cloudstackConnection.py", line 376, in marvinRequest\n    raise self.__lastError\n', '  File "/usr/local/lib/python3.6/site-packages/marvin/cloudstackConnection.py", line 310, in __parseAndGetResponse\n    response_cls)\n', '  File "/usr/local/lib/python3.6/site-packages/marvin/jsonHelper.py", line 155, in getResultObj\n    raise cloudstackException.CloudstackAPIException(respname, errMsg)
 \n', 'marvin.cloudstackException.CloudstackAPIException: Execute cmd: addhost failed, due to: errorCode: 530, errorText:Could not add host at [http://172.20.0.154] with zone [Zone {"id": "1", "name": "DC", "uuid": "fe9fedba-49d7-4012-a34a-fa21b8d9c8cc"}], pod [HostPod {"id":1,"name":"Pod","uuid":"57910121-553d-4a8a-8051-eefd5c19f22c"}] and cluster [Cluster {id: "1", name: "Cluster", uuid: "c3968e84-6c5e-43b0-a41d-f43b4c2d2a13"}] due to: [ can\'t setup agent, due to java.lang.NullPointerException: Cannot invoke "java.security.KeyPair.getPrivate()" because "caKeyPair" is null - Cannot invoke "java.security.KeyPair.getPrivate()" because "caKeyPair" is null].\n']
   Exception Occurred :['Traceback (most recent call last):\n', '  File "/usr/local/lib/python3.6/site-packages/marvin/deployDataCenter.py", line 141, in addHosts\n    ret = self.__apiClient.addHost(hostcmd)\n', '  File "/usr/local/lib/python3.6/site-packages/marvin/cloudstackAPI/cloudstackAPIClient.py", line 2322, in addHost\n    response = self.connection.marvinRequest(command, response_type=response, method=method)\n', '  File "/usr/local/lib/python3.6/site-packages/marvin/cloudstackConnection.py", line 381, in marvinRequest\n    raise e\n', '  File "/usr/local/lib/python3.6/site-packages/marvin/cloudstackConnection.py", line 376, in marvinRequest\n    raise self.__lastError\n', '  File "/usr/local/lib/python3.6/site-packages/marvin/cloudstackConnection.py", line 310, in __parseAndGetResponse\n    response_cls)\n', '  File "/usr/local/lib/python3.6/site-packages/marvin/jsonHelper.py", line 155, in getResultObj\n    raise cloudstackException.CloudstackAPIException(respname, errMsg)
 \n', 'marvin.cloudstackException.CloudstackAPIException: Execute cmd: addhost failed, due to: errorCode: 530, errorText:Could not add host at [http://172.20.0.234] with zone [Zone {"id": "1", "name": "DC", "uuid": "fe9fedba-49d7-4012-a34a-fa21b8d9c8cc"}], pod [HostPod {"id":1,"name":"Pod","uuid":"57910121-553d-4a8a-8051-eefd5c19f22c"}] and cluster [Cluster {id: "1", name: "Cluster", uuid: "c3968e84-6c5e-43b0-a41d-f43b4c2d2a13"}] due to: [ can\'t setup agent, due to java.lang.NullPointerException: Cannot invoke "java.security.KeyPair.getPrivate()" because "caKeyPair" is null - Cannot invoke "java.security.KeyPair.getPrivate()" because "caKeyPair" is null].\n']
   
   ===deploy dc failed, so cleaning the created entries===
   
   ====DeployDC: CleanUp Started====
   
   ====Clean Up Entries=== {'Zone': ['fe9fedba-49d7-4012-a34a-fa21b8d9c8cc'], 'order': ['Cluster', 'Pod', 'PhysicalNetwork', 'Zone'], 'PhysicalNetwork': ['763ece0f-63f5-4363-8fca-b29b05f9f176'], 'Pod': ['57910121-553d-4a8a-8051-eefd5c19f22c'], 'Cluster': ['c3968e84-6c5e-43b0-a41d-f43b4c2d2a13']}
   
   ===Removing DataCenter Successful===
   ```
   
   ### What to do about it?
   
   _No response_


-- 
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-unsubscribe@cloudstack.apache.org.apache.org

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


Re: [I] Unable to deploy zone with mbx/ACS 4.21 RC2 [cloudstack]

Posted by "rohityadavcloud (via GitHub)" <gi...@apache.org>.
rohityadavcloud commented on issue #11426:
URL: https://github.com/apache/cloudstack/issues/11426#issuecomment-3177817935

   Update - not observed with RC3. Likely the VO fix fixed it - https://github.com/apache/cloudstack/commit/9fd2b90b80d990c26e65a03890cf88b5725eb4bb


-- 
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-unsubscribe@cloudstack.apache.org

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


Re: [I] Unable to deploy zone with mbx/ACS 4.21 RC2 [cloudstack]

Posted by "sureshanaparti (via GitHub)" <gi...@apache.org>.
sureshanaparti commented on issue #11426:
URL: https://github.com/apache/cloudstack/issues/11426#issuecomment-3173637673

   I'm not sure what's resulting in invalid string in sql query, one issue could be LazyCache returning some invalid string, and get db call for configuration failing with that.


-- 
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-unsubscribe@cloudstack.apache.org

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


Re: [I] Unable to deploy zone with mbx/ACS 4.21 RC2 [cloudstack]

Posted by "sureshanaparti (via GitHub)" <gi...@apache.org>.
sureshanaparti commented on issue #11426:
URL: https://github.com/apache/cloudstack/issues/11426#issuecomment-3173576594

   @rohityadavcloud if any of the configuration (ca.plugin.root.private.key, ca.plugin.root.public.key) values is not set, caKeyPair is not initialized. Can you check these configuration in mbx.
   
   https://github.com/apache/cloudstack/blob/7d59bfe2b59eb06a71c68262dfb08de8ee422ad4/plugins/ca/root-ca/src/main/java/org/apache/cloudstack/ca/provider/RootCAProvider.java#L345-L351
   


-- 
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-unsubscribe@cloudstack.apache.org

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


Re: [I] Unable to deploy zone with mbx/ACS 4.21 RC2 [cloudstack]

Posted by "sureshanaparti (via GitHub)" <gi...@apache.org>.
sureshanaparti commented on issue #11426:
URL: https://github.com/apache/cloudstack/issues/11426#issuecomment-3173612188

   Noticed this exception in logs while generating root CA public/private keys, so these configs are null.
   
   ```
   2025-08-11 06:02:22,607 DEBUG [o.a.c.f.c.i.ConfigDepotImpl] (main:[]) (logid:) Retrieving keys from RootCAProvider      
   2025-08-11 06:02:22,691 DEBUG [o.a.c.s.l.r.ExtensionRegistry] (main:[]) (logid:) Registering extension [RootCAProvider] in [Ca Providers Registry]
   2025-08-11 06:02:22,691 DEBUG [o.a.c.s.l.r.RegistryLifecycle] (main:[]) (logid:) Registered org.apache.cloudstack.ca.provider.RootCAProvider@22be4867
   2025-08-11 06:02:22,691 INFO  [o.a.c.s.l.CloudStackExtendedLifeCycle] (main:[]) (logid:) Configuring CloudStack Components
   2025-08-11 06:02:22,691 INFO  [o.a.c.s.l.CloudStackExtendedLifeCycle] (main:[]) (logid:) configuring bean RootCAProvider.
   2025-08-11 06:02:22,696 ERROR [o.a.c.f.c.d.ConfigurationDaoImpl] (main:[]) (logid:) DB Exception on: HikariProxyPreparedStatement@224702128 wrapping com.mysql.cj.jdbc.ServerPreparedStatement[782]: SELECT configuration.instance, configuration.component, configuration.name, configuration.value, configuration.default_value, configuration.description, configuration.category, configuration.is_dynamic, configuration.scope, configuration.updated, configuration.group_id, configuration.subgroup_id, configuration.parent, configuration.display_text, configuration.kind, configuration.options FROM configuration WHERE configuration.name = x'63612e706c7567696e2e726f6f742e7075626c69632e6b6579' java.sql.SQLDataException: Cannot determine value type from string '^A^@^@^@^@^@^@^@'
           at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:115)
           at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:98)
           at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:90)
           at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:64)
           at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:74)
           at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:96)
           at com.mysql.cj.jdbc.result.ResultSetImpl.getObject(ResultSetImpl.java:1431)
           at com.mysql.cj.jdbc.result.ResultSetImpl.getInt(ResultSetImpl.java:830)
           at com.zaxxer.hikari.pool.HikariProxyResultSet.getInt(HikariProxyResultSet.java)
           at com.cloud.utils.db.GenericDaoBase.setField(GenericDaoBase.java:597)
           at com.cloud.utils.db.GenericDaoBase.setField(GenericDaoBase.java:2070)
           at com.cloud.utils.db.GenericDaoBase.toEntityBean(GenericDaoBase.java:1930)
           at com.cloud.utils.db.GenericDaoBase.toEntityBean(GenericDaoBase.java:1891)
           at com.cloud.utils.db.GenericDaoBase.findById(GenericDaoBase.java:1086)
           at com.cloud.utils.db.GenericDaoBase.lockRow(GenericDaoBase.java:1061)
           at com.cloud.utils.db.GenericDaoBase.findById(GenericDaoBase.java:996)
           at jdk.internal.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
           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 com.cloud.utils.db.TransactionContextInterceptor.invoke(TransactionContextInterceptor.java:34)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)
           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.$Proxy39.findById(Unknown Source)
           at org.apache.cloudstack.framework.config.impl.ConfigDepotImpl.getConfigStringValueInternal(ConfigDepotImpl.java:289)
           at com.github.benmanes.caffeine.cache.LocalLoadingCache.lambda$newMappingFunction$3(LocalLoadingCache.java:183)
           at com.github.benmanes.caffeine.cache.BoundedLocalCache.lambda$doComputeIfAbsent$14(BoundedLocalCache.java:2687)
           at java.base/java.util.concurrent.ConcurrentHashMap.compute(ConcurrentHashMap.java:1955)
           at com.github.benmanes.caffeine.cache.BoundedLocalCache.doComputeIfAbsent(BoundedLocalCache.java:2685)
           at com.github.benmanes.caffeine.cache.BoundedLocalCache.computeIfAbsent(BoundedLocalCache.java:2668)
           at com.github.benmanes.caffeine.cache.LocalCache.computeIfAbsent(LocalCache.java:112)
           at com.github.benmanes.caffeine.cache.LocalLoadingCache.get(LocalLoadingCache.java:58)
           at org.apache.cloudstack.utils.cache.LazyCache.get(LazyCache.java:38)
           at org.apache.cloudstack.framework.config.impl.ConfigDepotImpl.getConfigStringValue(ConfigDepotImpl.java:302)
           at org.apache.cloudstack.framework.config.ConfigKey.value(ConfigKey.java:324)
           at org.apache.cloudstack.ca.provider.RootCAProvider.loadRootCAKeyPair(RootCAProvider.java:346)
           at org.apache.cloudstack.ca.provider.RootCAProvider.setupCA(RootCAProvider.java:425)
           at org.apache.cloudstack.ca.provider.RootCAProvider.configure(RootCAProvider.java:454)
   he.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.withModule(DefaultModuleDefinitionSet.java:279)
           at org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.withModule(DefaultModuleDefinitionSet.java:279)
           at org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.withModule(DefaultModuleDefinitionSet.java:262)
           at org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.loadContexts(DefaultModuleDefinitionSet.java:131)
           at org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.load(DefaultModuleDefinitionSet.java:79)
           at org.apache.cloudstack.spring.module.factory.ModuleBasedContextFactory.loadModules(ModuleBasedContextFactory.java:37)
           at org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.init(CloudStackSpringContext.java:71)
           at org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.<init>(CloudStackSpringContext.java:58)
           at org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.<init>(CloudStackSpringContext.java:62)
           at org.apache.cloudstack.spring.module.web.CloudStackContextLoaderListener.contextInitialized(CloudStackContextLoaderListener.java:53)
           at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:1073)
           at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:572)
           at org.eclipse.jetty.server.handler.ContextHandler.contextInitialized(ContextHandler.java:1002)
           at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:765)
           at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:379)
           at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1449)
           at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1414)
           at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:916)
           at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:288)
           at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:524)
           at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
           at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
           at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110)
           at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
           at org.eclipse.jetty.server.handler.gzip.GzipHandler.doStart(GzipHandler.java:426)
           at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
           at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
           at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:117)
           at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
           at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
           at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
           at org.eclipse.jetty.server.Server.start(Server.java:423)
           at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110)
           at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
           at org.eclipse.jetty.server.Server.doStart(Server.java:387)
           at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
           at org.apache.cloudstack.ServerDaemon.start(ServerDaemon.java:207)
           at org.apache.cloudstack.ServerDaemon.main(ServerDaemon.java:117)
   Caused by: com.mysql.cj.exceptions.DataConversionException: Cannot determine value type from string '^A^@^@^@^@^@^@^@'
           at com.mysql.cj.result.AbstractNumericValueFactory.createFromBytes(AbstractNumericValueFactory.java:65)
           at com.mysql.cj.protocol.a.MysqlBinaryValueDecoder.decodeByteArray(MysqlBinaryValueDecoder.java:269)
           at com.mysql.cj.protocol.result.AbstractResultsetRow.decodeAndCreateReturnValue(AbstractResultsetRow.java:135)
           at com.mysql.cj.protocol.result.AbstractResultsetRow.getValueFromBytes(AbstractResultsetRow.java:243)
           at com.mysql.cj.protocol.a.result.ByteArrayRow.getValue(ByteArrayRow.java:91)
           at com.mysql.cj.jdbc.result.ResultSetImpl.getObject(ResultSetImpl.java:1324)
           ... 91 more
   
   2025-08-11 06:02:22,699 ERROR [o.a.c.s.l.CloudStackExtendedLifeCycle] (main:[]) (logid:) Error on configuring bean RootCAProvider - Unable to find by id on DB, due to: Cannot determine value type from string '^A^@^@^@^@^@^@^@' com.cloud.utils.exception.CloudRuntimeException: Unable to find by id on DB, due to: Cannot determine value type from string '^A^@^@^@^@^@^@^@'
           at com.cloud.utils.db.GenericDaoBase.findById(GenericDaoBase.java:1089)
           at com.cloud.utils.db.GenericDaoBase.lockRow(GenericDaoBase.java:1061)
           at com.cloud.utils.db.GenericDaoBase.findById(GenericDaoBase.java:996)
           at jdk.internal.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
           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 com.cloud.utils.db.TransactionContextInterceptor.invoke(TransactionContextInterceptor.java:34)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)
           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.$Proxy39.findById(Unknown Source)
           at org.apache.cloudstack.framework.config.impl.ConfigDepotImpl.getConfigStringValueInternal(ConfigDepotImpl.java:289)
           at com.github.benmanes.caffeine.cache.LocalLoadingCache.lambda$newMappingFunction$3(LocalLoadingCache.java:183)
           at com.github.benmanes.caffeine.cache.BoundedLocalCache.lambda$doComputeIfAbsent$14(BoundedLocalCache.java:2687)
           at java.base/java.util.concurrent.ConcurrentHashMap.compute(ConcurrentHashMap.java:1955)
           at com.github.benmanes.caffeine.cache.BoundedLocalCache.doComputeIfAbsent(BoundedLocalCache.java:2685)
           at com.github.benmanes.caffeine.cache.BoundedLocalCache.computeIfAbsent(BoundedLocalCache.java:2668)
           at com.github.benmanes.caffeine.cache.LocalCache.computeIfAbsent(LocalCache.java:112)
           at com.github.benmanes.caffeine.cache.LocalLoadingCache.get(LocalLoadingCache.java:58)
           at org.apache.cloudstack.utils.cache.LazyCache.get(LazyCache.java:38)
           at org.apache.cloudstack.framework.config.impl.ConfigDepotImpl.getConfigStringValue(ConfigDepotImpl.java:302)
           at org.apache.cloudstack.framework.config.ConfigKey.value(ConfigKey.java:324)
           at org.apache.cloudstack.ca.provider.RootCAProvider.loadRootCAKeyPair(RootCAProvider.java:346)
           at org.apache.cloudstack.ca.provider.RootCAProvider.setupCA(RootCAProvider.java:425)
           at org.apache.cloudstack.ca.provider.RootCAProvider.configure(RootCAProvider.java:454)
           at org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle$3.with(CloudStackExtendedLifeCycle.java:121)
           at org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.with(CloudStackExtendedLifeCycle.java:163)
           at org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.configure(CloudStackExtendedLifeCycle.java:116)
           at org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.start(CloudStackExtendedLifeCycle.java:53)
           at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:178)
           at org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:54)
           at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:356)
   ...
   2025-08-11 06:02:22,701 WARN  [o.a.c.s.m.m.i.DefaultModuleDefinitionSet] (main:[]) (logid:) Failed to start module [root-ca] due to: [Failed to start bean 'cloudStackLifeCycle'; nested exception is com.cloud.utils.exception.CloudRuntimeException: Unable to find by id on DB, due to: Cannot determine value type from string '^A^@^@^@^@^@^@^@'].
   2025-08-11 06:02:22,701 DEBUG [o.a.c.s.m.m.i.DefaultModuleDefinitionSet] (main:[]) (logid:) module start failure of module [root-ca] was due to: org.springframework.context.ApplicationContextException: Failed to start bean 'cloudStackLifeCycle'; nested exception is com.cloud.utils.exception.CloudRuntimeException: Unable to find by id on DB, due to: Cannot determine value type from string '^A^@^@^@^@^@^@^@'
           at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:181)
           at org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:54)
           at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:356)
           at java.base/java.lang.Iterable.forEach(Iterable.java:75)
           at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:155)
           at org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:123)
           at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:937)
           at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:586)
           at org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.loadContext(DefaultModuleDefinitionSet.java:174)
   ...
   Caused by: com.cloud.utils.exception.CloudRuntimeException: Unable to find by id on DB, due to: Cannot determine value type from string '^A^@^@^@^@^@^@^@'
           at org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle$3.with(CloudStackExtendedLifeCycle.java:127)
           at org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.with(CloudStackExtendedLifeCycle.java:163)
           at org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.configure(CloudStackExtendedLifeCycle.java:116)
           at org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.start(CloudStackExtendedLifeCycle.java:53)
           at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:178)
           ... 51 more
   Caused by: com.cloud.utils.exception.CloudRuntimeException: Unable to find by id on DB, due to: Cannot determine value type from string '^A^@^@^@^@^@^@^@'
           at com.cloud.utils.db.GenericDaoBase.findById(GenericDaoBase.java:1089)
           at com.cloud.utils.db.GenericDaoBase.lockRow(GenericDaoBase.java:1061)
           at com.cloud.utils.db.GenericDaoBase.findById(GenericDaoBase.java:996)
           at jdk.internal.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
           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)
   ```


-- 
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-unsubscribe@cloudstack.apache.org

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


Re: [I] Unable to deploy zone with mbx/ACS 4.21 RC2 [cloudstack]

Posted by "rohityadavcloud (via GitHub)" <gi...@apache.org>.
rohityadavcloud closed issue #11426: Unable to deploy zone with mbx/ACS 4.21 RC2
URL: https://github.com/apache/cloudstack/issues/11426


-- 
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-unsubscribe@cloudstack.apache.org

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


Re: [I] Unable to deploy zone with mbx/ACS 4.21 RC2 [cloudstack]

Posted by "rohityadavcloud (via GitHub)" <gi...@apache.org>.
rohityadavcloud commented on issue #11426:
URL: https://github.com/apache/cloudstack/issues/11426#issuecomment-3173450910

   ```
   mysql> select * from configuration where name like '%root%key%';
   +----------+----------+----------------+----------------------------+-------+--------------------------+---------------+---------------------+------------+----------+-------------+--------+----------------------------+------+---------+-------+
   | category | instance | component      | name                       | value | description              | default_value | updated             | is_dynamic | group_id | subgroup_id | parent | display_text               | kind | options | scope |
   +----------+----------+----------------+----------------------------+-------+--------------------------+---------------+---------------------+------------+----------+-------------+--------+----------------------------+------+---------+-------+
   | Hidden   | DEFAULT  | RootCAProvider | ca.plugin.root.private.key | NULL  | The ROOT CA private key. | NULL          | 2025-08-11 06:02:22 |          1 |        1 |          39 | NULL   | Ca plugin root private key | NULL | NULL    |     1 |
   | Hidden   | DEFAULT  | RootCAProvider | ca.plugin.root.public.key  | NULL  | The ROOT CA public key.  | NULL          | 2025-08-11 06:02:22 |          1 |        1 |          39 | NULL   | Ca plugin root public key  | NULL | NULL    |     1 |
   +----------+----------+----------------+----------------------------+-------+--------------------------+---------------+---------------------+------------+----------+-------------+--------+----------------------------+------+---------+-------+
   ```
   Mgmt server logs attached:
   
   [management-server.log.gz.zip](https://github.com/user-attachments/files/21710332/management-server.log.gz.zip)


-- 
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-unsubscribe@cloudstack.apache.org

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


Re: [I] Unable to deploy zone with mbx/ACS 4.21 RC2 [cloudstack]

Posted by "rohityadavcloud (via GitHub)" <gi...@apache.org>.
rohityadavcloud commented on issue #11426:
URL: https://github.com/apache/cloudstack/issues/11426#issuecomment-3173602549

   I tried mbx with 4.20.1 and it worked; but hit the issue again with 4.21 RC2. If I restart mysqld & management-server after initial deployment but before launching the zone, then it worked and created the root ca pub/priv keys. I don't know what it's doing that but it seems like an env issue.
   
   Closing on this remark.


-- 
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-unsubscribe@cloudstack.apache.org

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