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

Revert #64189: Fix Windows CNI for the sandbox case #64862

Merged
merged 2 commits into from
Jun 12, 2018

Conversation

feiskyer
Copy link
Member

@feiskyer feiskyer commented Jun 7, 2018

What this PR does / why we need it:

This reverts PR #64189, which breaks DNS for Windows containers.

Refer #64189 (comment)

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #64861

Special notes for your reviewer:

Release note:

NONE

cc @madhanrm @PatrickLang @alinbalutoiu @dineshgovindasamy

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jun 7, 2018
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jun 7, 2018
@feiskyer
Copy link
Member Author

feiskyer commented Jun 7, 2018

/kind bug
/sig windows
/sig node
/priority critical-urgent
/milestone v1.11

@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Jun 7, 2018
@k8s-ci-robot k8s-ci-robot added this to the v1.11 milestone Jun 7, 2018
@k8s-ci-robot k8s-ci-robot added sig/windows Categorizes an issue or PR as relevant to SIG Windows. sig/node Categorizes an issue or PR as relevant to SIG Node. priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. labels Jun 7, 2018
@feiskyer
Copy link
Member Author

feiskyer commented Jun 7, 2018

Added to v1.11 milestone since this is a critical urgent bug fix.

/status approved-for-milestone

@feiskyer
Copy link
Member Author

feiskyer commented Jun 7, 2018

/status approved-for-milestone

@feiskyer
Copy link
Member Author

feiskyer commented Jun 7, 2018

/assign @Random-Liu @derekwaynecarr

@feiskyer
Copy link
Member Author

feiskyer commented Jun 7, 2018

/retest

@PatrickLang
Copy link
Contributor

/status approved-for-milestone

@k8s-ci-robot
Copy link
Contributor

You must be a member of the kubernetes/kubernetes-milestone-maintainers github team to add status labels.

@PatrickLang
Copy link
Contributor

Approving per @dineshgovindasamy recommendation

@PatrickLang
Copy link
Contributor

/test pull-kubernetes-kubemark-e2e-gce

@alinbalutoiu
Copy link
Contributor

I would prefer to see another simple commit with more details instead of just reverting this one. I don't expect the new PR to have more than 4-5 lines.

// Do not return any IP, so that we would continue and get the IP of the Sandbox

This is not explained enough, should be something like:

// Workaround for Windows DNS issue, the CNI should call attach the endpoint to every container from the POD and not only the infra container

Would it be possible to just add the few lines in a separate PR with a proper comment and explanation instead of this revert? I can help on that if needed.

@alinbalutoiu
Copy link
Contributor

Also as per microsoft/SDN#222 (comment)
It should mention the Windows versions which are affected.

@feiskyer
Copy link
Member Author

feiskyer commented Jun 7, 2018

I would prefer to see another simple commit with more details instead of just reverting this one.

@alinbalutoiu Added another clarification comment commit.

Would it be possible to just add the few lines in a separate PR with a proper comment and explanation instead of this revert? I can help on that if needed.

I think an explanation is enough, codes must be changed: getIP() for each containers is required for DNS settings. Let's revert the original PR and make another cleanup PR after code freeze.

@feiskyer
Copy link
Member Author

feiskyer commented Jun 7, 2018

/test pull-kubernetes-node-e2e

@dims
Copy link
Member

dims commented Jun 7, 2018

/retest

@alinbalutoiu
Copy link
Contributor

@feiskyer thanks, it is better now with that comment.

My question would be the following then, why do we need this PR then? #63905

Since setting it for the endpoint should be enough, what is the purpose of the other PR?

@feiskyer
Copy link
Member Author

feiskyer commented Jun 8, 2018

My question would be the following then, why do we need this PR then? #63905

@alinbalutoiu This PR is a workaround for DNS settings in CNI plugins. Please notice that the DNS configured by CNI plugins are fixed (from CNI config file), and it doesn't conform to Pod's DNS policy.

While #63905 is to fix dnsPolicy problem. Although there're still issues in HNS, but it's the right way we should move to. And this workaround should be removed after HNS issues resolved.

@feiskyer
Copy link
Member Author

feiskyer commented Jun 8, 2018

@michmike @PatrickLang @madhanrm @dineshgovindasamy Any comments on this?

@michmike
Copy link
Contributor

michmike commented Jun 8, 2018

the PR looks good to me, but i will defer to @dineshgovindasamy and @alinbalutoiu for approval. it seems that both are good with this, so i will approve it.

@michmike
Copy link
Contributor

michmike commented Jun 8, 2018

/approve

@michmike
Copy link
Contributor

michmike commented Jun 8, 2018

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 8, 2018
@feiskyer
Copy link
Member Author

ping @derekwaynecarr @dchen1107 for approval

@k8s-github-robot
Copy link

[MILESTONENOTIFIER] Milestone Pull Request: Up-to-date for process

@Random-Liu @dchen1107 @derekwaynecarr @feiskyer @michmike

Pull Request Labels
  • sig/node sig/windows: Pull Request will be escalated to these SIGs if needed.
  • priority/critical-urgent: Never automatically move pull request out of a release milestone; continually escalate to contributor and SIG through all available channels.
  • kind/bug: Fixes a bug discovered during the current release.
Help

@tpepper tpepper mentioned this pull request Jun 11, 2018
@dchen1107
Copy link
Member

/lgtm

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dchen1107, feiskyer, michmike

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 Jun 12, 2018
@k8s-github-robot
Copy link

/test all [submit-queue is verifying that this PR is safe to merge]

@k8s-github-robot
Copy link

Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here.

@k8s-github-robot k8s-github-robot merged commit 67ebbc6 into kubernetes:master Jun 12, 2018
@feiskyer feiskyer deleted the win-cni branch June 12, 2018 23:57
@feiskyer feiskyer restored the win-cni branch July 20, 2018 06:59
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", indicates that a PR is ready to be merged. priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. 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/windows Categorizes an issue or PR as relevant to SIG Windows. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Windows dns is broken
10 participants