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

tests: Fixes DNS tests for Windows #81363

Merged

Conversation

claudiubelu
Copy link
Contributor

What type of PR is this?

/kind failing-test

/sig testing
/sig windows
/area conformance

What this PR does / why we need it:

A previous commit replaced the usage of hostname -i with getent hosts in DNS probe commands (for testing IPv6), which breaks the Windows tests (getent hosts is a Linux-specific command that looks into the /etc/hosts file, which, on Windows, is not managed by Kubelet).

This commit addresses this issue by executing getent hosts on IPv6 clusters and hostname -i on IPv4 clusters (Windows does not support IPv6 at this moment).

Which issue(s) this PR fixes:

Fixes #81080

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

NONE

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


A previous commit replaced the usage of hostname -i with getent hosts
in DNS probe commands (for testing IPv6), which breaks the Windows tests
(getent hosts is a Linux-specific command that looks into the /etc/hosts
file, which, on Windows, is not managed by Kubelet).

This commit addresses this issue by executing getent hosts on IPv6 clusters
and hostname -i on IPv4 clusters (Windows does not support IPv6 at this
moment).
@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. kind/failing-test Categorizes issue or PR as related to a consistently or frequently failing test. sig/testing Categorizes an issue or PR as relevant to SIG Testing. sig/windows Categorizes an issue or PR as relevant to SIG Windows. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. area/conformance Issues or PRs related to kubernetes conformance tests needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels Aug 13, 2019
@claudiubelu claudiubelu force-pushed the tests/fixes-dns-tests-for-windows branch from f125f4d to a8c63d1 Compare August 13, 2019 15:49
@PatrickLang PatrickLang added this to In Progress+Review in SIG-Windows Aug 13, 2019
@PatrickLang
Copy link
Contributor

/release v1.16

@spiffxp spiffxp added this to To Triage in conformance-definition Aug 21, 2019
@spiffxp
Copy link
Member

spiffxp commented Aug 21, 2019

/priority important-soon

@k8s-ci-robot k8s-ci-robot added priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. and removed needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels Aug 21, 2019
@spiffxp spiffxp moved this from To Triage to Sorted Backlog in conformance-definition Aug 21, 2019
@spiffxp spiffxp moved this from Sorted Backlog to Needs Review in conformance-definition Aug 21, 2019
@spiffxp spiffxp moved this from Needs Review to Sorted Backlog in conformance-definition Aug 21, 2019
@spiffxp spiffxp moved this from Sorted Backlog to Needs Review in conformance-definition Aug 21, 2019
@spiffxp
Copy link
Member

spiffxp commented Aug 21, 2019

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 21, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bclau, spiffxp

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 21, 2019
@k8s-ci-robot k8s-ci-robot merged commit 9c7c991 into kubernetes:master Aug 21, 2019
SIG-Windows automation moved this from In Progress (v1.16) to Done (v1.16) Aug 21, 2019
conformance-definition automation moved this from Needs Review to Done Aug 21, 2019
@k8s-ci-robot k8s-ci-robot added this to the v1.16 milestone Aug 21, 2019
@neolit123 neolit123 mentioned this pull request Aug 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/conformance Issues or PRs related to kubernetes conformance tests area/test cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/failing-test Categorizes issue or PR as related to a consistently or frequently failing test. lgtm "Looks good to me", indicates that a PR is ready to be merged. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. release-note-none Denotes a PR that doesn't merit a release note. sig/testing Categorizes an issue or PR as relevant to SIG Testing. sig/windows Categorizes an issue or PR as relevant to SIG Windows. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
Development

Successfully merging this pull request may close these issues.

DNS tests fail on Windows due to getent usage
5 participants