use of undefined variable hm_status

Bug #1709803 reported by sumitjami
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
octavia
Fix Released
High
sumitjami

Bug Description

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/neutron/api/v2/resource.py", line 93, in resource
    result = method(request=request, **args)
  File "/usr/lib/python2.7/site-packages/neutron/db/api.py", line 88, in wrapped
    setattr(e, '_RETRY_EXCEEDED', True)
  File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
    self.force_reraise()
  File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
    six.reraise(self.type_, self.value, self.tb)
  File "/usr/lib/python2.7/site-packages/neutron/db/api.py", line 84, in wrapped
    return f(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/oslo_db/api.py", line 151, in wrapper
    ectxt.value = e.inner_exc
  File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
    self.force_reraise()
  File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
    six.reraise(self.type_, self.value, self.tb)
  File "/usr/lib/python2.7/site-packages/oslo_db/api.py", line 139, in wrapper
    return f(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/neutron/db/api.py", line 124, in wrapped
    traceback.format_exc())
  File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
    self.force_reraise()
  File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
    six.reraise(self.type_, self.value, self.tb)
  File "/usr/lib/python2.7/site-packages/neutron/db/api.py", line 119, in wrapped
    return f(*dup_args, **dup_kwargs)
  File "/usr/lib/python2.7/site-packages/neutron/api/v2/base.py", line 251, in _handle_action
    ret_value = getattr(self._plugin, name)(*arg_list, **kwargs)
  File "/usr/lib/python2.7/site-packages/neutron_lbaas/services/loadbalancer/plugin.py", line 1223, in statuses
    pool_status["healthmonitor"] = hm_status
UnboundLocalError: local variable 'hm_status' referenced before assignment

sumitjami (sumitjami)
affects: neutron → octavia
zhaobo (zhaobo6)
tags: added: lbaas
Revision history for this message
sumitjami (sumitjami) wrote :
sumitjami (sumitjami)
Changed in octavia:
assignee: nobody → sumitjami (sumitjami)
Changed in octavia:
importance: Undecided → High
Changed in octavia:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron-lbaas (stable/pike)

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/500722

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron-lbaas (stable/ocata)

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/500723

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron-lbaas (stable/newton)

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/500724

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron-lbaas (stable/ocata)

Reviewed: https://review.openstack.org/500723
Committed: https://git.openstack.org/cgit/openstack/neutron-lbaas/commit/?id=198868e9fac3331a8c0ee1f97b3d7bb46ed834a2
Submitter: Jenkins
Branch: stable/ocata

commit 198868e9fac3331a8c0ee1f97b3d7bb46ed834a2
Author: Sumit Jamgade <email address hidden>
Date: Wed Aug 9 15:58:43 2017 +0200

    fixed statuses, as it was using an undefined variable

    createing hm_status was being bypassed in a particular case,
    causing server fault in those cases

    Change-Id: I8d40b38275d9f6f7121c8d6eaebe230549aaeb12
    Closes-bug: 1709803

tags: added: in-stable-ocata
tags: added: in-stable-pike
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron-lbaas (stable/pike)

Reviewed: https://review.openstack.org/500722
Committed: https://git.openstack.org/cgit/openstack/neutron-lbaas/commit/?id=c43b9a7338de8b9b4c5d4b1f7b4497ecf9ef1bea
Submitter: Jenkins
Branch: stable/pike

commit c43b9a7338de8b9b4c5d4b1f7b4497ecf9ef1bea
Author: Sumit Jamgade <email address hidden>
Date: Wed Aug 9 15:58:43 2017 +0200

    fixed statuses, as it was using an undefined variable

    createing hm_status was being bypassed in a particular case,
    causing server fault in those cases

    Change-Id: I8d40b38275d9f6f7121c8d6eaebe230549aaeb12
    Closes-bug: 1709803

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

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

commit abc911077c821f5fc09bc0b70a9379c2a32a7809
Author: Sumit Jamgade <email address hidden>
Date: Wed Aug 9 15:58:43 2017 +0200

    fixed statuses, as it was using an undefined variable

    createing hm_status was being bypassed in a particular case,
    causing server fault in those cases

    Change-Id: I8d40b38275d9f6f7121c8d6eaebe230549aaeb12
    Closes-bug: 1709803

Changed in octavia:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron-lbaas (stable/newton)

Reviewed: https://review.openstack.org/500724
Committed: https://git.openstack.org/cgit/openstack/neutron-lbaas/commit/?id=ac34007973afa16afb4e5d8ff8a6b589da0ea5f8
Submitter: Jenkins
Branch: stable/newton

commit ac34007973afa16afb4e5d8ff8a6b589da0ea5f8
Author: Sumit Jamgade <email address hidden>
Date: Wed Aug 9 15:58:43 2017 +0200

    fixed statuses, as it was using an undefined variable

    createing hm_status was being bypassed in a particular case,
    causing server fault in those cases

    Change-Id: I8d40b38275d9f6f7121c8d6eaebe230549aaeb12
    Closes-bug: 1709803

tags: added: in-stable-newton
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron-lbaas 9.2.2

This issue was fixed in the openstack/neutron-lbaas 9.2.2 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron-lbaas 12.0.0.0b1

This issue was fixed in the openstack/neutron-lbaas 12.0.0.0b1 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron-lbaas 11.0.2

This issue was fixed in the openstack/neutron-lbaas 11.0.2 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron-lbaas ocata-eol

This issue was fixed in the openstack/neutron-lbaas ocata-eol release.

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.