NSX-T Policy API for Tier-1 Gateway State Fails with "The path=[] is invalid" Due to Empty edgeClusterLabelPath
search cancel

NSX-T Policy API for Tier-1 Gateway State Fails with "The path=[] is invalid" Due to Empty edgeClusterLabelPath

book

Article ID: 413963

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

  • API calls to GET /policy/api/v1/infra/tier-1s/<tier-1-uuid>/state return an HTTP 400 Bad Request error.
  • The API response body contains the error message: {"moduleName":"Policy","errorCode":500012,"errorMessage":"The path=[] is invalid"}.

Environment

VMware NSX
VMware NSX-T Data Center

Cause

The error "The path=[] is invalid" for a Tier-1 Gateway's state API call is caused by an inconsistency in the NSX-T internal database (Corfu), specifically an empty edgeClusterLabelPath field within the T1 Gateway's locale services configuration. The Policy API's internal validation mechanisms interpret this empty path as malformed or invalid, leading to the API call failure.

Resolution

The resolution involves manually correcting the corrupted edgeClusterLabelPath entry for the affected Tier-1 Gateway's locale service in the NSX-T internal database (Corfu) using the corfu_tool_runner.py utility.

Please reach out to the Broadcom support with the following details.
1) NSX manager support bundle
2) API call output.
GET /policy/api/v1/infra/tier-1s/<tier-1-uuid>/state