lbaas-loadbalancer-status fails when health monitor is admin-state-up=False

Bug #1556528 reported by Michael Johnson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Medium
Brandon Logan

Bug Description

With a load balancer configured with a health monitor that is in the admin-state-up=False state, neutron lbaas-loadbalancer-status will fail with:

Request Failed: internal server error while processing your request.
Neutron server returns request_ids: ['req-6f1a8e1b-a51a-469c-9017-0c0762fafe31']

q-svc.log reports:

File "/opt/stack/neutron-lbaas/neutron_lbaas/services/loadbalancer/plugin.py", line 1360, in statuses
  pool_status["healthmonitor"] = hm_status
UnboundLocalError: local variable 'hm_status' referenced before assignment

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

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

Changed in neutron:
status: New → In Progress
Revision history for this message
Ihar Hrachyshka (ihar-hrachyshka) wrote :

Targeted for RC1 since it seems the bug is so obvious and easy to tackle that it would be a shame to leave it for N.

Changed in neutron:
milestone: none → mitaka-rc1
importance: Undecided → Medium
Changed in neutron:
assignee: Michael Johnson (johnsom) → Brandon Logan (brandon-logan)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron-lbaas (master)

Reviewed: https://review.openstack.org/292049
Committed: https://git.openstack.org/cgit/openstack/neutron-lbaas/commit/?id=3827e80b3f78e7cb95e95eacb7bd70a726337d40
Submitter: Jenkins
Branch: master

commit 3827e80b3f78e7cb95e95eacb7bd70a726337d40
Author: Michael Johnson <email address hidden>
Date: Sun Mar 13 03:26:01 2016 +0000

    Fix lbaas-lb-status when health monitor disabled

    When a health monitor has been disabled via admin-state-up=False
    the neutron lbaas-loadbalancer-status command will fail.

    This patch corrects the improper variable assignment causing this
    failure.

    Change-Id: Ibbfe670ee868ee0fb2d5a64f1a41b4e810c190eb
    Closes-Bug: #1556528

Changed in neutron:
status: In Progress → Fix Released
Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/neutron-lbaas 8.0.0.0rc1

This issue was fixed in the openstack/neutron-lbaas 8.0.0.0rc1 release candidate.

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.