Bug 1855852

Summary: haproxy_server_http_responses_total metric disappears when backing pods are not available
Product: OpenShift Container Platform Reporter: Stephen Greene <sgreene>
Component: NetworkingAssignee: Stephen Greene <sgreene>
Networking sub component: router QA Contact: Arvind iyengar <aiyengar>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: unspecified CC: aiyengar, amcdermo, aos-bugs, bperkins, dhansen, hongli, jbeakley, rporresm
Version: 3.11.0   
Target Milestone: ---   
Target Release: 3.11.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1835845 Environment:
Last Closed: 2020-09-16 07:46:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1835845    
Bug Blocks:    

Comment 1 Stephen Greene 2020-07-28 17:23:50 UTC
Adding upcoming sprint since this BZ's fix will be reviewed in the coming weeks.

Comment 5 Arvind iyengar 2020-08-31 10:05:19 UTC
Tested in "v3.11.273" release payload that contains the patch. With this version, it is noted that haproxy now exposes the  "haproxy_backend_connections_total" metric properly where the count could be seen incrementing and it continues to be available when the backend is unavailable due to different circumstances:
-----
# oc version
oc v3.11.273
kubernetes v1.11.0+d4cacc0
features: Basic-Auth GSSAPI Kerberos SPNEGO

Server https://ip-172-18-10-80.ec2.internal:8443
openshift v3.11.273
kubernetes v1.11.0+d4cacc0

# for i in {1..50}; do curl -sS  admin:PEwMwA52Vx.4.191:1936/metrics | grep -i haproxy_backend_connections_total | grep -iv "^#"|grep -i test1; sleep 2; done
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 25
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 25
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 25
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 25
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 30
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 30
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 30
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 39
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 39
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 39
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 47
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 47
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 47
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 55
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 55
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 55
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 63
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 63
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 63
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 71
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 71
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 71
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 79
haproxy_backend_connections_total{backend="http",namespace="test1",route="service-unsecure"} 79
-----

Comment 7 errata-xmlrpc 2020-09-16 07:46:49 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (OpenShift Container Platform 3.11.286 bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:3695