How to remediate the vCenter service account for VCF Management Services Runtime and VCF Automation
search cancel

How to remediate the vCenter service account for VCF Management Services Runtime and VCF Automation

book

Article ID: 448804

calendar_today

Updated On:

Products

VCF Automation VMware vSphere ESXi

Issue/Introduction

Users may observe one or more of the following:

  • VCF Operations UI - returns a health check error for the vCenter synthetic check platform-vc-serviceaccount-http
  • Any Day N operations on VCF Management Services or VCF Automation deployment that require vCenter orchestration (e.g.,Volume Resize, Node Rollout, Scale up or Scale out of the component) fail with authentication errors).
  • The automatic service-account rotation job may also be failing.
  • VCF Automation upgrade precheck fails with:
    Platform Health Check,Failed,Platform Health Check Error [platform-vmsp-platform-platform-vc-serviceaccount-http : Unexpected status code: 401 expected: 200, response body: "{\"type\":\"com.vmware.vapi.std.errors.unauthenticated\",\"value\":{\"error_type\":\"UNAUTHENTICATED\",\"challenge\":\"SIGN realm=\\\"<SHA1_THUMBPRINT>\\\",sts=\\\"https://<MGMT_VC_FQDN>/sts/STSService/vsphere.local\\\", Basic realm=\\\"vCenter\\\"\",\"messages\":[]}}"] [VCFMS-HEALTH-002]
    Platform Health Check,Failed,Platform Health Check Error [platform-vmsp-platform-platform-snapshots-snapshot : unable to create vSphere client: ServerFaultCode: Cannot complete login due to an incorrect user name or password.] [VCFMS-HEALTH-002]

Environment

  • VCF Services Runtime 9.0.0
  • VCF Services Runtime 9.1.0
  • VCF Services Runtime 9.1.1
  • VCF Automation 9.0.0
  • VCF Automation 9.1.0
  • VCF Automation 9.1.1
  • VCF Operations 9.1.x

Cause

  • vCenter service account used for authentication to vCenter by VCF Services Runtime is either expired or deleted.
  • The vCenter certificate thumbprint stored in the VCF Services Runtime `PackageDeployment` (`spec.values.provider.vsphere.thumbprint`) is a not expected by the platform version deployed.

Resolution

Invoke attached script that takes vCenter admin credentials to remediate the vCenter service account used by VCF services runtime / VCF Automation.

Step 1: Copy the remediation script to the control plane node

From a machine that can reach the node, copy the script to /home/vmware-system-user:

scp service-account-remediation.sh vmware-system-user@<node-ip>:/home/vmware-system-user/service-account-remediation.sh

Step 2: Connect to the cluster node and initialize access

Follow Broadcom Document: Establish an SSH Connection to a VCF Services Runtime Instance

Step 3: Run the script

chmod +x /home/vmware-system-user/service-account-remediation.sh

/home/vmware-system-user/service-account-remediation.sh

The script will prompt for a vCenter administrator credentials and vmware-system-user credentials of VCF Service runtime. Using those credentials, the script will trigger an operation to fix the vCenter service account used by VCF services Runtime.

Note: Follow the above steps and use the same script to fix the vCenter service account of VCF Automation by running it from any of the VCF Automation node.

Additional Information

VCF Services Platform Cluster Health Checks

Attachments

service-account-remediation.sh get_app