Editing an NSX-T Data Center Edge Transport Node configuration returns error "Invalid IP range format"
search cancel

Editing an NSX-T Data Center Edge Transport Node configuration returns error "Invalid IP range format"

book

Article ID: 319134

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

  • The environment is running NSX-T Data Center 3.x.
  • You have NSX-T Edge nodes deployed, VM and/or physical form factor.
  • Attempts to edit any configuration field on the Edge Node, for example: Uplink Profile, TEP configuration, Uplinks results in the below error:

             

  • The NSX-T Edge Node is configured to send logging to a remote server, the remote server is set using FQDN and not IP address:

    edge01> get logging-server
    Sun Sep 19 2021 UTC 11:48:53.773
    vrli.example.com:514 proto tcp level info

              

Environment

VMware NSX-T Data Center 3.x

Cause

This issue occurs since UI implicitly refreshes edge configuration when Edit Transport Node is clicked.
Since there is stale FQDN format syslog server in Manager snapshot of the Edge, the update operation fails.

Resolution

This issue is resolved in VMware NSX-T Data Center 3.2.0

Workaround:

 

  1. Confirm syslog is configured on edge node: 

    GET https://<Mngr_IP>/api/v1/transport-nodes/<Edge_node_ID>/node/services/syslog/exporters

    Sample result, in bold below the syslog details:

  2. Delete the syslog configurations from the Edge Node using the exporter name from result above with the following API: 

    DELETE https://<Mngr_IP>/api/v1/transport-nodes/<Edge_node_ID>/node/services/syslog/exporters/<exporter_name> 

    For example:

    DELETE https://192.168.120.1/api/v1/transport-nodes/a7002350-####-####-####-##########5f/node/services/syslog/exporters/3a0401dd-####-####-####-##########b9
  3. Confirm syslog configuration is removed using API: 

    GET https://<Mngr_IP>/api/v1/transport-nodes/<Edge_node_ID>

    If the syslog configuration is not removed, you may still see an entry like the following:

    .
          "syslog_servers": [
            {
              "server": "vrli.example.com",
              "port": "514",
              "protocol": "TCP",
              "log_level": "INFO"
    .
  4. Use the following PUT API to enter all the output retrieved from step 3, excluding the syslog configuration section as below: 

    PUT https://<Mngr_IP>/api/v1/transport-nodes/<Edge_node_ID>

    See below for sample entry:

    .
           ],
          "dns_servers": [
            "192.168.110.10"
          ],
          "enable_ssh": true,
          "allow_ssh_root_login": false
        },
        "resource_type": "EdgeNode",
        "id": "a7002350-####-####-####-##########5f",
    .


  5. Ensure the PUT API status results in 200 OK




  6. In the NSX-T Data Center UI, System - Fabric - Nodes - Edge Transport Nodes, select the checkbox for the Edge Node and click Actions and then click Sync Edge Configuration.
  7. You should now be able to proceed and complete the previous Edge Node edit which was failing with the error: "Invalid IP range format" without error.