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

move e2e hostport conflict test to sig-network #98299

Merged
merged 1 commit into from Jan 29, 2021

Conversation

aojea
Copy link
Member

@aojea aojea commented Jan 22, 2021

What type of PR is this?

/kind cleanup
/kind failing-test

What this PR does / why we need it:

The test "validates that there is no conflict between pods with same
hostPort but different hostIP and protocol" was testing the scheduler
capability to schedule pods on the same node with hostPorts, however,
it wasn´t validating that the HostPorts was working, causing false
positives, because the pods were scheduled, but the HostPort exposed
wasn´t working.

In order to test the HostPort functionality, we have to use HostNetwork
pods, that are incompatible with Windows platforms. Also, since this
is touching both network and scheduling, there is no clear the ownership,
but sig-network is happy to adopt it.

We also add a new test for scheduling only under "scheduling", so Windows
folks can use it to test the scheduled in that platform.

Which issue(s) this PR fixes:
Fixes #98075

Special notes for your reviewer:

NONE

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. kind/failing-test Categorizes issue or PR as related to a consistently or frequently failing test. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Jan 22, 2021
@k8s-ci-robot
Copy link
Contributor

@aojea: This issue is currently awaiting triage.

If a SIG or subproject determines this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

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 needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. area/test sig/network Categorizes an issue or PR as relevant to SIG Network. sig/scheduling Categorizes an issue or PR as relevant to SIG Scheduling. sig/testing Categorizes an issue or PR as relevant to SIG Testing. and removed do-not-merge/needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Jan 22, 2021
@aojea
Copy link
Member Author

aojea commented Jan 22, 2021

/assign @spiffxp @dims @BenTheElder @johnbelamaric

I think that this conformance tests need to do more changes, just putting up the PR for discussion/guidance

xref: #98075

@aojea aojea force-pushed the hostportcoformance branch 2 times, most recently from cbbf858 to 4a7acbd Compare January 22, 2021 09:41
@k8s-ci-robot k8s-ci-robot added area/conformance Issues or PRs related to kubernetes conformance tests sig/architecture Categorizes an issue or PR as relevant to SIG Architecture. labels Jan 22, 2021
Copy link
Contributor

@damemi damemi left a comment

Choose a reason for hiding this comment

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

Agree that the functionality itself should belong to networking, while the scheduling test is sufficient for the scheduler's purposes. Thanks for addressing that todo!

/approve
from scheduling

Copy link
Contributor

@ravisantoshgudimetla ravisantoshgudimetla left a comment

Choose a reason for hiding this comment

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

Thank you for working on this @aojea

/approve

@jsturtevant jsturtevant added this to In Progress (v1.21) in SIG-Windows Jan 28, 2021
@jsturtevant
Copy link
Contributor

/cc @jsturtevant

@aojea
Copy link
Member Author

aojea commented Jan 28, 2021

/assign @dcbw @danwinship
for sig network approval

Copy link
Member

@spiffxp spiffxp left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve
for conformance, but since I am a test/ approver...
/hold
for network approvers that @aojea cc'ed, please /hold cancel if you're satisfied

@k8s-ci-robot k8s-ci-robot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. lgtm "Looks good to me", indicates that a PR is ready to be merged. labels Jan 28, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: aojea, damemi, ravisantoshgudimetla, 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 Jan 28, 2021
@aojea
Copy link
Member Author

aojea commented Jan 29, 2021

/hold cancel

I will take the blame for sig-network ;)

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 29, 2021
@aojea
Copy link
Member Author

aojea commented Jan 29, 2021

/retest
storage and node failures

@nraghavan86
Copy link

Hi,
Can you please let me know if this patch will be made available for k8s 1.20.1?

@aojea
Copy link
Member Author

aojea commented Feb 6, 2021

Hi,
Can you please let me know if this patch will be made available for k8s 1.20.1?

Can you elaborate on the need to backport this?

@nraghavan86
Copy link

Hi,
Can you please let me know if this patch will be made available for k8s 1.20.1?

Can you elaborate on the need to backport this?

I am currently using k8s v1.20.1 and I see the conformance tests are failing. The test case which is failing is "validates that there is no conflict between pods with same hostPort but different hostIP and protocol". The port 54321 is not getting opened which is causing the failure.
/bin/sh -c curl -g --connect-timeout 5 --interface x.x.x.x http://127.0.0.1:54321/hostname -> This particular curl is failing.

Copy link

@Cheef5 Cheef5 left a comment

Choose a reason for hiding this comment

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

@aojea
Copy link
Member Author

aojea commented Feb 6, 2021

The test was wrong and this fixed it, however, there were certain implementations with a bug that, because the test was wrong, were passing when they had to fail. If you are using dockershim you need this fix #98755

@johnbelamaric
Copy link
Member

johnbelamaric commented Feb 6, 2021 via email

@aojea
Copy link
Member Author

aojea commented Feb 6, 2021

I just cherry-picked it to 1.20 #98838, the next minor release will have the fix and pass the conformance test.
sorry for the inconveniences

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/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. 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. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. release-note-none Denotes a PR that doesn't merit a release note. sig/architecture Categorizes an issue or PR as relevant to SIG Architecture. sig/network Categorizes an issue or PR as relevant to SIG Network. sig/scheduling Categorizes an issue or PR as relevant to SIG Scheduling. sig/testing Categorizes an issue or PR as relevant to SIG Testing. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Exercise hostPort test in scheduler e2e for both Windows and Linux nodes