Ansible NSX-T collection after a certain number of calls, they receive a "connection refused"
search cancel

Ansible NSX-T collection after a certain number of calls, they receive a "connection refused"

book

Article ID: 377021

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

  • When the page size of ip pools is set more than 100.
  • While executing the module nsxt_ip_pools of the ansible nsxt-collection, ids of ip pools will be gathered via this request method.
  • The module nsxt_ip_pools is using the module util vmware_nsxt.py, which will then run into an HTTP Error code: 111

Environment

NSX-T 3.X

NSX 4.X

Cause

After fetching a certain number of API response pages, due to the excessive and unnecessary number of calls made by the code for pagination, the ansible client might receive a "connection refused" when attempting to connect to NSX.
This issue will only occur if the size of the response generated by NSX exceeds the default API response page size.

 

Resolution

The code on vmware_nsxt.py was modified 

At the moment we don't have a date when it will be included in the zip file we ship with NSX but it is possible to pull latest code from master branch.

Refer https://github.com/vmware/ansible-for-nsxt/pull/512 for more details.