Error: "Upgrade is requested for cluster <Cluster_ID> which is in failed state" as 'svc-vcf' account is missing in the Lockdown mode - 'Exception Users' list
search cancel

Error: "Upgrade is requested for cluster <Cluster_ID> which is in failed state" as 'svc-vcf' account is missing in the Lockdown mode - 'Exception Users' list

book

Article ID: 435394

calendar_today

Updated On:

Products

VMware SDDC Manager / VCF Installer

Issue/Introduction

  • ESXi host update from SDDC manager fails during the precheck with error message: "Upgrade is requested for cluster <Cluster_ID> which is in failed state".
  • SDDC Password manager shows the VCF service account (svc-vcf-<host_shortname>) as Disconnected and root account as "--".
  • Lockdown Mode is enabled in the ESXi host, and the VCF service account (svc-vcf-<host_shortname>) is missing in the Exception Users list. To validate, refer: Managing Exception Users in ESXi Lockdown Mode
  • Lifecycle manager log in SDDC (path: /var/log/vmware/vcf/lcm/lcm.log) will contain the log snippets for password validation precheck failing. 

    YYYY-MM-DDTHH:MM INFO  [vcf_lcm,69ba################2b5a3,c370] [c.v.e.sddc.lcm.audit.AuditScheduler,Scheduled-3] Last upgrade status for software type ESX_HOST and resourceId 1051d074-####-####-####-########e5f8 is: {"id":"2621","bundleId":"9e49####-####-####-####-#######eed3","bundleElementId":"4e5d####-####-####-####-########c585","bundleElementOrder":1,"resourceType":"ESX_HOST","resourceId":"1051####-####-####-####-########e5f8","upgradeId":"1de1####-####-####-####-########fc30","upgradeStatus":"COMPLETED_WITH_FAILURE","upgradeError":{"errorType":"RECOVERABLE","stage":"ESX_UPGRADE_VUM_STAGE_PRECHECK","errorCode":"com.vmware.vcf.error.esx.password.validation.precheck.execution.failed","errorDescription":"Password validation execution failed due to <Host_FQDN>: Validation of password of ESXi host : Host_FQDN has failed.

  • Operations manager log in SDDC (path: /var/log/vmware/vcf/operationsmanager/operationsmanager.log) reports the Password validation cannot be performed when the host is in lockdown mode.

    YYYY-MM-DDTHH:MM DEBUG [vcf_om,69aa################a546,df15] [c.v.v.p.s.PasswordExpirationService,om-exec-2] Expiry retrieval status : UNKNOWN ,  Diagnostic message : {"errorCode":"PASSWORD_VALIDATE_RESOURCE_NOT_SUPPORTED","arguments":["<Host_FQDN>"],"errorMessage":"Password validation cannot be performed when host <Host_FQDN> is in lockdown mode.","referenceToken":"######"}

Environment

  • VCF 5.x

Cause

SDDC manager requires svc-vcf-<host_shortname> service account to management operations like rotate, update, remediate or schedule on hosts. If this account is not included in the "Exception Users" list while Lockdown mode is enabled, the SDDC manager will not have necessary permissions to manage the host and hence the update process fails.

Resolution

  1. Verify Service Account: Ensure the svc-vcf-<host_shortname> account exists in the host and it had Admin role privileges by running the following command in ESXi shell.

    # esxcli system permission list

    Principal                 Is Group  Role     Role Description
    ------------------------- -------- -------  ----------------
    svc-vcf-<host_shortname>   false    Admin    Full access rights

    1. If svc-vcf-<host_shortname> account is present as seen in the above example, proceed to step-2.
    2. If the svc-vcf-<host_shortname> account is missing in the host, create the missing service account by following the KB: Missing SDDC Manager Service account for an ESXi host.

  2. Add the svc-vcf-<host_shortname> account to the 'Exception Users' list:
    1. Navigate to the host in the vSphere Client inventory.
    2. Go to Configure > System > Security Profile.
    3. Under Lockdown Mode, click Edit. Select Exception Users tab, add the service account "svc-vcf-<host_shortname>" and save changes.
  3. Validate the SDDC inventory shows hosts in ERROR status, and change its status to ACTIVE.
    1. Take snapshot of the SDDC manager appliance without virtual machine memory. Refer: Taking and restoring snapshots of the SDDC Manager appliance
    2. SSH into the SDDC Manager appliance as vcf user and switch to root by running command: "su -".
    3. Run the following commands to validate platform DB's "host" table to find the host in ERROR state.

        # psql -h localhost -U postgres -d platform -c "select id,hostname,status from host where status!='ACTIVE'"
                        id                  |  hostname   | status
      --------------------------------------+-------------+--------
        1051####-####-####-####-########e5f8 | <Host_FQDN> | ERROR

    4. Change the host status to ACTIVE by running the following command:

       # psql -h localhost -U postgres -d platform -c "UPDATE host set status = 'ACTIVE' where id = '<id_from_step-3c>';

  4. Proceed to run pre-upgrade check and update the ESXi hosts via SDDC manager.

Additional Information

Service account (svc-vcf-<host_shortname>) status in the SDDC password manager may continue to be in a Disconnected state after following Step-2 if its password is expired or updated out-of-band directly from the host. To resolve, follow the below steps to update the service account (svc-vcf-<host_shortname>) password:

  1. Retrieve the password (secret) stored for the ESXi service account in the SDDC password manager: KB: Retrieve the service accounts credentials from SDDC Manager

    Example:
    "creationTime" : 173807#######,
    "credentialType" : "SSH",
    "entityId" : "18aa####-####-####-####-########d1da",
    "entityType" : "ESXI",
    "id" : "3995####-####-####-####-########47f3",
    "modificationTime" : 173807#######,
    "secret" : "ad####################",
    "serviceId" : "012b####-####-####-####-########d230",
    "serviceType" : "SDDC_MANAGER",
    "targetType" : "ESXI",
    "username" : "svc-vcf-<host_shortname>"

  2. Update the svc-vcf-<host_shortname> account password in the ESXi host with the credentials retrieved ("secret" : "ad####################") in the above step and save the changes.
    1. Log in to the ESXi host UI directly using root account.
    2. Navigate to Manage > Security & Users > Users.
    3. Select the svc-vcf-* service account, click Edit, and set the password obtained in the step-I.
  3. Clear password lockout for the service account by running the following command in the ESXi shell:  pam_tally2 -u svc-vcf-<host_shortname> -r
  4. Remediate the password for svc-vcf-<host_shortname> account in the SDDC manager with the previously obtained password (secret). Refer: Remediate Passwords.