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

OCPBUGS-29608: use IPv6 as the primary #8043

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gryf
Copy link
Member

@gryf gryf commented Feb 19, 2024

No description provided.

@openshift-ci-robot openshift-ci-robot added jira/severity-low Referenced Jira bug's severity is low for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Feb 19, 2024
@openshift-ci-robot
Copy link
Contributor

@gryf: This pull request references Jira Issue OCPBUGS-29608, which is invalid:

  • expected the bug to target the "4.16.0" version, but no target version was set

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

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 openshift-eng/jira-lifecycle-plugin repository.

Copy link
Contributor

openshift-ci bot commented Feb 19, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from gryf. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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

@gryf
Copy link
Member Author

gryf commented Feb 19, 2024

/jira refresh

@openshift-ci-robot openshift-ci-robot added the jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. label Feb 19, 2024
@openshift-ci-robot
Copy link
Contributor

@gryf: This pull request references Jira Issue OCPBUGS-29608, which is valid. The bug has been moved to the POST state.

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

Requesting review from QA contact:
/cc @eurijon

In response to this:

/jira refresh

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot openshift-ci-robot removed the jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. label Feb 19, 2024
@openshift-ci openshift-ci bot requested a review from eurijon February 19, 2024 14:52
Copy link
Member

@mandre mandre left a comment

Choose a reason for hiding this comment

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

Rather than introduce a new variable, can we see if it's possible to detect which one of IPv4 or IPv6 is the primary one by looking at the generated manifests?

Also more importantly, from a maintenance perspective, we should avoid duplicating the rules, and instead use a variable to set the ethertype accordingly on each of the rules based on the IP setup.

@gryf
Copy link
Member Author

gryf commented Feb 20, 2024

Rather than introduce a new variable, can we see if it's possible to detect which one of IPv4 or IPv6 is the primary one by looking at the generated manifests?

That's not possible at this point, as we don't have manifests yet. We need to decide on which network should be primary based on something, and while I can't see a straight way to predict it, hence the variable.

Also more importantly, from a maintenance perspective, we should avoid duplicating the rules, and instead use a variable to set the ethertype accordingly on each of the rules based on the IP setup.

Hm. There are differences on the IPv6 rules over IPv4 - some of the rules are missing, I'll check the through.

@gryf
Copy link
Member Author

gryf commented Feb 20, 2024

Parametrized playbook, as @mandre suggested, also fixed python script according to @MaysaMacedo remarks.

@gryf
Copy link
Member Author

gryf commented Feb 20, 2024

/test e2e-openstack-upi

@gryf
Copy link
Member Author

gryf commented Feb 22, 2024

/retest

protocol: udp
remote_ip_prefix: "{{ os_subnet_range }}"
remote_ip_prefix: "{{ os_subnet6_range if ipv6_primary else os_subnet_range }}"
Copy link
Contributor

Choose a reason for hiding this comment

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

Changing NAT related rules is not necessary, there is no NAT with IPv6.

protocol: udp
remote_ip_prefix: "{{ os_subnet_range }}"
remote_ip_prefix: "{{ os_subnet6_range if ipv6_primary else os_subnet_range }}"
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto


- name: 'Create security groups for IPv6'
- name: "Create security groups for {{ 'IPv6' if ipv6_primary else 'IPv4' }}"
Copy link
Contributor

Choose a reason for hiding this comment

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

It's confusing that we're setting IPv4 as ethertype when using IPv6 primary inside this block.
Also, looks like there are various rules that don't need to be touched, like master ingress HTTP (TCP). We were already enabling IPv4 and IPv6 at the same time without the change proposed. Can you revisit the rules and not update the ones that already enable IPv4 and IPv6?
Here are the IPv6 rules that were included when adding IPv6 primary support on IPI 2748047

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe it's worth not changing the rules outside this block, and just add a few more rules that are missing for the IPv6 primary scenario within this block? @gryf @mandre thoughts?

Copy link
Contributor

openshift-ci bot commented Jun 5, 2024

@gryf: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-aws-ovn-edge-zones-manifest-validation 05aae8e link true /test e2e-aws-ovn-edge-zones-manifest-validation
ci/prow/e2e-openstack-nfv-intel 2484c48 link false /test e2e-openstack-nfv-intel
ci/prow/e2e-agent-compact-ipv4 2484c48 link true /test e2e-agent-compact-ipv4
ci/prow/e2e-vsphere-ovn-upi 2484c48 link true /test e2e-vsphere-ovn-upi

Full PR test history. Your PR dashboard.

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-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jira/severity-low Referenced Jira bug's severity is low for the branch this PR is targeting. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants