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

ipatests: in DNS zone file add A record for name server #3837

Closed
wants to merge 2 commits into from

Conversation

wladich
Copy link

@wladich wladich commented Nov 1, 2019

Testcase test_server_option_with_unreachable_ad creates a zone file
for AD domain. This file had a hard-coded A record for host specified in
NS record. Some versions of BIND consider this zone invalid and refuse
to start with message:

zone ad.test/IN: NS 'root-dc.ad.test' has no address records (A or AAAA)

Fixed by replacing hard-coded value with short name of the AD instance.

This PR also fixed utility function create_temp_file which was returning name of created temp file with a trailing newline character added.

Function create_temp_file was returning unprocessed output of mktemp
command, which contains a trailing newline. Callers which tryed to write
to the temp file were creating a new one instead.
Testcase test_server_option_with_unreachable_ad creates a zone file
for AD domain. This file had a hard-coded A record for host specified in
NS record. Some versions of BIND consider this zone invalid and refuse
to start with message:
```
zone ad.test/IN: NS 'root-dc.ad.test' has no address records (A or AAAA)
```

Fixed by replacing hard-coded value with short name of the AD instance.
@wladich wladich added ipa-4-7 ipa-4-6 Mark for backport to ipa 4.6 ipa-4-8 Mark for backport to ipa 4.8 needs review Pull Request is waiting for a review labels Nov 1, 2019
@wladich wladich requested a review from miskopo November 4, 2019 15:25
@wladich
Copy link
Author

wladich commented Nov 4, 2019

@miskopo Please review

@miskopo
Copy link
Member

miskopo commented Nov 5, 2019

ACK, please remove the temp commit.

@miskopo miskopo added ack Pull Request approved, can be merged and removed needs review Pull Request is waiting for a review labels Nov 5, 2019
@rcritten rcritten added the re-run Trigger a new run of PR-CI label Nov 5, 2019
@freeipa-pr-ci freeipa-pr-ci removed the re-run Trigger a new run of PR-CI label Nov 5, 2019
@wladich wladich added the pushed Pull Request has already been pushed label Nov 5, 2019
@wladich
Copy link
Author

wladich commented Nov 5, 2019

master:

  • b10e43c ipatests: strip newline character when getting name of temp file
  • f16c08b ipatests: in DNS zone file add A record for name server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ack Pull Request approved, can be merged ipa-4-6 Mark for backport to ipa 4.6 ipa-4-8 Mark for backport to ipa 4.8 pushed Pull Request has already been pushed
Projects
None yet
5 participants