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

OpenStack: enable IPv6 primary dual-stack cluster #7259

Merged
merged 1 commit into from Oct 10, 2023

Conversation

MaysaMacedo
Copy link
Contributor

This commit removes the enforcement of the ordering IPv4 to api and ingress VIPs and adds IPv6 security group rules to allow ingress and egress traffic over IPv6.

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 20, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 20, 2023

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@MaysaMacedo MaysaMacedo marked this pull request as ready for review September 6, 2023 19:43
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 6, 2023
@sadasu
Copy link
Contributor

sadasu commented Sep 13, 2023

/retest

@MaysaMacedo MaysaMacedo force-pushed the v6-primary branch 3 times, most recently from 7ead0bd to 798e0a5 Compare September 18, 2023 18:28
@MaysaMacedo
Copy link
Contributor Author

/test unit

@MaysaMacedo
Copy link
Contributor Author

/retest

@MaysaMacedo
Copy link
Contributor Author

/cc @dulek @mandre

@openshift-ci openshift-ci bot requested review from dulek and mandre September 19, 2023 11:42
@MaysaMacedo
Copy link
Contributor Author

Nodes and Pods were listing IPv6 address first in the list of addresses.

@MaysaMacedo
Copy link
Contributor Author

/cc @gryf

@openshift-ci openshift-ci bot requested a review from gryf September 21, 2023 13:09
Copy link
Member

@EmilienM EmilienM left a comment

Choose a reason for hiding this comment

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

One error for icmp, the rest looks good.

This commit removes the restriction of only allowing IPv4 first dual-stack
clusters. Also, in preparation for future single stack IPv6 clusters, it duplicates
all the existent security group rules to work with IPv6 ethertype, with exception of
IKE nat, given there is no nat for IPv6.
@EmilienM
Copy link
Member

/lgtm
/approve

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Sep 25, 2023
@MaysaMacedo
Copy link
Contributor Author

/assign @pawanpinjarkar as the bot suggests

@MaysaMacedo
Copy link
Contributor Author

/assign @pawanpinjarkar

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.

Looks good. I was surprised at first that we didn't have V6 equivalent to master_ingress_ike_nat_t and worker_ingress_ike_nat_t rules, but then I remembered that NAT does not really make sense with IPv6.

/lgtm

@MaysaMacedo
Copy link
Contributor Author

/test e2e-aws-ovn

@openshift-merge-robot
Copy link
Contributor

@MaysaMacedo: 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/okd-scos-images 2748047 link true /test okd-scos-images
ci/prow/e2e-aws-ovn 2748047 link true /test e2e-aws-ovn
ci/prow/okd-images 2748047 link true /test okd-images
ci/prow/openstack-manifests 2748047 link true /test openstack-manifests
ci/prow/e2e-openstack-ovn 2748047 link true /test e2e-openstack-ovn
ci/prow/images 2748047 link true /test images

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

@MaysaMacedo
Copy link
Contributor Author

/retest

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD 8783558 and 1 for PR HEAD 2748047 in total

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD bc15daa and 0 for PR HEAD 2748047 in total

@openshift-ci-robot
Copy link
Contributor

/hold

Revision 2748047 was retested 3 times: holding

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 4, 2023
@MaysaMacedo
Copy link
Contributor Author

/hold cancel
/retest-required

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 4, 2023
@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD 732271d and 2 for PR HEAD 2748047 in total

Copy link
Contributor

@dulek dulek left a comment

Choose a reason for hiding this comment

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

I'm late to the party, but here's a comment about something that stands out to me.

Comment on lines +340 to +350
resource "openstack_networking_secgroup_rule_v2" "worker_ingress_services_udp_v6" {
count = length(var.machine_v6_cidrs)
direction = "ingress"
ethertype = "IPv6"
protocol = "udp"
port_range_min = 30000
port_range_max = 32767
remote_ip_prefix = element(var.machine_v6_cidrs, count.index)
security_group_id = openstack_networking_secgroup_v2.worker.id
description = local.description
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here.

Comment on lines +316 to +326
resource "openstack_networking_secgroup_rule_v2" "worker_ingress_services_tcp_v6" {
count = length(var.machine_v6_cidrs)
direction = "ingress"
ethertype = "IPv6"
protocol = "tcp"
port_range_min = 30000
port_range_max = 32767
remote_ip_prefix = element(var.machine_v6_cidrs, count.index)
security_group_id = openstack_networking_secgroup_v2.worker.id
description = local.description
}
Copy link
Contributor

Choose a reason for hiding this comment

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

This feels like something that should have been here since dual stack support, i.e. IPv6 LoadBalancer Services need this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I thought about this, but when I tried connecting to a IPv6 LB without it in tech preview, it worked fine.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 4, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dulek, EmilienM, sadasu

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

@MaysaMacedo
Copy link
Contributor Author

/retest-required

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD 3a738d8 and 1 for PR HEAD 2748047 in total

@MaysaMacedo
Copy link
Contributor Author

/retest-required

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD 3c3f41c and 0 for PR HEAD 2748047 in total

@openshift-ci-robot
Copy link
Contributor

/hold

Revision 2748047 was retested 3 times: holding

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 6, 2023
@MaysaMacedo
Copy link
Contributor Author

/hold cancel
/retest-required

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 6, 2023
@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD 3c3f41c and 2 for PR HEAD 2748047 in total

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD b6e9f0b and 1 for PR HEAD 2748047 in total

@MaysaMacedo
Copy link
Contributor Author

/retest-required

@MaysaMacedo
Copy link
Contributor Author

/retest

1 similar comment
@MaysaMacedo
Copy link
Contributor Author

/retest

@MaysaMacedo
Copy link
Contributor Author

/test e2e-aws-ovn
/test e2e-openstack-ovn

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD 6a5fd56 and 0 for PR HEAD 2748047 in total

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 10, 2023

@MaysaMacedo: The following test 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/okd-scos-e2e-aws-ovn 2748047 link false /test okd-scos-e2e-aws-ovn

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

@openshift-ci openshift-ci bot merged commit 92e2484 into openshift:master Oct 10, 2023
30 of 31 checks passed
@MaysaMacedo MaysaMacedo deleted the v6-primary branch October 10, 2023 14:50
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. 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

9 participants