Bug 1276548 - HAProxy router does not expose stats if stats-port is specified
Summary: HAProxy router does not expose stats if stats-port is specified
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Networking
Version: 3.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Ram Ranganathan
QA Contact: zhaozhanqi
URL:
Whiteboard:
Depends On:
Blocks: 1267746
TreeView+ depends on / blocked
 
Reported: 2015-10-30 05:56 UTC by Miheer Salunke
Modified: 2022-08-04 22:20 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-23 14:43:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Miheer Salunke 2015-10-30 05:56:56 UTC
Description of problem:

This ticket is filed to back port the fix present in 
https://github.com/openshift/origin/issues/4884 

The HAProxy router does not expose stats even if the stats port is specified. 

> Is there an issue with haproxy statistics in 3.0.2?
>
> Just built a new configuration, and haproxy doesn't seem to be exposing statistics.
>
> Router creation command was:
>
> # oadm router ose-router --replicas=1 \
>     --credentials='/etc/openshift/master/openshift-router.kubeconfig' \
>     --service-account=router \
>     --stats-password='xxxxxxx' \
>     --stats-port=1936 \
>     --stats-user='admin'
>
> >From the Deployment Controller:
>        - name: STATS_PASSWORD
>           value: xxxxxxx
>         - name: STATS_PORT
>           value: "1936"
>         - name: STATS_USERNAME
>           value: admin
>
> But when I look at /var/lib/haproxy/conf/haproxy.config in the container I see:-
> ........
>   # Long timeout for WebSocket connections.
>   timeout tunnel 1h
>
>
>
> frontend public
>   bind :80
>   mode http
> .........
> Based on the template, the blank space before the "frontend" section is where the "listen stats" section is meant to be.
>
> Has something changed in 3.0.2 or am I missing something.
>


Version-Release number of selected component (if applicable):
 Openshift Enterprise 3.0.2 

How reproducible:
Always

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 5 zhaozhanqi 2015-11-03 05:58:38 UTC
Move this bug to varified according to comment 2


Note You need to log in before you can comment on or make changes to this bug.