In NSX 4.1.x, executing "get configuration" on an Edge Node results in internal error
search cancel

In NSX 4.1.x, executing "get configuration" on an Edge Node results in internal error

book

Article ID: 312617

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

  • Executing  "get configuration" on an NSX-T Edge node results in "An internal error occurred, please retry execution again".
  • Logs similar to the below will be observed at var/log/syslog:
2024-04-10T07:47:11.955Z NSXT01 NSX 593655 - [nsx@6876 comp="nsx-edge" subcomp="cli" username="admin" level="INFO"] {10000} CMD: get configuration

2024-04-10T07:47:15.324Z NSXT01 NSX 593655 - [nsx@6876 comp="nsx-edge" subcomp="cli" username="admin" level="ERROR" errorCode="('CLI102',)"] Invalid IP address or netmask detected: addr: None, netmask: None

2024-04-10T07:47:15.324Z NSXT01 NSX 593655 - [nsx@6876 comp="nsx-edge" subcomp="cli" username="admin" level="ERROR" errorCode="('CLI101',)"] Error occured while concurrently executing commands

Traceback (most recent call last):

 File "/opt/vmware/nsx-cli/bin/python/cli/server/cli_command_service.py", line 1311, in _invoke_command

  request = executor.submit(transaction.execute_command)

 File "/opt/vmware/nsx-cli/bin/python/cli/utils/concurrent_utils.py", line 42, in submit

  result = method(*args)

 File "/opt/vmware/nsx-cli/bin/python/cli/server/cli_command_session.py", line 312, in execute_command

  self._execute_local_cli()

 File "/opt/vmware/nsx-cli/bin/python/cli/server/cli_command_session.py", line 257, in _execute_local_cli

  output = self.env.descriptor.invoke(self.env.cmd_list)

 File "/opt/vmware/nsx-cli/bin/python/cli/descriptors/cli_command_descriptor.py", line 550, in invoke

  return self._provider.invoke(

 File "/opt/vmware/nsx-cli/bin/python/cli/utils/callback_utils.py", line 201, in decorator

  return func(self, cmd_list, context, context_data,

 File "/opt/vmware/nsx-cli/bin/python/cli/descriptors/cli_command_descriptor.py", line 1288, in invoke

  return self._provider(cmd_list)

 File "/opt/vmware/nsx-cli/bin/python/cli/commands/node_common/node.py", line 328, in __call__

  result = self._descriptor.service._get_configuration_command_output(

 File "/opt/vmware/nsx-cli/bin/python/cli/server/cli_command_service.py", line 1950, in _get_configuration_command_output

  _add_to_config_results(

 File "/opt/vmware/nsx-cli/bin/python/cli/server/cli_command_service.py", line 1931, in _add_to_config_results

  config = descriptor.show_configuration()

 File "/opt/vmware/nsx-cli/bin/python/cli/descriptors/cli_command_descriptor.py", line 584, in show_configuration

  return self._provider.show_configuration()

 File "/opt/vmware/nsx-cli/bin/python/cli/descriptors/cli_command_descriptor.py", line 1293, in show_configuration

  return self._provider.show_configuration()

 File "/opt/vmware/nsx-cli/bin/python/cli/commands/node_network/node_network.py", line 196, in show_configuration

  cidr6 = ip_utils.get_cidr(ip6_addr, prefixlen)

 File "/opt/vmware/nsx-cli/bin/python/cli/utils/ipaddr_utils.py", line 75, in get_cidr

  if not validate_netmask(netmask, ip_type):

 File "/opt/vmware/nsx-cli/bin/python/cli/utils/ipaddr_utils.py", line 213, in validate_netmask

  return (netmask.isdigit() and int(netmask) >=0 and int(netmask) <=128)

AttributeError: 'int' object has no attribute 'isdigit'

2024-04-10T07:47:15.335Z NSXT01 NSX 593655 - [nsx@6876 comp="nsx-edge" subcomp="cli" username="admin" level="WARNING"] An internal error occurred, please retry execution again

 

 

Environment

VMware NSX
VMware NSX-T Data Center

Resolution

This issue is resolved in VMware NSX 4.2.0


Workaround:

Currently there is no direct workaround, to view the interface configuration, "get interfaces" can be used.