Worker stats thread should not die if haproxy is not running

Bug #1078773 reported by David Shrewsbury
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libra
Fix Released
High
David Shrewsbury

Bug Description

Currently the worker statistics thread will die if it attempts to query the haproxy stats socket and the haproxy server is not running.

Suggested fix: Do not query the socket if haproxy.pid is not present.

Tags: worker
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to libra (master)

Fix proposed to branch: master
Review: https://review.openstack.org/16129

Changed in libra:
status: Triaged → In Progress
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to libra (master)

Reviewed: https://review.openstack.org/16129
Committed: http://github.com/stackforge/libra/commit/cc7f07dc3b7bcc3bb53fe72ac2ed73e35d4d35fc
Submitter: Jenkins
Branch: master

commit cc7f07dc3b7bcc3bb53fe72ac2ed73e35d4d35fc
Author: David Shrewsbury <email address hidden>
Date: Wed Nov 14 15:05:40 2012 -0500

    For for stats thread when haproxy not running.

    Fixes bug #1078773

    The worker stats thread now checks to see if haproxy is running
    before attempting to get stats from it. If it isn't running, a
    ServiceUnavailable exception is thrown and it goes back to sleep
    until the next polling interval.

    Also rename config_manager and stats_manager functions to
    config_thread and stats_thread to make their purpose a bit clearer.

    Change-Id: I01e2c86bcac81a00027d4a7201feb922c6e72f3b

Changed in libra:
status: Fix Committed → Fix Released
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.