Expanding existing stretch cluster fails with "Error occurred while generating input for add hosts in NSX environment"
search cancel

Expanding existing stretch cluster fails with "Error occurred while generating input for add hosts in NSX environment"

book

Article ID: 438283

calendar_today

Updated On:

Products

VMware SDDC Manager / VCF Installer

Issue/Introduction

Expanding existing stretched cluster failing with error 

Message: Error occurred while generating input for add hosts in NSX environment

Cause: Cannot invoke "java.util.Collection.iterator()" because "c" is null

 

Checking transport zone in NSX yuo can see that is shows correctly.

Environment

VCF 5.2

Cause

The worfklow value zoneNames is missing or not populated.

Resolution

Make sure to have snapshot of SDDC before taking any action and also backup the intermediate file workflow.json before making any changes.

 

Extract workflow spec file following these steps Re-try an existing workflow by modifying the workflow spec file 

Find similar entries in exported file

 "hostIds" : [
         "java.util.ArrayList",
         [
            [
               "java.util.UUID",
               "#######-######-######-#######"
            ],
            [
               "java.util.UUID",
               "#######-######-######-#######"
            ],
            [
               "java.util.UUID",
               "#######-######-######-#######"
            ],
            [
               "java.util.UUID",
               "#######-######-######-#######"
            ],
            [
               "java.util.UUID",
               "#######-######-######-######"
            ]
         ]
      ],
      "hostToUplinkProfileMap" : null,
      "listOfIpAddressPoolSpec" : null,

 

add following in spec file 

 

 "hostIds" : "zoneNames" : [
 [
         "java.util.ArrayList",
         [
            [
               "java.util.UUID",
               "#######-######-######-#######"
            ],
            [
               "java.util.UUID",
               "#######-######-######-#######"
            ],
            [
               "java.util.UUID",
               "#######-######-######-#######"
            ],
            [
               "java.util.UUID",
               "#######-######-######-#######"
            ],
            [
               "java.util.UUID",
               "#######-######-######-######"
            ]
         ]
      ],
      "hostToUplinkProfileMap" : null,
      "listOfIpAddressPoolSpec" : null,

After that import spec file and re-run task.