Port_mirror.fail_to_upgrade_mp_mirror_to_policy_mirror alarm
search cancel

Port_mirror.fail_to_upgrade_mp_mirror_to_policy_mirror alarm

book

Article ID: 405642

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

Title: Alarm for port_mirror.fail_to_upgrade_mp_mirror_to_policy_mirror
Event ID: port_mirror.fail_to_upgrade_mp_mirror_to_policy_mirror
Alarm Description:

  • Purpose: To remind users that upgrading mp mirror to policy mirror failed during upgrade time.
  • Impact: Some or all MP mirror sessions cannot be upgraded to Policy mirror sessions.

Environment

VMware NSX 9.1 and above

Cause

Some or all MP mirror sessions cannot be upgraded to Policy mirror sessions after upgrade.

Resolution

Steps to Resolve

For VCF 9.1 and higher

Recommended Action:

  1. Run local API command "curl -X GET http://localhost:7440/nsxapi/api/v1/mirror-sessions" to get all sessions on manager node. If the "_create_user" is not "nsx_policy", it means this session can not be upgraded to Policy mirror session.
  2. Check the backed up MP mirror sessions, which name with prefix PortMirroringSession in path /var/log/proton on manager node.
  3. Compare the results of Step 1 (as target) and Step 2 (as source) to identify the sessions that failed to upgrade:
    • In target result, if the MP mirror sessions are upgraded to Policy mirror sessions successfully, the "display_name" of the policy mirror session will use the original MP mirror session name as a prefix, followed by eight random characters. Additionally, the "_create_user" field will appear as "nsx_policy".
    • In target result, if the "display_name" is still the original MP mirror session name or "_create_user" is not "nsx_policy" in target result, it means this session is not upgraded to Policy mirror session. Run local API command "curl -X DELETE http://localhost:7440/nsxapi/api/v1/mirror-sessions/<session-id>" to delete un-upgraded MP session on manager node, where the <session-id> value is retrieved from target result.
    • If the session is not in the target result, it means the session is deleted. It does note need to be deleted again; just need to manually create it.
  4. Based on the results of Step 2, manually create the corresponding Policy mirror sessions which MP mirror session is failed to upgrade.