You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Research: Health Monitor for LB with OVN provider #268
As a k8s ingress user, I want to see real client IPs in the ingress.
To make this work without proxy-protocol workarounds, we must ensure
that we use externalTrafficPolicy: local (otherwise we see the kube-proxy forwarded source IPs)
have a health-monitor enabled (otherwise the nodes without the nginx will receive and drop traffic)
have a loadbalancer that does preserve the client IPs (by working on layer 3 or similar ways to steer the flows)
The octavia load balancer implemented by the OVN provider does preserve the client IPs nicely, see #251
It has a number of advantages (lightweight, quick to provision), but the documentation states that it does not support a healthmonitor. OVN itself has the notion of healthchecks, which should allow an efficient way to implement some health monitor functionality. It does not seem to be wired up yet, though.
It was merged on 2021-07-23 with commit b25bc5773486bdb6e67d30dede34fbabf81606ec (tag: 1.1.0)
So we should have a working health monitor -- I need to check why it appeared not to do anything (never set a member to offline and the pool to degraded) in my testing.
In the openstack-health-monitor tests on gx-scs, this did not happen. This might be due to a different topology w.r.t. subnets used by LB VIP and members or due to differences in the cloud setup.
The ERROR operating status of the members did not cause the LB to no longer distribute requests to the ERROR'ed members -- oops! So in the above example, 50% of the requests fail due to 2/4 ERROR'ed members.
When connecting to the LB's VIP address directly, all requests succeed, i.e. no requests are forwarded to the backend members with ERROR operating status.
However, when connecting to the floating IP associated with the LB's VIP, this is not the case.
This is very very confusing and probably caused by some magic in OVN.
Speculation based on superficial OVN knowledge:
OVN does the floating IP attachment by adding flows directly for the floating IP
The ERROR'ed operating status causes OVN to disable the flows for the VIP, but not for the associated floating IP
i can reproduce it, too. I've investigated the octavia container and the needed patch is included, i guess that the tcp -health monitor itself could have an issue or a bug, that should discuss upstream
Activity
garloff commentedon Feb 8, 2023
There are patches ...
https://opendev.org/openstack/ovn-octavia-provider/commit/8bbd8f1b62d7811433079bff8ce940fbdd041a0c
garloff commentedon Feb 9, 2023
It was merged on 2021-07-23 with commit b25bc5773486bdb6e67d30dede34fbabf81606ec (tag: 1.1.0)
So we should have a working health monitor -- I need to check why it appeared not to do anything (never set a member to offline and the pool to degraded) in my testing.
garloff commentedon Feb 9, 2023
In gx-scs, the health monitor can be enabled with an ovn provided LB (and pool), yet it seems to be ineffective.
garloff commentedon Feb 12, 2023
In a Cloud-in-a-Box test setup, I can see the health monitor on OVN provider loadbalancer detect that members are unhealthy:
which is exactly what I was hoping for.
Two remaining problems:
garloff commentedon Feb 14, 2023
On gxscs, the ERROR operating status is not only detected, but also working: The ERROR'ed members no longer get requests.
garloff commentedon Feb 14, 2023
Setting the subnet of the members correctly causes the loadbalancer's health-monitor on gx-scs to correctly detect the ERROR status of the members.
garloff commentedon Feb 14, 2023
When connecting to the LB's VIP address directly, all requests succeed, i.e. no requests are forwarded to the backend members with ERROR operating status.
However, when connecting to the floating IP associated with the LB's VIP, this is not the case.
This is very very confusing and probably caused by some magic in OVN.
Speculation based on superficial OVN knowledge:
garloff commentedon Feb 14, 2023
OK, seems this is a known (and not addressed) issue:
https://bugs.launchpad.net/neutron/+bug/1956035
10 remaining items
fkr commentedon May 17, 2023
osism/issues#499 - @garloff is still able to reproduce this on gx-scs.
fkr commentedon May 31, 2023
To be finalized and checked until EOW
matfechner commentedon Jun 4, 2023
i can reproduce it, too. I've investigated the octavia container and the needed patch is included, i guess that the tcp -health monitor itself could have an issue or a bug, that should discuss upstream
artificial-intelligence commentedon Jun 14, 2023
why wasn't bug https://bugs.launchpad.net/neutron/+bug/1997418 reopened if it still can be reproduced? did anybody contact upstream maintainers over different channels about this problem?
fkr commentedon Jun 14, 2023
@matfechner please re-open upstream and f'up.
fkr commentedon Jul 19, 2023
@artificial-intelligence will do a backport for Zed so that we have a chance of getting that into 5.3.0
artificial-intelligence commentedon Jul 19, 2023
backports:
antelope: https://review.opendev.org/c/openstack/ovn-octavia-provider/+/888544
zed: https://review.opendev.org/c/openstack/ovn-octavia-provider/+/888545
yoga: https://review.opendev.org/c/openstack/ovn-octavia-provider/+/888546
all not yet merged.
artificial-intelligence commentedon Jul 20, 2023
all upstream patches mentioned above have been merged.
berendt commentedon Jul 26, 2023
Will be part of OSISM 5.3.0.