Error: VCFMS-HEALTH-002 Due to Expired vCenter Service Account received when upgrading VCF 9.1 Fleet Lifecycle
search cancel

Error: VCFMS-HEALTH-002 Due to Expired vCenter Service Account received when upgrading VCF 9.1 Fleet Lifecycle

book

Article ID: 462071

calendar_today

Updated On:

Products

VCF Operations VMware vCenter Server

Issue/Introduction

  • During an upgrade of VMware Cloud Foundation (VCF) Management components from version 9.1.0, the workflow is blocked at the Fleet Lifecycle upgrade subtask "Stage Fleet lifecycle plugin in VCF services runtime", which fails during Component Stage Prechecks.
  • The Fleet Lifecycle upgrade fails with the 'VCFMS-HEALTH-002' error code, logging the following:
    unable to create vSphere client: ServerFaultCode: Cannot complete login due to an incorrect user name or passwordUnexpected status code: 401 ... "error_type":"UNAUTHENTICATED"
  • Attempting to run the service account remediation script fails with the error below due to the script's inability to authenticate to vCenter:
    AttributeError: 'NoneType' object has no attribute 'content'

Environment

  • VMware Cloud Foundation (VCF) 9.1.0
  • VMware vCenter Server 9.1.x

Cause

The VCF Services Runtime service accounts in the 'vsphere.local' domain, specifically the account mentioned in the remediation script output, expired upon reaching the default 90-day password lifetime policy.

The automated credential rotation mechanism failed to switch to the newly provisioned accounts, leaving the runtime utilizing expired credentials and preventing the automated remediation script from initializing a valid session.

Resolution

  1. Run the remediation script as per the KB below. Upon failure, make a note of the service account noted in the failure output.
  2. Log into one of the VMSP control plane nodes via SSH.

  3. Elevate to root (sudo -i) and export the Kubernetes configuration:

    export KUBECONFIG=/etc/kubernetes/admin.conf
  4. Retrieve the stored vCenter password from the Kubernetes secrets:

    kubectl get secret -n vmsp-platform management-vcenter-main-secret -o jsonpath='{.data.vCenterPassword}' | base64 -d; echo
  5. Log into the vCenter Server Appliance CLI and reset the expired service account password to match the decoded Kubernetes secret:

    /usr/lib/vmware-vmafd/bin/dir-cli password reset --account svc-vcfsp-vc-admin-###### --new '<DECODED_PASSWORD>'
  6. Set the service account password to never expire to prevent immediate recurrence:
    /usr/lib/vmware-vmdir/bin/dir-cli user modify --account svc-vcfsp-vc-admin-###### --password-never-expires
  7. Verify the account status is valid using the command below:
    :dir-cli user find-by-name --account svc-vcfsp-vc-admin-###### --level 2
  8. Execute the remediation script from the VMSP control plane node, providing the [email protected] credentials when prompted:

    /home/vmware-system-user/service-account-remediation.sh
  9. Re-attempt the Fleet Lifecycle upgrade task in the SDDC Manager UI.

Additional Information