vCenter Server upgrade precheck via SDDC Manager fails with error 'vCenter should be using an embedded Platform Services Controller'
search cancel

vCenter Server upgrade precheck via SDDC Manager fails with error 'vCenter should be using an embedded Platform Services Controller'

book

Article ID: 425328

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

  • Performing an upgrade precheck for vCenter Server via SDDC Manager fails on the 'Embedded PSC' stage with the below error:
    'vCenter should be using an embedded Platform Services Controller'

Environment

SDDC Manager 5.x

VMware vCenter Server 8.x

Cause

  • The issue occurs due to case mismatch between the vCenter Server PNID stored on vCenter and the vCenter hostname stored in the SDDC Manager postgres database.
  • The issue originally occurs if there is a mismatch between the vCenter hostname and vCenter PNID. In this case, when the vCenter is connected to an SDDC Manager, the 'vm_hostname' column in 'vcenter' table gets updated with the 'hostname' value of the vCenter causing a mismatch between the vCenter PNID and the SDDC Manager database entry.

  • To validate the hostname on vCenter Server:
    1. SSH to VCenter Server as root. Enter shell.
    2. Run the below command:
      hostname

      sample output:
      vcsa02.example.com

  • To validate PNID on vCenter Server:
    1. SSH to VCenter Server as root. Enter shell.
    2. Run the below command to find the PNID:
      /usr/lib/vmware-vmafd/bin/vmafd-cli get-pnid --server-name localhost

      sample output:
      VCSA02.example.com

  • To validate the vCenter hostname in SDDC postgres database:
    1. SSH to SDDC Manager as vcf user. Run su to login as root.
    2. Find the vCenter hostname in SDDC database:
      psql -h localhost -U postgres -d platform -c "select * from vcenter;"

                 sample output

                    id                  |     vm_hostname    | status
        --------------------------------------+---------------------+--------
        2730####-####-####-########d780 | vcsa02.example.com | ACTIVE
        (1 row)

Resolution

For PNID and hostname mismatch on vCenter caused due to case difference, updating the PNID on vCenter Server using VAMI will fail with error 'Adding new CN entries failed'.

Follow the steps below to resolve the issue:

  1. Take a snapshot of the vCenter Server Virtual Machine. If the vCenter is in enhanced linked mode, follow VMware vCenter in Enhanced Linked Mode pre-changes snapshot (online or offline) best practice.
  2. Login to the vCenter Appliance Management Interface (https://<VCSA_FQDN>:5480) as root.
  3. Navigate to Networking -> Network Settings -> Edit.
  4. Update the hostname with a placeholder. Example: localhost
  5. Reboot the vCenter Server. Do not skip this step as this is necessary to update the Likewise registry and restart the underlying services.
  6. Update the hostname that matches the value in the SDDC postgres database. Example: vcsa02.example.com