Skip to content

Instantly share code, notes, and snippets.

@fjaeckel
Created July 26, 2023 13:47
Show Gist options
  • Save fjaeckel/6500b24b822492916cf2b58aea1bedc9 to your computer and use it in GitHub Desktop.
Save fjaeckel/6500b24b822492916cf2b58aea1bedc9 to your computer and use it in GitHub Desktop.
2023-07-26T11:42:41 [139998849877824] DEBUG PowerDnsProvider[intauth-eastus] __init__: id=intauth-eastus, host=10.0.0.18, port=8081, nameserver_values=None, nameserver_ttl=None
2023-07-26T11:42:41 [139998849877824] DEBUG PowerDnsProvider[intauth-eastus] __init__: id=intauth-eastus, apply_disabled=False, update_pcent_threshold=0.30, delete_pcent_threshold=0.30
2023-07-26T11:42:41 [139998849877824] DEBUG PowerDnsProvider[intauth-eastus] _request: method=GET, path=
2023-07-26T11:42:41 [139998849877824] DEBUG urllib3.connectionpool Starting new HTTP connection (1): 10.0.0.18:8081
2023-07-26T11:42:41 [139998849877824] DEBUG urllib3.connectionpool http://10.0.0.18:8081 "GET /api/v1/servers/localhost HTTP/1.1" 401 12
2023-07-26T11:42:41 [139998849877824] DEBUG PowerDnsProvider[intauth-eastus] _request: status=401
Traceback (most recent call last):
File "/data/dns/env/lib/python3.9/site-packages/octodns_powerdns/__init__.py", line 279, in powerdns_version
resp = self._get('')
File "/data/dns/env/lib/python3.9/site-packages/octodns_powerdns/__init__.py", line 105, in _get
return self._request('GET', path, data=data)
File "/data/dns/env/lib/python3.9/site-packages/octodns_powerdns/__init__.py", line 101, in _request
resp.raise_for_status()
File "/data/dns/env/lib/python3.9/site-packages/requests/models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: http://10.0.0.18:8081/api/v1/servers/localhost
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/data/dns/env/bin/octodns-validate", line 8, in <module>
sys.exit(main())
File "/data/dns/env/lib/python3.9/site-packages/octodns/cmds/validate.py", line 23, in main
manager = Manager(args.config_file)
File "/data/dns/env/lib/python3.9/site-packages/octodns/manager.py", line 128, in __init__
self.providers = self._config_providers(providers_config)
File "/data/dns/env/lib/python3.9/site-packages/octodns/manager.py", line 193, in _config_providers
providers[provider_name] = _class(provider_name, **kwargs)
File "/data/dns/env/lib/python3.9/site-packages/octodns_powerdns/__init__.py", line 640, in __init__
super().__init__(
File "/data/dns/env/lib/python3.9/site-packages/octodns_powerdns/__init__.py", line 89, in __init__
self.mode_of_operation = mode_of_operation
File "/data/dns/env/lib/python3.9/site-packages/octodns_powerdns/__init__.py", line 329, in mode_of_operation
if self.powerdns_version >= [4, 5]:
File "/data/dns/env/lib/python3.9/site-packages/octodns_powerdns/__init__.py", line 283, in powerdns_version
raise Exception(f'PowerDNS unauthorized host={self.host}')
Exception: PowerDNS unauthorized host=10.0.0.18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment