"Input objects list should be less than 1000 in size" error during an NSX-V to NSX-T migration with VMware NSX Migration for VMware Cloud Director
search cancel

"Input objects list should be less than 1000 in size" error during an NSX-V to NSX-T migration with VMware NSX Migration for VMware Cloud Director

book

Article ID: 374669

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • You see this error 500 response in the NSX migrator precheck logs:

2024-07-09 15:59:15,765 [connectionpool]:[_make_request]:452[DEBUG] [redacted_system] |https://vcloud.example.url:443 "GET /api/query?type=vApp&page=2&pageSize=50&format=records&sortAsc=name HTTP/1.1" 500 None

  • In the vcloud-container-debug.log you see this message:

java.lang.IllegalArgumentException: Getting objects information for greater than 1000 is not handled. Input objects list should be less than 1000 in size.

 

Environment

VMware Cloud Director 10.3.3.4

NSX-T 3.2

vCenter 7.0U3

ESXi 7.0U3

Cause

Currently, the code in 10.3.3.4 is designed to enforce a constraint on the size of a list of objects being processed. It ensures that the list size does not exceed a predefined limit (maxBindLimit). If the list is too large, the code throws an exception with the error message, indicating that the input list should be smaller than the allowed limit.

Resolution

restapi.queryservice.maxBindLimit is configurable so we can use the Cell Management Tool to set the desired values:

SSH to your Primary appliance and run these to determine if the values have been set previously:

/opt/vmware/vcloud-director/bin/cell-management-tool manage-config -n restapi.queryservice.maxBindLimit -l
/opt/vmware/vcloud-director/bin/cell-management-tool manage-config -n restapi.queryservice.maxInClauseExpressions -l

If not, set them with the following commands and then rerun the previous set of command to validate:

/opt/vmware/vcloud-director/bin/cell-management-tool manage-config -n restapi.queryservice.maxBindLimit -v 2000
/opt/vmware/vcloud-director/bin/cell-management-tool manage-config -n restapi.queryservice.maxInClauseExpressions -v 2000

Execute on the Standbys and restart the VCD services:

service vmware-vcd restart