Stacktrace while listing loadbalancer vips

Bug #1098165 reported by Ilya Shakhat
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
High
Ilya Shakhat

Bug Description

The request to list loadbalancer vips fails with stacktrace.
Request:
  curl -i http://localhost:9696/v2.0/lb/vips
  HTTP/1.1 400 Bad Request
  Content-Type: application/json
  Content-Length: 65
  Date: Thu, 10 Jan 2013 12:24:08 GMT
  {"QuantumError": "'super' object has no attribute 'get_vips_db'"}
Trace:
Traceback (most recent call last):
   File "/home/ishakhat/Work/quantum/quantum/api/v2/resource.py", line 96, in resource
     result = method(request=request, **args)
   File "/home/ishakhat/Work/quantum/quantum/api/v2/base.py", line 211, in index
     return self._items(request, True, parent_id)
   File "/home/ishakhat/Work/quantum/quantum/api/v2/base.py", line 177, in _items
     obj_list = obj_getter(request.context, **kwargs)
   File "/home/ishakhat/Work/quantum/quantum/plugins/services/loadbalancer/loadbalancerPlugin.py", line 101, in get_vips
     res = super(LoadBalancerPlugin, self).get_vips_db(
 AttributeError: 'super' object has no attribute 'get_vips_db'

The issue may be fixed by replacing 'get_vips_db' to 'get_vips'.

Tags: lbaas
Revision history for this message
Salvatore Orlando (salvatore-orlando) wrote :

Unfortunately this might have occurred in one of the last review cycles when I asked Leon to rename methods.
We also need to ensure the code where this failure occurs is covered by unit tests.

I am assigning to myself at the moment, but if you have a patch ready just push it.

Changed in quantum:
milestone: none → grizzly-3
importance: Undecided → High
assignee: nobody → Salvatore Orlando (salvatore-orlando)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to quantum (master)

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

Changed in quantum:
assignee: Salvatore Orlando (salvatore-orlando) → Ilya Shakhat (shakhat)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to quantum (master)

Reviewed: https://review.openstack.org/19395
Committed: http://github.com/openstack/quantum/commit/3558d4445974bd5fd29562254893f9c24d8ccc56
Submitter: Jenkins
Branch: master

commit 3558d4445974bd5fd29562254893f9c24d8ccc56
Author: Ilya Shakhat <email address hidden>
Date: Thu Jan 10 19:51:40 2013 +0400

    Fix for loadbalancer vips list

    Fixes bug 1098165

    Change-Id: I86106d39afc9d5d8c6d2d0bbdcd829baf2c1b66b

Changed in quantum:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in quantum:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in quantum:
milestone: grizzly-3 → 2013.1
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.