In NSX-T Data Center, deleting port mirroring sessions fails
search cancel

In NSX-T Data Center, deleting port mirroring sessions fails

book

Article ID: 322483

calendar_today

Updated On:

Products

VMware NSX Networking

Issue/Introduction

Symptoms:
  • You've recently deleted a port mirroring profile through NSX UI.
  • Trying the below DELETE API call to delete the port mirroring sessions, Returns status 500 Internal Server Error with the following output:
DELETE /policy/api/v1/infra/port-mirroring-profiles/<port-mirroring-profile-id> 
Output:
{
    "module_name": "common-services",
    "error_message": "General error has occurred.",
    "details": "java.lang.NullPointerException",
    "error_code": 100
}
  • After that the port mirroring session gets stuck in deletion in progress state, and you are unable to create more port mirroring profiles.
  • In NSX-T Manager log /var/log/nsxapi.log the following messages can be seen: 
INFO http-nio-127.0.0.1-7440-exec-16 PortMirroringProfileServiceImpl 79136 POLICY [nsx@6876 comp="nsx-manager" level="INFO" reqId="4aefdb4e-d4d8-11ec-9b82-0200ab650843" subcomp="manager" username="admin"] Validating Delete on Port mirroring profile /infra/port-mirroring-profiles/<port-mirroring-profile-id> 
ERROR http-nio-127.0.0.1-7440-exec-16 NsxBaseRestController 79136 SYSTEM [nsx@6876 comp="nsx-manager" errorCode="MP100" level="ERROR" subcomp="manager"]
java.lang.NullPointerException: null


Environment

VMware NSX-T Data Center

Cause

In NSX-T Data Center, when deleting a port mirroring profile, under certain conditions, it can lead to a stale entry in the NSX-T manager database.

Resolution

This is a known issue impacting VMware NSX.

Workaround:
  • If you believe you have encountered this issue, please open a support request with VMware NSX-T GSS and refer to this KB article.
  • For more information, see How to Submit a Support Request.