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-unsubscr...@cloudstack.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org