Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infoblox implementation will throw exceptions when there are over 999 hosted zones #2102

Closed
mmerrill3 opened this issue May 25, 2021 · 2 comments · Fixed by #2110
Closed
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@mmerrill3
Copy link
Contributor

What happened:

External-dns is ran with the configuration to use infoblox as the DNS provider. If the size of the hosted zones from the GET API "zone_auth" is larger than 999 hosted zones, the infoblox API will throw an exception

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Run external-dns with infoblox as the DNS provider. If there are more than 1000 results come back from zone_auth, infoblox will return an exception

Here is a shell file to replicate the issue, fill in a GRID_HOST that has more than 1000 hosted zones.

export GRID_HOST=test.com
export WAPI_PORT=443
export WAPI_VERSION=2.10.3
export WAPI_USERNAME=<user>
export WAPI_PASSWORD=<password>
curl -kl \
      -X GET \
      -u ${WAPI_USERNAME}:${WAPI_PASSWORD} \
         https://${GRID_HOST}:${WAPI_PORT}/wapi/v${WAPI_VERSION}/zone_auth?_return_fields=extattrs,fqdn,view

The output will be :

{ "Error": "AdmConProtoError: Result set too large (> 1000)",
"code": "Client.Ibap.Proto",
"text": "Result set too large (> 1000)",
"trace": " File "ibapapachemod.py", line 470, in handlerequest\n File "/infoblox/common/lib/python/infoblox/one/admin_conn/wapibase.py", line 1485, in execute\n File "/infoblox/common/lib/python/infoblox/one/admin_conn/wapibase.py", line 1439, in _exec_handler\n File "/infoblox/common/lib/python/infoblox/one/admin_conn/wapihandler.py", line 887, in execute\n File "/infoblox/common/lib/python/infoblox/one/wapibaseobj.py", line 1377, in read\n"
Anything else we need to know?:

Environment:

curl -k -u admin:infoblox -X GET "https://gridmaster/wapi/v2.10.3/zone_auth?fqdn~=^staging.*.test.com$&_return_fields=fqdn&_return_as_object=1"

@mmerrill3 mmerrill3 added the kind/bug Categorizes issue or PR as related to a bug. label May 25, 2021
@mmerrill3
Copy link
Contributor Author

This is applicable for large organizations where there are thousands of hosted zones,... like mine.

@mmerrill3
Copy link
Contributor Author

FYI @saileshgiri

mmerrill3 pushed a commit to mmerrill3/external-dns that referenced this issue May 26, 2021
…-sigs#2102)

Signed-off-by: mmerrill <mike@Mikes-MBP.fios-router.home>
mmerrill3 pushed a commit to mmerrill3/external-dns that referenced this issue May 27, 2021
…-sigs#2102)

Signed-off-by: mmerrill <mike@Mikes-MBP.fios-router.home>
mmerrill3 pushed a commit to mmerrill3/external-dns that referenced this issue May 27, 2021
mmerrill3 pushed a commit to mmerrill3/external-dns that referenced this issue May 27, 2021
mmerrill3 added a commit to mmerrill3/external-dns that referenced this issue May 27, 2021
mmerrill3 added a commit to mmerrill3/external-dns that referenced this issue May 27, 2021
k8s-ci-robot added a commit that referenced this issue Jun 23, 2021
Adding ability to query Infoblox API using regex for fqdn (#2102)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
1 participant