Skip to content

Conversation

@dulek
Copy link
Contributor

@dulek dulek commented Aug 7, 2019

Octavia with the default Amphora driver uses two the IPs from the
service subnet for each loadbalancer, the second being used as VRRP
port. The issue with that is that OpenShift uses it's own IPAM and
doesn't know about Octavia's habits leading to conflicts if IP chosen by
OpenShift is already taken by one of Amphora VRRP ports.

To fix this the service network created in OpenStack will be expanded to
be twice bigger than the ServiceNetwork value from NetworkSpec. Then the
other half of it will be used for Amphora VRRP ports, while OpenShift
will only choose IP's from the half indicated by
NetworkSpec.ServiceNetwork.

Obviously this may lead to conflicts if expanded network overlaps with
ClusterNetwork, so validation is expanded to check that.

@openshift-ci-robot openshift-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Aug 7, 2019
@dulek
Copy link
Contributor Author

dulek commented Aug 7, 2019

This will fail dep check until openshift/api#401 is merged.

@dulek dulek force-pushed the octavia-vrrp-option branch 2 times, most recently from ecebc66 to fc9aca3 Compare August 7, 2019 15:00
@dulek dulek force-pushed the octavia-vrrp-option branch from fc9aca3 to 65efdd9 Compare August 21, 2019 09:34
@openshift-ci-robot openshift-ci-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Aug 21, 2019
@dulek dulek force-pushed the octavia-vrrp-option branch from 65efdd9 to fb7a1d6 Compare August 21, 2019 09:41
Octavia with the default Amphora driver uses two the IPs from the
service subnet for each loadbalancer, the second being used as VRRP
port. The issue with that is that OpenShift uses it's own IPAM and
doesn't know about Octavia's habits leading to conflicts if IP chosen by
OpenShift is already taken by one of Amphora VRRP ports.

To fix this an OpenStackServiceNetwork setting is added in KuryrConfig.
It will require the user to set there a CIDR of a network twice the size
of ServiceNetwork and including it inside. If value is not set, the
ServiceNetwork expanded to be twice the size is automatically put there.
Using Neutron's allocation pools feature we limit Octavia to only use
non-ServiceSubnet IP's for VRRP ports.

Obviously this may lead to conflicts if expanded network overlaps with
ClusterNetwork, so validation is extended to check that and other
possible issues.
@dulek dulek force-pushed the octavia-vrrp-option branch from fb7a1d6 to e674c87 Compare August 21, 2019 09:47
@dulek dulek changed the title Kuryr: Expand svc net to fix VRRP ports conflicts Bug 1743302: Kuryr: Expand svc net to fix VRRP ports conflicts Aug 21, 2019
@openshift-ci-robot openshift-ci-robot added the bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. label Aug 21, 2019
@openshift-ci-robot
Copy link
Contributor

@dulek: This pull request references Bugzilla bug 1743302, which is invalid:

  • expected the bug to be in one of the following states: NEW, ASSIGNED, ON_DEV, POST, but it is MODIFIED instead

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

Details

In response to this:

Bug 1743302: Kuryr: Expand svc net to fix VRRP ports conflicts

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 Aug 21, 2019

/bugzilla refresh

@openshift-ci-robot openshift-ci-robot added bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. and removed bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. labels Aug 21, 2019
@openshift-ci-robot
Copy link
Contributor

@dulek: This pull request references Bugzilla bug 1743302, 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.

Details

In response to this:

/bugzilla 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 kubernetes/test-infra repository.

@openshift-ci-robot
Copy link
Contributor

@dulek: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
ci/prow/e2e-aws-ovn-kubernetes e674c87 link /test e2e-aws-ovn-kubernetes

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Details

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

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 21, 2019
@danwinship
Copy link
Contributor

/approve

@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

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

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

The pull request process is described here

Details 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 approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 21, 2019
@openshift-merge-robot openshift-merge-robot merged commit 2dbafa8 into openshift:master Aug 21, 2019
@openshift-ci-robot
Copy link
Contributor

@dulek: All pull requests linked via external trackers have merged. Bugzilla bug 1743302 has been moved to the MODIFIED state.

Details

In response to this:

Bug 1743302: Kuryr: Expand svc net to fix VRRP ports conflicts

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.

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/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. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants