How to delete stale IPFIX Collector Profile from NSX UI
search cancel

How to delete stale IPFIX Collector Profile from NSX UI

book

Article ID: 435234

calendar_today

Updated On:

Products

VMware NSX VMware vSphere ESXi

Issue/Introduction

  • A segment is configured as a source for a Switch IPFIX profile.

  • The profile and its associated segments were deleted, so the necessary IPFIX profile must be deleted.

  • While deleting it, the following error is reported:
    " Cannot delete profile <IPFIX-Switch-Profile> as it has 1 association(s) in 'Applied To' field. Please remove all the association(s) and try again. "

  • On attempt to delete the IPFIX Collector, the following error is reported:
    "Error: The object IPFIXL2CollectorProfile '<collector-name>' cannot be deleted as either it has children or it is being referenced by other objects: Default: IPFIXL2Profile '<IPFIX-profile>'"
  • The segments count under NSX UI > Plan & Troubleshoot > IPFIX > Switch IPFIX Profiles > Specific Profile > Applied To (segments list), is not showing the correct number of segments under "Applied To" column.
    • For example, the Applied to column shows 6 segments, but inside the 'Applied To' details there are only 5 segments listed because one of the segments is already deleted.

Environment

VMware NSX

Cause

The segment was deleted before the IPFIX profile was removed, causing a stale entry for the required profile. As a result, NSX continues to show an entry associated with the profile

Resolution

This issue is resolved in VMware NSX 4.2.

If you believe you have encountered this issue, open a support case with Broadcom Support and refer to this KB article.

For more information, see Creating and managing Broadcom support cases.

 

Related KB: Unable to delete Switch IPFIX Profile from NSX UI

Additional Information

If you are contacting Broadcom support about this issue, provide the following:

  1. The output of the API below to list the IPFIX-Profiles on the MP side and note the Profiles IDs:
    NSX-Manager# curl -k -u admin GET-X "https://localhost/api/v1/ipfix-profiles/"
  2. The output of the API below to list the Collector Profiles and note the Collector Profile ID:
    NSX-Manager# curl -k -u admin -X GET "https://localhost/api/v1/ipfix-collector-profiles/"
  3. Dump of the Corfu Table "SegmentMonitoringProfileBindingMap":
    NSX-Manager# /opt/vmware/bin/corfu_tool_runner.py -o showTable -n nsx -t SegmentMonitoringProfileBindingMap