Unable to import Edge Cluster in VMware Cloud Director
search cancel

Unable to import Edge Cluster in VMware Cloud Director

book

Article ID: 413531

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • When you try to import an edge cluster in VMware Cloud director (VCD) only 15 edge clusters are listed and you can't import the one you need.
  • You have over 15 Edge clusters in the same NSX manager which are not yet imported in VCD.

Environment

VMware Cloud Director 10.6.1

Cause

The cause for this issue is a pagination problem, the web interface will only show the first 15 non already imported edge clusters when trying to import a new edge cluster into VCD

Resolution

This is a known issue affecting VCD 10.6.1

Workaround:

To workaround this issue you can import the edge cluster using the API explorer:

  • Get the edge cluster details via nsxt api 
    • go to vcd api explorer
    • search for 'nsxtResources/edgeclusters'
    • Give the filter as 'nsxTManagerRef.id==urn:vcloud:nsxtmanager:<id>'
    • Give page size as 128 (max)
    • Execute
    • It will list up to 128 edge clusters
    • Note down the details of edge cluster you want to import. For example,

   {
      "id": "bc3005f3-####-####-####-############",
      "name": "ExampleEdgeCluster",
      "description": "Description",
      "nodeCount": -1,
      "nodeType": "UNKNOWN",
      "deploymentType": "UNKNOWN",
      "alreadyImported": false,
      "networkProviderScope": "nsxManager1",
      "nsxTManagerRef": {
        "name": "nsxManager1",
        "id": "urn:vcloud:nsxtmanager:2216b7c1-####-####-####-############"
      }
    }

  • Execute a POST call from VCD
    • go to vcd api explorer
    • search for 'edgeclusters'
    • Find the POST api for /1.0.0/edgeClusters
    • provide the payload completing with the details from the edge cluster details acquired in the previous steps the payload. For example,

{
  "name": "ExampleEdgeCluster",
  "description": "Description",
  "nsxTManagerRef": {
    "id": "urn:vcloud:nsxtmanager:2216b7c1-####-####-####-############",
    "name": "nsxManager1"
  },
  "backingRef": {
    "id": "bc3005f3-####-####-####-############",
    "name": "ExampleEdgeCluster"
  }
}

  • Execute
    • The edge cluster ('ExampleEdgeCluster' in this example) will get imported into VCD