VCF Cluster Delete Failure: ""FAILED_TO_FETCH_VALIDATE_NSXT_SERVICE_DEPLOYMENTS_INPUT"
search cancel

VCF Cluster Delete Failure: ""FAILED_TO_FETCH_VALIDATE_NSXT_SERVICE_DEPLOYMENTS_INPUT"

book

Article ID: 372306

calendar_today

Updated On:

Products

VMware SDDC Manager VMware Cloud Foundation 5.x VMware Cloud Foundation

Issue/Introduction

When attempting to delete/remove a WLD Cluster via the SDDC Manager UI, it may fail with: "FAILED_TO_FETCH_VALIDATE_NSXT_SERVICE_DEPLOYMENTS_INPUT".

You may observe an error in the SDDC Manager - /var/log/vmware/vcf/domainmanager/domainmanager.log:

yyyy-mm-ddThh:mm:ss ERROR [vcf_dm,xxxxxxxxxxxxxxxxxxxxxxx,c3b9] [c.v.e.s.o.model.error.ErrorFactory,dm-exec-20]  [H2K7A6] FAILED_TO_FETCH_VALIDATE_NSXT_SERVICE_DEPLOYMENTS_INPUT Failed to fetch validate NSX service deployments input data
com.vmware.evo.sddc.orchestrator.exceptions.OrchTaskException: Failed to fetch validate NSX service deployments input data

........................................................

Caused by: java.lang.IllegalStateException: Duplicate key null (attempted merging values [xxxxxxxxxxxx])

 

Environment

VMware Cloud Foundation 5.x

Cause

The reported error "FAILED_TO_FETCH_VALIDATE_NSXT_SERVICE_DEPLOYMENTS_INPUT" comes from "FetchValidateNsxtServiceDeploymentsInputAction" which is NSX specific action. This issue happens with Policy APIs used in SUB-TNP related implementation in the "Remove Cluster" workflow. i.e. The TransportZoneProfiles contain global transport zone paths. This issue shows up only in Federated environments.

Resolution

  1. Take snapshot of SDDC Manager VM
  2. Set TNP to false in SDDC Manager properties
    1. SSH into the SDDC Manager via the vcf user and su to root.
    2. Either edit or create the /home/vcf/feature.properties file and add/edit the following line to false:
      vi /home/vcf/feature.properties
    3. Press i for insert mode and add the below line
      feature.vcf.subtnp=false
    4. Save and exit
      esc > :wq!
  3. Turn OFF policy APIs on VFC 5.1 environment
    1. Update file /etc/vmware/vcf/domainmanager/application-prod.properties with following entry:
      vi /etc/vmware/vcf/domainmanager/application-prod.properties
    2. Press i for insert mode
    3. add the below line
      nsxt.base.version.policy=4.2.0.0.0-0
    4. Save and exit
      esc > :wq!
    5. Restart domainmanager by running following command:
      systemctl restart domainmanager
    6. Check that domainmanager is active by running following command:
      systemctl status domainmanager
  4. Perform add host(s) operation on SDDC Manager (UI / API)
  5. Turn ON policy APIs on VFC 5.1 environment:
    1. Remove following entry from file /etc/vmware/vcf/domainmanager/application-prod.properties:
      vi /etc/vmware/vcf/domainmanager/application-prod.properties
    2. delete the below line
      nsxt.base.version.policy=4.2.0.0.0-0
    3. Save and exit
      esc > :wq!
    4. Restart domain manager
      systemctl restart domainmanager
    5. Check that service is active
      systemctl status domainmanager