Perform Brownfield Environment Validation fails with "The vCenter Server virtual machine is not connected to a distributed virtual port group" VCF 9.1
search cancel

Perform Brownfield Environment Validation fails with "The vCenter Server virtual machine is not connected to a distributed virtual port group" VCF 9.1

book

Article ID: 454487

calendar_today

Updated On:

Products

VMware SDDC Manager / VCF Installer VMware Cloud Foundation

Issue/Introduction

Validation fails during domain sync or import domain workflow with the error: 

"The vCenter Server virtual machine is not connected to a distributed virtual port group"




Environment

VMware Cloud Foundation 9.x

Cause

This issue occurs when multiple Distributed Virtual Switches (DVS) in the SDDC Manager database share the same source_id, causing validation to target the incorrect DVS.

Resolution

This issue will be fixed in VCF 9.1.1

Validate duplicate source_ids:

  1. SSH into the SDDC Manager with the vcf user and then elevate to root with su
  2. Run this query to identify if duplicate source_id entries exist:

    psql -h localhost -U postgres -d platform -c "select source_id,id from vds"
    Example of an output with duplicate VDS source_ids

     source_id |                  id
    -----------+--------------------------------------
     dvs-19    | 821abbb3-2ba0-47eb-a7e4-aea6607120cb
     dvs-19    | dff02e60-96d7-45c2-91dd-2b10a85d61f9



Workaround:

  1. SSH into the SDDC Manager with the vcf user and then elevate to root with su

  2. Copy the below command to disable the check.

     echo "vcf.import.guardrails.vcenter.vm.dvpg.skip=true" >> /etc/vmware/vcf/operationsmanager/application-prod.properties
    
  3. Restart the operationsmanager service 

    systemctl restart operationsmanager
  4. Verify the service is active 

    curl localhost/operationsmanager/about

    Example:
    {"id":"a17d507f-d7bb-405d-af2f-09cc04d61cb5","name":"OPERATIONS_MANAGER","version":"9.1.0.0.25371089","status":"ACTIVE","serviceUrl":"http://localhost/operationsmanager","description":"Operations Manager"}
  5. Retry the Sync task from the VCF Operations UI.