Unable to Add or Decommission ESXi Hosts in VCF Brownfield Imported Clusters via SDDC Manager
search cancel

Unable to Add or Decommission ESXi Hosts in VCF Brownfield Imported Clusters via SDDC Manager

book

Article ID: 405095

calendar_today

Updated On:

Products

VMware SDDC Manager / VCF Installer

Issue/Introduction

This article speaks about the restrictions encountered on the SDDC manager UI when attempting to Add or decommission hosts in an imported cluster in the existing workload or management domain. Some of the related scenarios are:

  • Attempting to decommission ESXi Host fails with one of the below errors in SDDC Manager UI :

    Cluster is marked as imported. This operation is not allowed on imported clusters Remediation: This operation should be performed through vCenter for clusters imported in SDDC Manager.



    REMOVE_HOST operation validation failed: Entity: <Cluster_Name> with failed check: Cluster not imported (Severity: CRITICAL)

    |

  • Navigating to the WLD > Cluster > Hosts on the SDDC Manager 9.x UI shows REMOVE SELECTED HOSTS button greyed out with below banner:

    REMOVE SELECTED HOSTS This operation is not allowed because this cluster was imported



  • When attempting to add a new ESXi Host to the existing workload or management domain from SDDC Manager, the "Next" button is greyed out on the host selection screen, and the resource summary displays: "Selected resources: 0 Cores, 0 GB Memory, 0 GB Storage."


  • The /var/log/vmware/vcf/domainmanager/domainmanager.log will contain the following the traces flagging "Cluster is marked as imported".

    YYYY-MM-DDThh:mm:ss DEBUG [vcf_dm, ####, ####] [c.v.v.a.s.AssessmentLambdaServiceClient, dm-exec-8] Filtered check results are [class LambdaCheckResultRest {
    entityName: domain_name
    entityType: cluster
    description: Checks whether the cluster has been imported in order to allow/deny cluster operation
    resultMessage: Cluster is marked as imported. This operation is not allowed on imported clusters
    severity: CRITICAL
    status: VALIDATION FAILED
    remediation: This operation should be performed through vCenter for clusters imported in SDDC Manager
    name: Cluster not imported
    }]

 

Environment

VMware Cloud Foundation 5.x

VMware Cloud Foundation 9.x

Cause

Standard host lifecycle management operations like Addition or Decommission are restricted within the SDDC Manager UI for clusters integrated via the Brownfield Import process and marked as "Imported" in the database.

 

Resolution

To resolve this issue follow the below steps.

  1. Log in to the vSphere Client for the associated vCenter Server.

  2. Manually execute the required host operation:

    1. To commission a new host:

      1. Manually add the ESXi host to the target cluster.

      2. Ensure the newly added host configuration (NTP, VMK, networking, NSX, and storage) matches the existing cluster members.Inconsistent storage configurations may cause issues documented in KB SDDC Manager UI failed to load Workload Domains with an error: "Failed to load all domains information".

    2. To decommission a host:

      1. Place the Host in Maintenance Mode (MM).

      2. Move Host to DataCenter Level in vCenter server.

      3. Remove NSX from Host via UI (Navigate to System > Fabric > Hosts > Standalone/Other Nodes)

      4. On the vCenter server, Right-click the ESXi host > Disconnect. Right click again and Remove from Inventory.

  3. Perform a WLD sync on the SDDC Manager reflect the inventory changes

    1. For VCF 5.x:

      1. Download the VCF Import Toolset (`vcf-brownfield-import-<version>.tar.gz`)  and extract the archive onto the SDDC Manager VM /tmp directory

      2. SSH to the SDDC Manager as vcf user ,elevate to root and navigate to the directory containing the VCF Import Toolset script vcf_brownfield.py.

      3. Run the inventory synchronization script to reconcile the SDDC Manager database with the current vCenter state:

        python3 vcf_brownfield.py sync --domain-name '<domain-name>' --local-admin-password '<password>'

        Note: Replace <domain-name> with the exact name of the target Workload Domain, and <password> with the admin@local user password for the SDDC Manager

      4. Verify the script completes with a "SUCCESS" status.

    2. For VCF 9.x

      1. UI method (via VCF Operations):

        Navigate to VCF Operations > Inventory > VCF Instances >  WLD > Actions > Sync Inventory.
      2. CLI method (via SSH on SDDC Manager):

        1. Navigate to the directory containing the inbuilt VCF Import Toolset script
          cd /opt/vmware/vcf/domainmanager/scripts/vcf-import-tool

        2. Run the inventory synchronization script to reconcile the SDDC Manager database with the current vCenter state:
          python vcf_brownfield.py sync --domain-name '<domain-name>' --local-admin-password '<password>'

          Note: Replace <domain-name> with the exact name of the target Workload Domain, and <password> with the admin@local user password for the SDDC Manager

        3. Verify the script completes with a "SUCCESS" status

Additional Information

VCF Import Tool Options and Parameters