lbaas loadbalancers statuses command failed on stable/liberty release

Bug #1594419 reported by alex kang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Invalid
Undecided
Unassigned
neutron-lbaas (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

/lbaas/loadbalancers/<lb-id>/statuses used to retrieve load-balancer and its related resources in a dict. This RESTful API works at Kilo and Master, but not stable/liberty.

lbaasv2 driver in my devstack configuration:
enable_plugin neutron-lbaas https://git.openstack.org/openstack/neutron-lbaas stable/liberty
NEUTRON_LBAAS_SERVICE_PROVIDERV2=LOADBALANCERV2:Haproxy:neutron_lbaas.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default
enable_service q-lbaasv2

lbaas resource tree:
load-balancer
  -- listener1
  -- pool1 -- health monitor (HTTP)
     -- member-1, it server has floating ip
     -- member-1, it server has floating ip

Error message from the statuses API:

URI: u'/lbaas/loadbalancers/2a0c262f-4ff8-44a2-bacf-9c01923be1b7/statuses’ causing “ServerFault: ServerFault()”

q-svc log:

2016-06-17 14:51:56.635 INFO neutron.wsgi [req-43338856-0889-4072-8aa0-f304b723dbad admin 06ffffb000ad46398f454b8803b28f45] 10.144.139.55 - - [17/Jun/2016 14:51:56] "GET /v2.0/lbaas/loadbalancers/2a0c262f-4ff8-44a2-bacf-9c01923be1b7 HTTP/1.1" 200 666 0.093880
2016-06-17 14:51:56.638 INFO neutron.wsgi [-] (23451) accepted ('10.144.139.55', 51711)
2016-06-17 14:51:56.734 ERROR neutron.api.v2.resource [req-f546f674-3c68-408e-bcdf-237e79d3f45e admin 06ffffb000ad46398f454b8803b28f45] statuses failed
2016-06-17 14:51:56.734 TRACE neutron.api.v2.resource Traceback (most recent call last):
2016-06-17 14:51:56.734 TRACE neutron.api.v2.resource File "/opt/stack/neutron/neutron/api/v2/resource.py", line 83, in resource
2016-06-17 14:51:56.734 TRACE neutron.api.v2.resource result = method(request=request, **args)
2016-06-17 14:51:56.734 TRACE neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/oslo_db/api.py", line 146, in wrapper
2016-06-17 14:51:56.734 TRACE neutron.api.v2.resource ectxt.value = e.inner_exc
2016-06-17 14:51:56.734 TRACE neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 204, in __exit__
2016-06-17 14:51:56.734 TRACE neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb)
2016-06-17 14:51:56.734 TRACE neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/oslo_db/api.py", line 136, in wrapper
2016-06-17 14:51:56.734 TRACE neutron.api.v2.resource return f(*args, **kwargs)
2016-06-17 14:51:56.734 TRACE neutron.api.v2.resource File "/opt/stack/neutron/neutron/api/v2/base.py", line 217, in _handle_action
2016-06-17 14:51:56.734 TRACE neutron.api.v2.resource ret_value = getattr(self._plugin, name)(*arg_list, **kwargs)
2016-06-17 14:51:56.734 TRACE neutron.api.v2.resource File "/opt/stack/neutron-lbaas/neutron_lbaas/services/loadbalancer/plugin.py", line 1035, in statuses
2016-06-17 14:51:56.734 TRACE neutron.api.v2.resource self._set_degraded(self, listener_status, lb_status)
2016-06-17 14:51:56.734 TRACE neutron.api.v2.resource File "/opt/stack/neutron-lbaas/neutron_lbaas/services/loadbalancer/plugin.py", line 1068, in _set_degraded
2016-06-17 14:51:56.734 TRACE neutron.api.v2.resource obj["operating_status"] = lb_const.DEGRADED
2016-06-17 14:51:56.734 TRACE neutron.api.v2.resource TypeError: 'LoadBalancerPluginv2' object does not support item assignment
2016-06-17 14:51:56.734 TRACE neutron.api.v2.resource

stack@htb-1n-eng-dhcp8:/opt/devtest/vmware-nsx-devel/vmware_nsx_tempest/tests/nsxv/api/lbaas$ neutron lbaas-loadbalancer-show 2a0c262f-4ff8-44a2-bacf-9c01923be1b7
+---------------------+------------------------------------------------+
| Field | Value |
+---------------------+------------------------------------------------+
| admin_state_up | True |
| description | |
| id | 2a0c262f-4ff8-44a2-bacf-9c01923be1b7 |
| listeners | {"id": "c435a653-91c1-4e66-84cb-92bf0a16d57c"} |
| name | |
| operating_status | ONLINE |
| provider | haproxy |
| provisioning_status | ACTIVE |
| tenant_id | 36024bc3b9f74976a0da13a8e6ff4fc3 |
| vip_address | 10.20.0.3 |
| vip_port_id | c34a0532-f286-4730-8cf4-69343f3b805a |
| vip_subnet_id | 0dec2bac-9038-485f-b4ed-730213590614 |
+---------------------+------------------------------------------------+

driver used:

Revision history for this message
alex kang (akang) wrote :

Correction on lbaas resource tree:
load-balancer
  -- listener1
  -- pool1 -- health monitor (HTTP)
     -- member-1, it server has floating ip
     -- member-2, it server has floating ip

Revision history for this message
Corey Bryant (corey.bryant) wrote :

Alex, Thanks for submitting this bug. It looks like this bug should be targeted at upstream neutron-lbaas for stable/liberty so I'm going to do that.

alex kang (akang)
Changed in neutron:
status: New → Invalid
Changed in neutron-lbaas (Ubuntu):
status: New → Invalid
Revision history for this message
alex kang (akang) wrote :

I made mistake in configuring the OVS_BRIDGE and causing the problem.

devstack stacking process insert lbaas:

    ovs_integration_bridge = nsxvswitch # nsx-managed

as it is to lbaas config.

lbaas agent read it as it is without removing the comment which I thought everything after # is comment

please close this bug.

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.