Open AKorezin opened 4 years ago
Files identified in the description:
If these files are inaccurate, please update the component name
section of the description or use the !component
bot command.
cc @nerzhul click here for bot help
Files identified in the description:
If these files are incorrect, please update the component name
section of the description or use the !component
bot command.
SUMMARY
Nsupdate failed to determine right zone if tsig key used and dns server uses split view based on key.
ISSUE TYPE
COMPONENT NAME
nsupdate
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Runner:
archlinux
withpython 3.8.5
. Dns server:bind9 9.11
with split view configured based on tsig key and source ip.STEPS TO REPRODUCE
./hosts
./group_vars/all/dns.yml
./roles/nsupdate/tasks/main.yml
EXPECTED RESULTS
Dns zone update executed
ACTUAL RESULTS
Local result:
Dns log:
ADDITIONAL INFORMATION
nsupdate.py
This part of file executed without keyring like in ansible/ansible#63174. So it produce incorrect result, because it will pass to view where zone
example.presonaldomain
exists and setself.zone
to incorrect valueexample.personaldomain
.If it will use keyring then it would pass to another view where zone is configured in other way so
self.zone
will bepersonaldomain
. Zoneexample.personaldomain
is not defined in this view at all.