Haproxy timeouts

Bug #1884035 reported by Vadym Kukharenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Invalid
Undecided
Unassigned
Stein
New
Undecided
Unassigned

Bug Description

Hello!

We have a problem with default timeouts 50s at haproxy. When we create LoadBalancer neutron-lbaas-agent create an a process, for exmaple:

nobody 24826 0.0 0.0 62000 10808 ? Ss Jun17 0:50 | \_ haproxy -f /var/lib/neutron/lbaas/v2/6e10e798-1147-4edc-a502-2c92d410720f/haproxy.conf -p /var/lib/neutron/lbaas/v2/6e10e798-1147-4edc-a502-2c92d410720f/haproxy.pid -sf 972/v2/76145b16-6ebc-4b56-a74a-23ef2ae5af93/haproxy.pid -sf 217

When we go to container neutron-lbaas-agent and check file haproxy.conf:

$ cat /var/lib/neutron/lbaas/v2/6e10e798-1147-4edc-a502-2c92d410720f/haproxy.conf
# Configuration for 6e10e798-1147-4edc-a502-2c92d410720f
global
    daemon
    user nobody
    group haproxy
    log /dev/log local0 debug alert
    log /dev/log local1 notice alert
    maxconn 12000
    stats socket /var/lib/neutron/lbaas/v2/6e10e798-1147-4edc-a502-2c92d410720f/haproxy_stats.sock mode 0666 level user

defaults
    log global
    retries 3
    option redispatch
    timeout connect 5000
    timeout client 50000
    timeout server 50000

frontend ....

I don't understand which service or daemon generate this config, because changing configuration at /etc/kolla/haproxy/haproxy.cfg don't help generate new config with new timeouts.

I found temp solution: manually change timeouts (connect, client and server) and restart process.

But how I can automate this process?
I think, kolla-ansible has template for this, but I don't know where I can configure this, could everybody help me with it?

Revision history for this message
Vadym Kukharenko (kuhar2009) wrote :

Hello.

I find solution, just clone kolla repo:
https://github.com/openstack/kolla
Cheout for needed branch, for example stein and change Dockerfile for neutron_lbaas_agent:
https://github.com/openstack/kolla/blob/stable/stein/docker/neutron/neutron-lbaas-agent/Dockerfile.j2

I added command before USER neutron:
RUN sed -i "s|5000|50000|g" /usr/lib/python3/dist-packages/neutron_lbaas/drivers/haproxy/templates/haproxy_base.j2

Then generated own image with kolla-build by manual:
https://docs.openstack.org/kolla/latest/admin/image-building.html

And use for neutron lbaas agent own image.

description: updated
Mark Goddard (mgoddard)
Changed in kolla-ansible:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.