Support bundle generation fails for NSX Manager after a failed V2T migration
search cancel

Support bundle generation fails for NSX Manager after a failed V2T migration

book

Article ID: 385355

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

  • Migrating from NSX-V to NSX-T failed.
  • When trying to collect support bundle, bundle generation for one of the managers fails.
  • Logs similar to below are seen in

support_bundle.log
2024-12-10 13:27:57,147 27731 root ERROR Exception generating tech-support bundle
Traceback (most recent call last):
  File "/opt/vmware/nsx-node-api/bin/python/management_api/napi/root/administration/support_bundles/__self__.py", line 517, in _gen_local_node_support_bundle
    rc, out, err = _create_tar_bundle_archive(
  File "/opt/vmware/nsx-node-api/bin/python/management_api/napi/root/administration/support_bundles/__self__.py", line 662, in _create_tar_bundle_archive
    rc, out, err = _add_dir_content(
  File "/opt/vmware/nsx-node-api/bin/python/management_api/napi/root/administration/support_bundles/__self__.py", line 785, in _add_dir_content
    rc, out, err = append_to_support_bundle_file(
  File "/opt/vmware/nsx-node-api/bin/python/management_api/napi/root/administration/support_bundles/utils.py", line 667, in append_to_support_bundle_file
    po = Popen(cmd, stdout=PIPE, stderr=PIPE)
  File "/usr/lib/python3/dist-packages/gevent/subprocess.py", line 808, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3/dist-packages/gevent/subprocess.py", line 1804, in _execute_child
    raise child_exception
OSError: [Errno 7] Argument list too long: '/usr/bin/nohup'

Environment

VMware NSX

Cause

There are unexpectedly large number of files in the following directories in the problematic manager node. The large number of files in these directories triggers an error which aborts the bundle collection.

       /var/log/migration-coordinator/v2t/nsxv-config
       /var/log/migration-coordinator/v2t-backups/v2t/nsxv-config

 

Resolution

Workaround:

  • Create the following temporary directories:
      /image/var/log/migration-coordinator/v2t/nsxv-config
      /image/var/log/migration-coordinator/v2t-backups/v2t/nsxv-config
  • Move the files under
    • /var/log/migration-coordinator/v2t/nsxv-config and /var/log/migration-coordinator/v2t-backups/v2t/nsxv-config to their corresponding directories under /image/...
  • If migration-coordinator logs are required for NSX support team to triage the problem, then separately archive the /image/var/log/migration-coordinator directory and attach along with the support bundle.