Empty configuration on node profile results in local node settings being overwritten in NSX
search cancel

Empty configuration on node profile results in local node settings being overwritten in NSX

book

Article ID: 458795

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

  • One or more settings (SNMP, syslog, NTP, DNS) are configured and later unconfigured (left empty) in an NSX node profile.
  • One or more of these same settings is configured locally (via CLI) on one or more NSX nodes.
  • On the NSX node where the setting is configured locally, the configuration is automatically removed within four hours

Environment

VMware NSX

Cause

NSX cannot differentiate between and empty and null configuration for an item in a node profile. When a setting is configured and later unconfigured, the node profile will push the empty configuration down to all nodes, regardless of what is configured locally. This will overwrite locally configured settings.

Resolution

This is a known issue affecting VMware NSX. There is currently no resolution. 

To workaround this issue, reconfigure the node profile with the appropriate settings if it is applicable to all nodes.

If the setting to be configured is not appropriate for all nodes, the NSX API can be used to clear the offending configuration from the node profile.

  1. GET /api/v1/configs/central-config/node-config-profiles/00000000-0000-0000-0000-000000000001
  2. Edit the output such that the setting that needs to be modified locally is removed. For example, if the setting is NTP, remove the stanza similar to the following:

        "ntp": {
            "servers": [
                "192.168.0.1"
            ]
        },

  3. PUT /api/v1/configs/central-config/node-config-profiles/00000000-0000-0000-0000-000000000001

    Note: The payload will be the edited response from Step 1.
    See the Configure Node Config profile API page for more details.

  4. Use the NSX CLI to configure the setting on the appropriate NSX nodes.

Additional Information

Configure a Node Profile