Does ovn can support "connection-limit" param of octavia?

Asked by Taoyunxiang on 2019-07-25

when create listener with "connection-limit" ,it does not work,the command as follows:

openstack loadbalancer listener create --name Listener2 --connection-limit 3 --protocol TCP --protocol-port 22 --default-pool Pool2 LB2

The print of load-balancer in ovn is like this

_uuid : abb10cba-02cf-49cb-adec-2d6c6c66af92
external_ids : {enabled=True, "listener_737812f9-1fe6-4a46-8c89-ce4c521f6fa0"="22:pool_6920615d-0fb1-4d3e-84fd-79ccfd8db199", ls_refs="{\"neutron-dc56e08f-dd11-417f-8426-c2642fb9ab64\": 1}", "neutron:vip"="5.5.5.21", "neutron:vip_port_id"="60409592-1e27-4fdc-8e0c-db24e0aa13ed", "pool_6920615d-0fb1-4d3e-84fd-79ccfd8db199"="member_deb5342e-5718-4a32-b6f7-f1685d600d62_25.25.25.92:22"}
name : "183f5e0d-8a55-4ee6-934b-916a3e4db828"
protocol : tcp
vips : {"5.5.5.21:22"="25.25.25.92:22"}

But ,I found this(https://github.com/openstack/networking-ovn/blob/stable/stein/networking_ovn/octavia/ovn_driver.py#L52)

I do not know that does the "max" and "min" is pointed to connection-limit?

Then I add code "'connection_limit': listener.connection_limit," after here(https://github.com/openstack/networking-ovn/blob/stable/stein/networking_ovn/octavia/ovn_driver.py#L1369), It does not work.

Question information

Language:
English Edit question
Status:
Solved
For:
networking-ovn Edit question
Assignee:
No assignee Edit question
Solved by:
Maciej Jozefczyk
Solved:
2019-07-26
Last query:
2019-07-26
Last reply:
2019-07-26

Hello Taoyunxiang,

unfortunately OVN Loadbalancer doesn't support connection limiting.
http://www.openvswitch.org/support/dist-docs/ovn-nb.5.txt

Taoyunxiang (taoyunxiang) said : #2

Thanks Maciej,

Yun

Taoyunxiang (taoyunxiang) said : #3

Thanks Maciej Jozefczyk, that solved my question.