"Logical Switch State has failed" alert is active but the logical switch is functioning in NSX
search cancel

"Logical Switch State has failed" alert is active but the logical switch is functioning in NSX

book

Article ID: 382797

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

The "Logical Switch State has failed" alert is active in Aria Operations but the logical switch is functioning in NSX

Environment

Aria Operations 8.x

Cause

Aria Operations collects the value of the logical switch state from the NSX API via the configured NSX adapter. If the API is reporting the logical switch state is failed, the cause will need to be investigated by the NSX team.

Resolution

To review the API response that Aria Operations is evaluating:

  1. Log in as root to the Aria Operations node or cloud proxy where the NSX adapter is collected and run the following commands

  2. u=<username>

    Note: Replace <username> with the collection user from the NSX adapter configuration

  3. p=$(systemd-ask-password)

    Note: Provide the password for the collection user from the NSX adapter configuration

  4. curl -k https://<nsx_manager_fqdn>/api/v1/logical-switches/state --user "${u}:${p}"

Review the response for any logical switches where the state is failed to verify the alert is valid.

Additional Information

The API command provided is for NSX environments that have not converted to Policy Mode. If using Policy Mode, the correct API to use is

/policy/api/v1/infra/tier-1s/{tier-1-id}/segments/{segments-id}/state/policy/api/v1/infra/segments/{segments-id}/state

where tier-1-id and segments-id would need to be provided accordingly.

 

Additional symptoms:

-The Logical switch was reported in failed state on aria operations after upgrading NSX from 3.2.3 to 4.1.2.5.

- After running api call to the logical switches we observed that two logical switches were in failed state. Despite this, VMs operating on the affected segment continued to function without any network connectivity issues.

Workaround:

-As a workaround we edited the affected segment and added a description to the same. The changes made were then saved. This helps in syncing the logical switches current state.