Disassociating health-monitor from a pool which is not associated throws internal server error

Bug #1373864 reported by Vedamurthy Joshi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R1.1
Fix Committed
High
Rudra Rugge
Trunk
Fix Committed
High
Rudra Rugge

Bug Description

R1.10 Build 39

Disassociating health-monitor from a pool which is not associated throws internal server error

root@nodec22:~# neutron lb-pool-list
+--------------------------------------+----------+-------------+----------+----------------+--------+
| id | name | lb_method | protocol | admin_state_up | status |
+--------------------------------------+----------+-------------+----------+----------------+--------+
| b4229bd1-a3f5-419d-86d8-d28cd1b0a51f | mypool1 | ROUND_ROBIN | HTTP | True | ACTIVE |
| 62c7a511-3dbd-4203-bd53-9663b0c41228 | sshpool1 | ROUND_ROBIN | TCP | True | ACTIVE |
+--------------------------------------+----------+-------------+----------+----------------+--------+
root@nodec22:~# neutron lb-healthmonitor-associate ac6aca67-6aff-4ce0-96c2-5237ec62ba9b sshpool1
Associated health monitor ac6aca67-6aff-4ce0-96c2-5237ec62ba9b
root@nodec22:~# neutron lb-healthmonitor-disassociate ac6aca67-6aff-4ce0-96c2-5237ec62ba9b sshpool1
Disassociated health monitor ac6aca67-6aff-4ce0-96c2-5237ec62ba9b
root@nodec22:~# neutron lb-healthmonitor-disassociate ac6aca67-6aff-4ce0-96c2-5237ec62ba9b sshpool1 <<<<
Request Failed: internal server error while processing your request.
root@nodec22:~# neutron lb-healthmonitor-disassociate ac6aca67-6aff-4ce0-96c2-5237ec62ba9b sshpool2
Unable to find pool with name 'sshpool2'
root@nodec22:~#

neutron/server.log:
==================
2014-09-25 03:37:17.394 ERROR [neutron.api.v2.resource] delete failed
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/neutron/api/v2/resource.py", line 84, in resource
    result = method(request=request, **args)
  File "/usr/lib/python2.7/dist-packages/neutron/api/v2/base.py", line 420, in delete
    obj = self._item(request, id, parent_id=parent_id)
  File "/usr/lib/python2.7/dist-packages/neutron/api/v2/base.py", line 258, in _item
    obj = obj_getter(request.context, id, **kwargs)
  File "/usr/lib/python2.7/dist-packages/neutron_plugin_contrail/plugins/opencontrail/loadbalancer/loadbalancer_db.py", line 154, in get_pool_health_monitor
    for mref in pool.get_loadbalancer_healthmonitor_refs():
TypeError: 'NoneType' object is not iterable

Revision history for this message
Rudra Rugge (rrugge) wrote :
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.