NSX Local Manager "import to GM" option is greyed out
search cancel

NSX Local Manager "import to GM" option is greyed out

book

Article ID: 417970

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

  • Created a new Global Manager and added 2 Local Manager nodes. One node is able to "import" the config but the other cannot. 
  • Unable to click "import to GM" in Local Manager UI:
     

Environment

VMware NSX

Cause

  • Running the following API shows "onboarding status" 
    GET https://<gm-ip>/global-manager/api/v1/global-infra/sites/<site>/onboarding/status
    
    {
    
        "site_id": "###-###",
    
        "status": "BLOCKED_USER_REJECT",
    
        "details": {
    
            "error_messages": [
    
                {
    
                    "error_code": 606136,
    
                    "error_message": "Config onboarding blocked according to user preference at site <site-name>."
    
                }
    
            ],
    
            "site_backup_reference": ""
    
        },
    
        "timestamp": ############
    
    }
  • Below API shows "ignore_import" flag set to true. This is preventing the import workflow.  
    GET https://<lm_ip>/global-manager/api/v1/global-infra/sites/<site_name>/onboarding/preferences
    
    {
    
        "site_id": "<site-name>",
    
        "ignore_import": true,      <----------- 
    
        "resource_type": "SiteOnboardingPreference",
    
        "id": "/global-infra/sites/<sites>/onboarding-preferences/default",
    
        "display_name": "/global-infra/sites/<sites>/onboarding-preferences/default",
    
        "_system_owned": true,
    
        "_protection": "NOT_PROTECTED",
    
        "_create_time": #############,
    
        "_create_user": "<user_account>",
    
        "_last_modified_time": #############,
    
        "_last_modified_user": "<user_account>",
    
        "_revision": 1
    
    }

Resolution

  • Update "ignore_import" flag to "false" with the following API:
    PUT https://<lm_ip>/global-manager/api/v1/global-infra/sites/<site>/onboarding/preferences
    {
      "site_id": "<site_id>",
      "ignore_import": false
    }

    NOTE: You can copy the output from the "GET" command, change the "ignore_import" flag and paste this content into the API body.