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: Adds [LinuxOnly] tag to conformance test #73922

Merged

Conversation

claudiubelu
Copy link
Contributor

What type of PR is this?

/kind failing-test

/sig testing
/sig windows

What this PR does / why we need it:

The test "should write entries to /etc/hosts" should have the [LinuxOnly] tag as
it cannot pass on Windows; individual files cannot be mounted in Windows Containers.

This test was missed in the original PR (#73204)

Which issue(s) this PR fixes:

Related Issue: #69871

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

NONE

The test "should write entries to /etc/hosts" should have the [LinuxOnly] tag as
it cannot pass on Windows; individual files cannot be mounted in Windows Containers.

This test was missed in the original PR (kubernetes#73204)
@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. kind/failing-test Categorizes issue or PR as related to a consistently or frequently failing test. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. 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. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels Feb 11, 2019
@k8s-ci-robot
Copy link
Contributor

Hi @BCLAU. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Feb 11, 2019
@dims
Copy link
Member

dims commented Feb 11, 2019

/area conformance
/ok-to-test

@BCLAU please consider applying for membership to the kubernetes github org :)

@k8s-ci-robot k8s-ci-robot added area/conformance Issues or PRs related to kubernetes conformance tests ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Feb 11, 2019
@dims
Copy link
Member

dims commented Feb 11, 2019

@yujuhong @Random-Liu Does this look good to you?

/sig node

@k8s-ci-robot k8s-ci-robot added the sig/node Categorizes an issue or PR as relevant to SIG Node. label Feb 11, 2019
@adelina-t
Copy link
Contributor

/lgtm

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

/cc @PatrickLang

@PatrickLang PatrickLang added this to In Review in SIG-Windows Feb 12, 2019
@yujuhong
Copy link
Contributor

/lgtm
/approve

@claudiubelu
Copy link
Contributor Author

/assign @pwittrock

Copy link
Member

@neolit123 neolit123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@neolit123
Copy link
Member

/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 Feb 18, 2019
@justinsb
Copy link
Member

Shouldn't HostAliases work on Windows?

The logic here isn't clear to me also - I see the justification as "individual files cannot be mounted in Windows Containers" yet I don't see any files being mounted. My understanding is that /etc/hosts is typically copied into the containers on linux, not mounted.

@neolit123
Copy link
Member

neolit123 commented Feb 19, 2019

Shouldn't HostAliases work on Windows?

hm, i don't know what was decided for GA.

possibly the comment for the [LinuxOnly] tag needs clarification:
https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/kubelet_pods.go#L131-L137

related issue:
#70189

@justinsb
Copy link
Member

Good links, thanks @neolit123!

AFAIK HostAliases isn't critical enough that it should be a blocker for windows support, but I do think we should be excruciatingly precise about why we are excluding it, as it is a conformance test.

@claudiubelu
Copy link
Contributor Author

claudiubelu commented Feb 19, 2019

Shouldn't HostAliases work on Windows?

The logic here isn't clear to me also - I see the justification as "individual files cannot be mounted in Windows Containers" yet I don't see any files being mounted. My understanding is that /etc/hosts is typically copied into the containers on linux, not mounted.

No, the /etc/hosts file is mounted into containers. Here's an example of a Linux Pod's container, see the /etc/hosts file mount: https://paste.ubuntu.com/p/Hq2z2GFQDF/ . And as this PR says, individual files cannot be mounted on Windows Containers.

Although, copying the hosts file into the container could be a viable alternative. However, that is outside the scope of this PR or the target for this release. This can be further discussed for v1.15.

PS: updated test description to include a more detailed explanation.

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 19, 2019
Copy link
Member

@neolit123 neolit123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
thanks for the comment update.

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

re: single file mapping

This is something that's possible in Windows Server 2019, but not with the Docker codebase. It has been implemented in containerd, but containerd is not stable enough to take it for 1.14. Rather than implementing a workaround of replacing a file after the pod starts, I think it would be best to do the right fix and support /etc/hosts -> c:\windows\system32\drivers\etc\hosts mapping for 1.15 or 1.16 when ContainerD is ready.

@spiffxp
Copy link
Member

spiffxp commented Feb 21, 2019

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

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

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 Feb 21, 2019
@PatrickLang
Copy link
Contributor

/retest

@k8s-ci-robot k8s-ci-robot merged commit aec0bfe into kubernetes:master Feb 21, 2019
SIG-Windows automation moved this from In Review to Done (v.1.14) Feb 21, 2019
@claudiubelu claudiubelu deleted the tests/adds-linuxonly-tag branch April 19, 2019 13:36
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 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. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. 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/node Categorizes an issue or PR as relevant to SIG Node. 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
None yet
Development

Successfully merging this pull request may close these issues.

None yet

10 participants