← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1594419] Re: lbaas loadbalancers statuses command failed on stable/liberty release

 

** Changed in: neutron
       Status: New => Invalid

** Changed in: neutron-lbaas (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1594419

Title:
  lbaas loadbalancers statuses command  failed on stable/liberty release

Status in neutron:
  Invalid
Status in neutron-lbaas package in Ubuntu:
  Invalid

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:

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1594419/+subscriptions