infobloxopen / terraform-provider-infoblox

Infoblox NIOS Terraform Provider
https://github.com/infobloxopen/terraform-provider-infoblox
Mozilla Public License 2.0
73 stars 81 forks source link

Result set too large (> 1000) #169

Open dimatha opened 3 years ago

dimatha commented 3 years ago

Infoblox version: 8.5.2 Provider version: v2.0.1

If the record exists already and it is not in the state, the search is done based on record type, which exceeds the hardcoded threshold.

I'm getting the error below when trying to create a record:

Error: Creation of CNAME Record under Public DNS View failed : WAPI request error: 400('400 Bad Request') │ Contents: │ { "Error": "AdmConProtoError: Result set too large (> 1000)", │ "code": "Client.Ibap.Proto", │ "text": "Result set too large (> 1000)" │ }

Should we allow to set the limit ?

somashekhar commented 3 years ago

Hi @dimatha, At present the plugin does not have an import functionality in place. Also the error is from WAPI server. Bit more explanation on what is being attempted and underlying environment would be helpful.

dimatha commented 3 years ago

Hello @somashekhar,

Thanks for the reply !

I just wanted to outline the behaviour, when a record already exists and it wasn't created via TF (not in the state) and you run a TF deployment trying to create the same record the search routine goes through the whole Infoblox DB based on the record type only, which results in the error above. Should we allow setting "_max_results" or implement pagination ?

If you think it is not applicable here, please proceed with closing the issue.

Thanks

somashekhar commented 3 years ago

This is an issue at Go client. Good to investigate there and look for a possible implementation of pagination or max_results as requested by @dimatha .

donbecerro commented 1 month ago

Hi, I see this is an open topic since 2021. Is there any update about this feature ? Will it be possible to increment the max_results beyond 1000 ? I really need this, I have some data sources returning more than 1000 elements and I get the " Result set too large (> 1000) error ".

Thank you very much in advance.