LBaaS HAProxy agent outputs traceback in get_stats

Bug #1220692 reported by Akihiro Motoki
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu Cloud Archive
Fix Released
Medium
Unassigned
neutron
Fix Released
Medium
Oleg Bondarev

Bug Description

I found the following error in q-lbaas log after creating a vip on a pool.

2013-09-04 21:41:59.830 10678 DEBUG neutron.openstack.common.periodic_task [-] Running periodic task LbaasAgentManager.collect_stats run_periodic_tasks /opt/stack/neutron/neutron/openstack/common/periodic_task.py:176
2013-09-04 21:41:59.831 10678 ERROR neutron.services.loadbalancer.drivers.haproxy.agent_manager [-] Error upating stats
2013-09-04 21:41:59.831 10678 TRACE neutron.services.loadbalancer.drivers.haproxy.agent_manager Traceback (most recent call last):
2013-09-04 21:41:59.831 10678 TRACE neutron.services.loadbalancer.drivers.haproxy.agent_manager File "/opt/stack/neutron/neutron/services/loadbalancer/drivers/haproxy/agent_manager.py", line 137, in collect_stats
2013-09-04 21:41:59.831 10678 TRACE neutron.services.loadbalancer.drivers.haproxy.agent_manager stats = driver.get_stats(pool_id)
2013-09-04 21:41:59.831 10678 TRACE neutron.services.loadbalancer.drivers.haproxy.agent_manager File "/opt/stack/neutron/neutron/services/loadbalancer/drivers/haproxy/namespace_driver.py", line 168, in get_stats
2013-09-04 21:41:59.831 10678 TRACE neutron.services.loadbalancer.drivers.haproxy.agent_manager pool_stats['members'] = self._get_servers_stats(parsed_stats)
2013-09-04 21:41:59.831 10678 TRACE neutron.services.loadbalancer.drivers.haproxy.agent_manager File "/opt/stack/neutron/neutron/services/loadbalancer/drivers/haproxy/namespace_driver.py", line 188, in _get_servers_stats
2013-09-04 21:41:59.831 10678 TRACE neutron.services.loadbalancer.drivers.haproxy.agent_manager if stats['type'] == TYPE_SERVER_RESPONSE:
2013-09-04 21:41:59.831 10678 TRACE neutron.services.loadbalancer.drivers.haproxy.agent_manager KeyError: 'type'
2013-09-04 21:41:59.831 10678 TRACE neutron.services.loadbalancer.drivers.haproxy.agent_manager

Tags: lbaas
Changed in neutron:
assignee: nobody → Oleg Bondarev (obondarev)
Changed in neutron:
status: New → Confirmed
Akihiro Motoki (amotoki)
Changed in neutron:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

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

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

Reviewed: https://review.openstack.org/45060
Committed: http://github.com/openstack/neutron/commit/6d1037335bbe969cfbc6d9657c24865ca226c7e9
Submitter: Jenkins
Branch: master

commit 6d1037335bbe969cfbc6d9657c24865ca226c7e9
Author: Oleg Bondarev <email address hidden>
Date: Wed Sep 4 17:48:50 2013 +0400

    LBaaS: make haproxy stats parsing more safe

    Change-Id: Ic21b310608bb98be29ea50ab7c56ca859a9ed5c0
    Closes-Bug: #1220692

Changed in neutron:
status: In Progress → Fix Committed
Changed in neutron:
milestone: none → havana-rc1
Revision history for this message
Stephen Gran (sgran) wrote :

Can this be pulled into the cloud archive, please?

Revision history for this message
James Page (james-page) wrote :

Stephen

Once Havana RC1 is released, this fix will land into Ubuntu Saucy and the Cloud Archive.

Changed in cloud-archive:
status: New → Triaged
importance: Undecided → Medium
Thierry Carrez (ttx)
Changed in neutron:
status: Fix Committed → Fix Released
James Page (james-page)
Changed in cloud-archive:
status: Triaged → Fix Released
Thierry Carrez (ttx)
Changed in neutron:
milestone: havana-rc1 → 2013.2
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.