NSX-T Datasource fails to collect due to the same cursor value being returned for the VIF API.
search cancel

NSX-T Datasource fails to collect due to the same cursor value being returned for the VIF API.

book

Article ID: 318424

calendar_today

Updated On:

Products

VCF Operations for Networks

Issue/Introduction

To Provide cause and workaround for the VIF API not returning correct values and causing collection failure on the NSX-T Datasource.


Symptoms:
  • NSX-T datasource throws error similar to "Data Source is not reachable from Collector VM"
  • Security Group details are not attached to VMs in vRNI
  • Collector logs are overly logging suppressed sdm message like below, causing the logs to rotate within 3 minutes window:

2022-02-01T18:05:17.362Z INFO dataprovider.utils.CollectorUtils NSXT_nsxdeweiis.infoserve.endress.com_Config_OpMgr_Policy-0 pushPayLoadToCollector:311 Suppressing upstreamDataType=com.vnera.model.vmware.policymanager.VirtualNetworkInterface.config, hashKey=52d5c3ca-cd4e-4c06-b58a-2db6a5b2ec58, consumerIdentifier=1, dpIdentifier=dataProviderIdentifier: "NSXT_NSX_T_IP_or_FQDN"

customerId: 12885

suppressionKey=null

  • NSX-T API outputs of

/policy/api/v1/infra/realized-state/enforcement-points/default/vifs

/api/v1/fabric/vifs

  • Returns the same output

....

"result_count" : 1608,

"cursor" : "00406047232139751999022.-6804718935994577644TmV0d29yayBhZGFwdGVyIDE="

  • NSX-T Environment has greater than 1000 VIFs.


Environment

Aria Operations for Network 6.x

Cause

  • The NSX-T API endpoint /policy/api/v1/infra/realized-state/enforcement-points/default/vifs?page_size=1000 returns 1000 entries and a cursor at the end in the response.
  • Using the cursor value from the above response we fire another API as mentioned below: /policy/api/v1/infra/realized-state/enforcement-points/default/vifs?page_size=1000&cursor=<value-of-cursor>
  • This returns the same cursor value
  • NSX-T APIs which we use to fetch Virtual Network Interface return same cursor over and over, leading to fetch of the same set of entities, and in turn, leading to the task getting stuck.

Resolution

This issue is resolved in NSX-T 3.2.2 and 4.0.


Workaround:

If you believe you have encountered this issue, please open a support case with Broadcom Support and refer to this KB article. For more information, see Creating and managing Broadcom support cases.

Additional Information

Impact/Risks:
  • NSX-T datasource will fail to collect.
  • Security Groups will not be attached to NSX-T VMs