-
Notifications
You must be signed in to change notification settings - Fork 81
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
Add handler E2E tests for DNS configuration #866
Conversation
/hold Let's first fix dns at NNS with #867 |
@yboaron can you use NNS to check now that we show the dns-resolve there ? |
@yboaron looks like the e2e tests are failing, can you check it out before doing any review ? |
Hmm, I'm not sure why tests fail, on OCP (virtual baremetal deployment) both tests are green |
/test pull-kubernetes-nmstate-e2e-handler-k8s |
Seems that second (with V6 U/S servers) dns always fails while the test with V4 U/S servers is green, I assume that 'clearing' [1] DNS configuration doesn't work. [1]
|
/test pull-kubernetes-nmstate-e2e-handler-k8s |
/hold cancel |
/release-note-none |
/lgtm |
c9bc962
to
142ef25
Compare
/hold |
433f2da
to
af83304
Compare
test/e2e/handler/dns_test.go
Outdated
serverList := dnsResolverForNode(nodes[0], "dns-resolver.running.server") | ||
updateDesiredStateAndWait(dnsConfig(searchDomain1, searchDomain2, serverList[0], upStream1V6, "ipv6", dnsTestNic)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
serverList[0] can be an IPv4 but for IPv4 you have auto-dns so it will fail since you cannot configure dns with auto-dns,
You need to pass all the list and disable auto-dns for both IPv4 and IPv6.
4990932
to
5eb6038
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit for naming.
test/e2e/handler/dns_test.go
Outdated
upStream1V4 = "8.8.9.9" | ||
upStream1V6 = "2001:db8::1:2" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
upStream1V4 = "8.8.9.9" | |
upStream1V6 = "2001:db8::1:2" | |
server1V4 = "8.8.9.9" | |
server1V6 = "2001:db8::1:2" |
Signed-off-by: Yossi Boaron yboaron@redhat.com
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: qinqon The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@yboaron: The following test failed, say
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
/hold cancel |
This reverts commit 17c0b02.
This reverts commit 17c0b02.
Is this a BUG FIX or a FEATURE ?:
/kind enhancement
What this PR does / why we need it:
This PR adds E2E DNS tests for handler
Signed-off-by: Yossi Boaron yboaron@redhat.com