Skip to content

Conversation

mnaser
Copy link
Contributor

@mnaser mnaser commented Feb 23, 2023

What this PR does / why we need it:
This PR fixes a regression where we started using ipip instead of 4 for the security groups. Inside Linux, the protocol ipip maps to protocol number 94 which is what Neutron uses when you use that, which meant that all Calico IPIP connectivity stopped working with this change

root@abb2f5652d8f:/# egrep '^(ipencap|ipip)' /etc/protocols
ipencap	4	IP-ENCAP	# IP encapsulated in IP (officially ``IP'')
ipip	94	IPIP		# IP-within-IP Encapsulation Protocol

Unfortunately, the Neutron API does not accept ipencap therefore we should go back to putting the digit to make things work again.

Related: #1290

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

Special notes for your reviewer:

The generated iptables rules look like this:

    0     0 RETURN     94    --  *      *       0.0.0.0/0            0.0.0.0/0            match-set NIPv4c7df0104-3ffe-47fd-972b- src
    0     0 RETURN     94    --  *      *       0.0.0.0/0            0.0.0.0/0            match-set NIPv4c845a9c7-aafa-46b2-95ed- src

Those don't end up sending any traffic through.

  1. Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

TODOs:

  • squashed commits
  • if necessary:
    • includes documentation
    • adds unit tests

/hold

@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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Feb 23, 2023
@netlify
Copy link

netlify bot commented Feb 23, 2023

Deploy Preview for kubernetes-sigs-cluster-api-openstack ready!

Name Link
🔨 Latest commit f910e87
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-cluster-api-openstack/deploys/63f77db849511e0008819394
😎 Deploy Preview https://deploy-preview-1489--kubernetes-sigs-cluster-api-openstack.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@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 23, 2023
@k8s-ci-robot
Copy link
Contributor

Hi @mnaser. Thanks for your PR.

I'm waiting for a kubernetes-sigs 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 size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Feb 23, 2023
@mnaser mnaser changed the title 🐛 Switch to "ipencap" instead of "ipip" for rules 🐛 Switch to "4" instead of "ipip" for rules Feb 23, 2023
@mdbooth
Copy link
Contributor

mdbooth commented Feb 23, 2023

/ok-to-test

@k8s-ci-robot k8s-ci-robot added 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 23, 2023
@jichenjc
Copy link
Contributor

/lgtm
/approve
/hold cancel

@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 Feb 23, 2023
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 23, 2023
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jichenjc, mnaser

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 23, 2023
@k8s-ci-robot k8s-ci-robot merged commit 02839f4 into kubernetes-sigs:main Feb 23, 2023
@lentzi90
Copy link
Contributor

/cherry-pick release-0.7

@k8s-infra-cherrypick-robot

@lentzi90: new pull request created: #1493

In response to this:

/cherry-pick release-0.7

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.

@mnaser mnaser deleted the fix-sec-groups branch February 24, 2023 13:57
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. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. 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.

IPIP traffic not properly handled when using "ipip" in secgroups
6 participants