When attempting to deploy a new standby cell using VMware Cloud Director (VCD) it fails when attempting to connect it to the primary cell with "setupvcdscrip failed to execute"
In the /opt/vmware/var/log/vcd/configure-vcd.log you will see the follow error messages:DATE TIME | setupvcd.sh | Configuring VCD from response file (/opt/vmware/vcloud-director/data/transfer/responses.properties). Cryptographic error: Password provided was incorrect for the supplied private key DATE TIME | setupvcd.sh | [ERROR] Failed to configure vCD. Check /opt/vmware/vcloud-director/logs for details. Aborting. DATE TIME | configure-vcd.sh | [ERROR] setupvcd script failed to execute. DATE TIME | cleanup-vcd.sh | Starting cleanup script. DATE TIME | cleanup-vcd.sh | The following error code was provided as argument to script: 18
/opt/vmware/var/log/vcd/vcloud-container-info.log you will see the follow error messages:DATE TIME | ERROR | main | ConfigAgent | Cryptographic error: Password provided was incorrect for the supplied private key DATE TIME | ERROR | main | ConfigAgent | Aborting configure due to OTHER (106) | com.vmware.vcloud.configure.legacy.ConfigAgentException: Aborting configure due to OTHER (106) Caused by: java.security.cert.CertificateException: Password provided was incorrect for the supplied private key
at com.vmware.vcloud.common.cmt.CertificateInputUtils.handleUserPasswordException(CertificateInputUtils.java:189) at com.vmware.vcloud.common.cmt.CertificateInputUtils.promptAndLoadUserCertificates(CertificateInputUtils.java:158) at com.vmware.vcloud.common.cmt.CertificateInputUtils.configureServerCertificates(CertificateInputUtils.java:99) at com.vmware.vcloud.configure.legacy.ConfigAgent.configureCertificates(ConfigAgent.java:894) at com.vmware.vcloud.configure.legacy.ConfigAgent.configureCell(ConfigAgent.java:632) at com.vmware.vcloud.configure.legacy.ConfigAgent.start(ConfigAgent.java:424) at com.vmware.vcloud.configure.legacy.ConfigAgentExecutor.start(ConfigAgentExecutor.java:83) at com.vmware.vcloud.configure.legacy.ConfigAgentExecutor.main(ConfigAgentExecutor.java:78)
VMware Cloud Director 10.5.1.1
The issue occurs due to the /opt/vmware/vcloud-director/data/transfer/responses.properties file not having the correct user.key.password
To resolve this issue re-apply the certificates on the standby node using the CLI which will update the responses.properties file with the correct information.
Take a database backup before proceeding with the steps below. You can refer to Backup and Restore of Your VMware Cloud Director Appliance.
/opt/vmware/vcloud-director/bin/cell-management-tool certificates -j --cert /opt/vmware/vcloud-director/data/transfer/user.http.pem --key /opt/vmware/vcloud-director/data/transfer/user.http.key --key-password <root_password>
cat /opt/vmware/vcloud-director/etc/response.properties cat /opt/vmware/vcloud-director/data/transfer/response.propertiescp /opt/vmware/vcloud-director/data/transfer/response.properties /opt/vmware/vcloud-director/data/transfer/response.properties.back
chown vcloud.vcloud user.http.pemchown vcloud.vcloud user.http.keychmod 0750 user.http.pemchmod 0750 user.http.key/opt/vmware/vcloud-director/bin/cell-management-tool certificates -j --cert /opt/vmware/vcloud-director/data/transfer/user.http.pem --key /opt/vmware/vcloud-director/data/transfer/user.http.key --key-password <root_password>