Missing SDDC Manager Service account for an ESXi host - VMware Cloud Foundation
search cancel

Missing SDDC Manager Service account for an ESXi host - VMware Cloud Foundation

book

Article ID: 314643

calendar_today

Updated On:

Products

VMware Cloud Foundation VMware vSphere ESXi

Issue/Introduction

The purpose of this KB is to provide the steps to re-create the missing service account on an ESXi host, if it already exists on the SDDC Manager.
Note: If the service account does not exist on the SDDC Manager, use the following KB instead: Missing ESXi service accounts in SDDC Manager after Bringup.

Symptoms:

  • The service account created by SDDC Manager is missing from the ESXi hosts.
  • SDDC Manager cannot execute administrative tasks on the ESXi host, resulting in issues like failed upgrade prechecks.
  • These service accounts show as disconnected in SDDC Manager.
  • The configuration drift upgrade fails during the vSAN LSOM update stage on specific hosts.
  • The following errors are seen in SDDC LCM logs at /var/log/vmware/vcf/lcm/lcm.log:
    • Failed to update vSAN LSOM settings on the host esxi_shortname.example.com
    • Failed to connect to esxi_shortname.example.com

Environment

  • VMware Cloud Foundation (VCF) 5.x
  • VMware Cloud Foundation (VCF) 9.x

Cause

If the host has been rebuilt/reconfigured and then re-added to the vCenter without going through the decommission / commission process from the SDDC Manager, the service account may be missing on the ESXi host.

Resolution

  1. For any ESXi accounts showing as disconnected in SDDC Manager, log in to the corresponding host and run the following command to verify if the account exists:

    1. esxcli system account list
      Sample output:
      User ID         Description                                Shell access
      --------------  -----------------------------------------  ------------
      root            Administrator                                      true
      dcui            DCUI User                                          true
      vpxuser         VMware Workstation administration account          true
      cloudadmin      ESXi User                                          true
      lldpVim-user    ESXi User                                          true
      mux_user        ESXi User                                          true
      da-user         ESXi User                                          true
      nsx-user        ESXi User                                          true

    2. Given the absence of the svc-vcf-esxi_shortname account, manual recreation of the service account on the ESXi host is required to restore functionality.

  2. Retrieve the service accounts credentials from SDDC Manager. Refer to: Retrieve the service accounts credentials from SDDC Manager

  3. Recreate the missing service account on the ESXi host:

    1. From Host UI:
      1. Log into the ESXi host as root and navigate to Manage > Security & Users > Users.

      2. Click Add User.

      3. Provide username (svc-vcf-esxi_shortname) and password (Which was retrieved in step 2).

      4. Add the administrator role to the service account.

      5. Confirm authentication to the ESXi Host Client UI utilizing the newly provisioned svc-vcf service account credentials.

    2. From CLI:
      1. Connect to the ESXi host via SSH and login as root.

      2. Create the service account:
        esxcli system account add --id svc-vcf-esxi_shortname --password '<password>' --password-confirmation '<password>'

      3. Add the required permission:
        esxcli system permission set --id svc-vcf-<esxi_shortname> --role Admin

      4. The permissions for the svc-vcf-<esxi_shortname> account must match the following configuration:
        [root@esxi_shortname:~] esxcli system permission list
        Principal                 Is Group  Role      Role Description
        ----------------------    --------  --------  ----------------
        svc-vcf-esxi_shortname    false     Admin     Full access rights

      5. Confirm authentication to the ESXi Host Client UI utilizing the newly provisioned svc-vcf service account credentials.

  4. Resolve the disconnected svc-vcf service accounts in SDDC Manager and confirm their status updates to ACTIVE.
    1. Login to the SDDC Manager UI and navigate to Password Manager.
    2. Locate the svc-vcf service account for the host in question and REMEDIATE the password using the password supplied while creating the service account.
      Note: Remediating the service account using the password that is already set in the SDDC Manager will produce a warning banner, this can be ignored.

Additional Information