Page MenuHomeVyOS Platform

haproxy op-mode not reporting correct usage stats
Closed, ResolvedPublicBUG

Description

As reported in forum, haproxy connection stats are not populating with live figures in op-mode.

Details

Version
1.5
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)
Forum thread
https://forum.vyos.io/t/haproxy-has-no-ops-mode-commands-at-all/16136

Event Timeline

Viacheslav triaged this task as Normal priority.Feb 22 2025, 7:39 PM

Cannot reproduce it. It is necessary to get a configuration:
I tested this config and all works fine
VyOS 1.5-rolling-202502220006 + latest vyos-1x

set load-balancing haproxy backend bk01 server srv01 address '192.168.122.16'
set load-balancing haproxy backend bk01 server srv01 check
set load-balancing haproxy backend bk01 server srv01 port '8000'
set load-balancing haproxy backend bk01 server srv02 address '192.168.122.16'
set load-balancing haproxy backend bk01 server srv02 check
set load-balancing haproxy backend bk01 server srv02 port '8888'
set load-balancing haproxy service web backend 'bk01'
set load-balancing haproxy service web port '80'

check

vyos@r14# run show haproxy 
Proxy name    Role      Status    Req rate    Resp time    Last change
------------  --------  --------  ----------  -----------  -------------
web           FRONTEND  OPEN      5
bk01          BACKEND   UP                    1 ms         1m52s
bk01          srv01     UP                    1 ms         1m52s
bk01          srv02     UP                    1 ms         13s
[edit]
vyos@r14#

The script for checking:

$ cat /tmp/send_curl.sh 
#!/usr/bin/env bash

while true; do
    curl -s http://192.168.122.14 > /dev/null
    sleep 0.2
done
Viacheslav claimed this task.
Viacheslav removed a project: VyOS 1.5 Circinus.
vyos@r14# run show haproxy 
Proxy name            Role       Status    Req rate    Resp time    Last change
--------------------  ---------  --------  ----------  -----------  -------------
web                   FRONTEND   OPEN      4
buildin_acme_certbot  BACKEND    UP                    0 ms         3m24s
bk01                  BACKEND    UP                    1 ms         1m8s
buildin_acme_certbot  localhost  no check              0 ms         3m24s
bk01                  srv01      UP                    1 ms         1m8s
bk01                  srv02      UP                    1 ms         1m3s
[edit]
vyos@r14# run show ver
Version:          VyOS 2025.10.10-0733-integration
Release train:    current
Release flavor:   generic

Built by:         autobuild@vyos.net
Built on:         Fri 10 Oct 2025 07:33 UTC
Build UUID:       479821b9-0e47-4bac-877f-c491f44005ea
Build commit ID:

The same for 1.5:

vyos@r16# run show  haproxy 
Proxy name            Role       Status    Req rate    Resp time    Last change
--------------------  ---------  --------  ----------  -----------  -------------
web                   FRONTEND   OPEN      4
buildin_acme_certbot  BACKEND    UP                    0 ms         23s
bk01                  BACKEND    DOWN                  0 ms         6s
buildin_acme_certbot  localhost  no check              0 ms         23s
bk01                  srv01      DOWN                  0 ms         7s
bk01                  srv02      DOWN                  0 ms         6s
[edit]
vyos@r16# 
[edit]
vyos@r16# run show ver
Version:          VyOS 2025.10-mwc
Release train:    circinus
Release flavor:   meta