Error Code: vmsp.cert.replacement.error
vmsp.cert.replacement.error
Certificate task REPLACE_CERTIFICATE for <FQDN> has failed. Error message: Certificate replacement error - VMSP Task status with task ID <ID> is Failed. Details: ERROR: Internal error occurred. Please retry the operation or contact support if the issue persists. [VCFMS-MACHINE-003]/storage/log/vcops/log:#component-manager-plugin-<ID>.log
INFO component-manager-plugin 32025 [ops@#### threadId="2561" threadName="ComponentManagerTaskEngine-4" operationId=""] [com.vmware.vrealize.lcm.platform.automata.service.Task.injectFailedEventWithLocale] - Injecting task failure event. Error Code : 'vmsp.cert.replacement.error', Retry : 'false', Causing Properties : '{ CAUSE :: }'
com.vmware.vrealize.lcm.plugin.common.vrops.exceptions.CertificateGenericException: Certificate task REPLACE_CERTIFICATE for <FQDN> has failed. Error message: Certificate replacement error - VMSP Task status with task ID <ID> is Failed. Details: ERROR: Internal error occurred. Please retry the operation or contact support if the issue persists. [VCFMS-MACHINE-003]
at com.vmware.vrealize.lcm.plugin.core.vrops.certificatemanagement.tasks.CertTaskUtil.handleCertificateTaskFailure(CertTaskUtil.java:177)
at com.vmware.vrealize.lcm.plugin.core.vrops.certificatemanagement.tasks.CertTaskUtil.handleTerminatedTask(CertTaskUtil.java:142)
at com.vmware.vrealize.lcm.plugin.core.vrops.certificatemanagement.tasks.CertTaskUtil.monitorTaskInternal(CertTaskUtil.java:106)
at com.vmware.vrealize.lcm.plugin.core.vrops.certificatemanagement.tasks.CertTaskUtil.monitorCertificateTask(CertTaskUtil.java:82)
at com.vmware.vrealize.lcm.plugin.core.vrops.certificatemanagement.tasks.CertTaskUtil.monitorCertificateTask(CertTaskUtil.java:66)
at com.vmware.vrealize.lcm.plugin.core.vrops.certificatemanagement.tasks.ReplaceCertificateTask.execute(ReplaceCertificateTask.java:48)
at com.vmware.vrealize.lcm.automata.core.TaskThread.run(TaskThread.java:50)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
#vcops-bridge-<ID>.log
INFO vcfops-bridge 32025 [ops@#### threadId="2561" threadName="ComponentManagerTaskEngine-4" operationId=""] [com.vmware.vcops.bridge.server.vcf.certificate.task.VcfCertificateTaskHelper.getCertManageTask] - getCertificateTask from KV store : Task{id='<ID>', name=REPLACE_CERTIFICATE, orchestratorType=SDDC, orchestratorName='', status=FAILED, creationTimestamp=##########, lastUpdatedOn=##########, additionalInfo={CERTIFICATE_MANAGEMENT_TASK_ID=<TASK_ID>, resource_key=<ID>}, orchestratorTask=OrchestratorTask{id='<ID>', type='null', name='null', description='null', status=FAILED, lastUpdatedOn='null', errors=[Error{message='Certificate replacement error - VMSP Task status with task ID <ID> is Failed. Details: ERROR: Internal error occurred. Please retry the operation or contact support if the issue persists. [VCFMS-MACHINE-003]', code='vmsp.cert.replacement.error'}]}}configure-component workflow fails during the check-machine-rollout and validate-machine-rollout stages with an Error (exit code 1). This indicates that the Kubernetes deployment or StatefulSet for Log Management in the ops-logs namespace did not reach a ready state within the expected timeout.Deleting phase in VCF Services Runtime Cluster:k get machines -ADeleting phase is driven by two underlying issues:#k get cluster <cluster> -n vmsp-platform -o yaml
message: '* VCenterAvailable: failed to create vCenter session: failed to create client: Post "https://<VC-FQDN>/sdk": host "<VC-FQDN>:443" thumbprint does not match "<THUMBPRINT>"'
reason: NotReady
status: "False"
type: InfrastructureReady#k get task configure-component-<ID> -n vmsp-platform -o yaml
status:
cancellable: true
currentStageName: config-component-init
messages:
- default: Internal error occurred. Please retry the operation or contact support
if the issue persists. [VCFMS-MACHINE-003]
id: com.vmware.vcfms.system.GenericError
level: ERROR
messageCode: VCFMS-MACHINE-003
stage: config-component-init
...
stages:
- description: Configuration Initialization for VCF Component
errors:
- 'configure-component-<ID>: retryStrategy.expression
evaluated to false'
- 'configure-component-<ID>(0): Failed'
- 'component-worker-node-resize(0): Failed'
- 'component-worker-node-resize: retryStrategy.expression evaluated to false'
- 'validate-machine-rollout(0): Failed'
- 'validate-machine-rollout: retryStrategy.expression evaluated to false'
- 'check-machine-rollout: retryStrategy.expression evaluated to false'
- 'check-machine-rollout(0): Error (exit code 1)'
name: config-component-init
stageType: Workflow
status: Failedk get clusters -A
k get machines -Avmsp-platform namespace to grab the exact name:k get tasks -n vmsp-platformVC-Host with the actual vCenter FQDN)vcenterCertificate=$(
echo | openssl s_client -showcerts -connect <VC-Host>:443 2> /dev/null |
sed -n -e '/BEGIN\ CERTIFICATE/,/END\ CERTIFICATE/ p' | base64 | tr -d '\n'
)vcenterCertificate:echo $vcenterCertificatethumbprint=$(
echo $vcenterCertificate | base64 -d | openssl x509 -noout -fingerprint -sha1 | cut -d= -f2
)vmsp-platform PackageDeployment with the new certificate and thumbprint:k patch pd vmsp-platform -n vmsp-platform --type=merge --patch-file /dev/stdin <<EOF
{
"spec": {
"values": {
"provider": {
"vsphere": {
"thumbprint": "${thumbprint}",
"tlsCertificate": "${vcenterCertificate}"
}
}
}
}
}
EOFplatform-trust secret with the new certificate:k patch secret platform-trust -n vmsp-platform --type=merge \
-p "$(jq -n --arg cert "$vcenterCertificate" '{data: {"ca.crt": $cert}}')"vsphere-csi-node and vsphere-csi-controller pods. Identify the pod IDs in the kube-system namespace and delete them to force a recreation:k get pods -n kube-system
k delete pods vsphere-csi-node-<id> -n kube-system
k delete pods vsphere-csi-controller-<id> -n kube-systemk wait packagedeployment/vmsp-platform -n vmsp-platform --for=condition=Readyk rollout restart deployments/vsphere-csi-controller -n kube-systemDeleting phase blocking the rollout by running:k get machines -A