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

Set -w flag on all iptables calls during master startup #55945

Merged
merged 1 commit into from
Nov 18, 2017

Conversation

x13n
Copy link
Member

@x13n x13n commented Nov 17, 2017

Lack of this flag sometimes causes iptables to return error code 4 (if
other process holds xtables lock). As a result, because of set -o errexit,
whole startup script fails, leaving master in an incorrect state.

This is another occurence of (already closed) #7370

What this PR does / why we need it:

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

Special notes for your reviewer:

Release note:

Fix bug where master startup script on GCP failed randomly due to concurrent iptables invocations.

Lack of this flag sometimes causes iptables to return error code 4 (if
other process holds xtables lock). As a result, because of  `set -o errexit`,
whole startup script fails, leaving master in an incorrect state.

This is another occurence of (already closed) kubernetes#7370
@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Nov 17, 2017
@wojtek-t
Copy link
Member

/lgtm
/approve no-issue

We should consider backporting this to 1.7 and 1.8 branches.

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 18, 2017
@wojtek-t
Copy link
Member

/retest

@k8s-github-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: wojtek-t, x13n

Associated issue: 7370

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@k8s-github-robot k8s-github-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 18, 2017
@k8s-github-robot
Copy link

Automatic merge from submit-queue (batch tested with PRs 55841, 55948, 55945). If you want to cherry-pick this change to another branch, please follow the instructions here.

@k8s-github-robot k8s-github-robot merged commit 3ccc755 into kubernetes:master Nov 18, 2017
@x13n
Copy link
Member Author

x13n commented Nov 20, 2017

Created cherrypick PRs for 1.7 and 1.8.

k8s-github-robot pushed a commit that referenced this pull request Nov 21, 2017
…pstream-release-1.8

Automatic merge from submit-queue.

Automated cherry pick of #55945

Cherry pick of #55945 on release-1.8.

#55945: Set -w flag on all iptables calls during master startup
k8s-github-robot pushed a commit that referenced this pull request Nov 22, 2017
…pstream-release-1.7

Automatic merge from submit-queue.

Automated cherry pick of #55945

Cherry pick of #55945 on release-1.7.

#55945: Set -w flag on all iptables calls during master startup
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. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants