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

Bug 1929170: CNI: Protect from '' being passed as CNI_NETNS #456

Merged

Conversation

dulek
Copy link
Contributor

@dulek dulek commented Feb 16, 2021

We've hit cases when openshift-node is passing empty string as CNI_NETNS
in CNI requests. This is against the CNI spec and causes us to try to
remove the host eth0 interface which fails hard. This commit makes sure
we don't attempt to remove leftover container interfaces when '' is
passed as CNI_NETNS.

@openshift-ci-robot
Copy link

@dulek: No Bugzilla bug is referenced in the title of this pull request.
To reference a bug, add 'Bug XXX:' to the title of this pull request and request another bug refresh with /bugzilla refresh.

In response to this:

CNI: Protect from '' being passed as CNI_NETNS

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.

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 16, 2021
Looks like we need to pin pip in kuryr-tester image to make sure we
won't pull in a version incompatible with Python 2.7. This commit pins
it to 20.3.3.

Change-Id: I8f943bb1b834bcb89cb9da502f90ca8c84f3076f
We've hit cases when openshift-node is passing empty string as CNI_NETNS
in CNI requests. This is against the CNI spec and causes us to try to
remove the host eth0 interface which fails hard. This commit makes sure
we don't attempt to remove leftover container interfaces when '' is
passed as CNI_NETNS.

Change-Id: I457f68277103c77417a519ee03cf819e1e06d31c
@dulek dulek changed the title CNI: Protect from '' being passed as CNI_NETNS Bug 1929170: CNI: Protect from '' being passed as CNI_NETNS Feb 16, 2021
@openshift-ci-robot
Copy link

@dulek: This pull request references Bugzilla bug 1929170, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (3.11.z) matches configured target release for branch (3.11.z)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

In response to this:

Bug 1929170: CNI: Protect from '' being passed as CNI_NETNS

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.

@openshift-ci-robot openshift-ci-robot added bugzilla/severity-urgent Referenced Bugzilla bug's severity is urgent for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. labels Feb 16, 2021
@dulek dulek requested a review from luis5tb February 16, 2021 10:54
@MaysaMacedo
Copy link
Contributor

/lgtm

I wonder if the same could happen in 4.x

@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dulek, MaysaMacedo

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

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 16, 2021
@openshift-merge-robot openshift-merge-robot merged commit 4177e46 into openshift:release-3.11 Feb 16, 2021
@openshift-ci-robot
Copy link

@dulek: All pull requests linked via external trackers have merged:

Bugzilla bug 1929170 has been moved to the MODIFIED state.

In response to this:

Bug 1929170: CNI: Protect from '' being passed as CNI_NETNS

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.

@dulek
Copy link
Contributor Author

dulek commented Feb 16, 2021

/lgtm

I wonder if the same could happen in 4.x

It's possible we don't see it only because default node interface is named ens3 and kubelet hardcodes default container interface to eth0.

MaysaMacedo pushed a commit to MaysaMacedo/kuryr-kubernetes-1 that referenced this pull request Jul 1, 2021
…ide-integration

Bug 1807072: Adds route-override-cni and whereabouts for secondary network routing and IPAM
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. bugzilla/severity-urgent Referenced Bugzilla bug's severity is urgent for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants