“Error while getting logical router” when querying NSX logical-router diagnosis information from API
search cancel

“Error while getting logical router” when querying NSX logical-router diagnosis information from API

book

Article ID: 368697

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

  • Using NSX API to query logical-router diagnosis information returns the following error:
    • API call:  GET /api/v1/transport-nodes/<transport-node-id>/node/logical-routers/diagnosis

      {
          "error_code": 36941,
          "error_message": "Error while getting logical router",
          "module_name": "node-services"
      }

Environment

NSX version prior to 3.2.4

Cause

Issue is caused by incorrectly parsing logical-router "failover mode" section.
If transport node contains logical-router with "failover mode" n/a, this issue may be encountered.

To verify, ssh into edge transport node and run the following commands:

edge> get logical-router <UUID> high-availability status
Service Router
UUID                  : <UUID>
state                 : Active
type                  : TIER1
mode                  : A/S
failover mode         : n/a  <-----

 

Resolution

This issue is resolved in VMware NSX 3.2.4
This issue is resolved in VMware NSX 4.2.0