Filters don't work in LBaaS and VPNaaS list requests

Bug #1240479 reported by Tatiana Ovchinnikova
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Low
Tatiana Ovchinnikova

Bug Description

Neutron API and CLI support filters. But in horizon/openstack_dashboard/api "lbaas.py" and "vpnaas.py" we cannot get any proper request with filters:

(Pdb) p api.lbaas.pools_get(request, name='tst')
DEBUG:neutronclient.client:
REQ: curl -i http://172.18.76.45:9696//v2.0/lb/pools.json -X GET -H "X-Auth-Token: be2d5fc1a53a883bf8851950516e4b61" -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-neutronclient"

Thus we get the whole list of pools:

DEBUG:neutronclient.client:RESP:{'date': 'Wed, 16 Oct 2013 11:30:46 GMT', 'status': '200', 'content-length': '854', 'content-type': 'application/json; charset=UTF-8', 'content-location': 'http://172.18.76.45:9696//v2.0/lb/pools.json'} {"pools": [{"status": "PENDING_CREATE", "lb_method": "ROUND_ROBIN", "protocol": "HTTP", "description": "", "health_monitors": [], "subnet_id": "8c799d53-4f80-42a3-a5d6-8b521cf56608", "tenant_id": "0c078acd6f854ed695f063d261fd5086", "admin_state_up": true, "name": "tstpool2", "health_monitors_status": [], "members": [], "provider": "haproxy", "status_description": null, "id": "8f67b4a6-bdf0-47cd-809a-16cb76d1c652", "vip_id": null}, {"status": "PENDING_CREATE", "lb_method": "ROUND_ROBIN", "protocol": "HTTP", "description": "", "health_monitors": [], "subnet_id": "8c799d53-4f80-42a3-a5d6-8b521cf56608", "tenant_id": "0c078acd6f854ed695f063d261fd5086", "admin_state_up": true, "name": "tst", "health_monitors_status": [], "members": [], "provider": "haproxy", "status_description": null, "id": "ff332901-8770-42b8-a3d0-0614b288ee10", "vip_id": null}]}

[<Pool: {u'status': u'PENDING_CREATE', u'lb_method': u'ROUND_ROBIN', u'protocol': u'HTTP', u'description': u'', u'health_monitors': [], u'subnet_id': u'8c799d53-4f80-42a3-a5d6-8b521cf56608', u'tenant_id': u'0c078acd6f854ed695f063d261fd5086', u'admin_state_up': True, u'vip_id': None, u'health_monitors_status': [], u'members': [], u'provider': u'haproxy', u'status_description': None, u'id': u'8f67b4a6-bdf0-47cd-809a-16cb76d1c652', u'name': u'tstpool2'}>, <Pool: {u'status': u'PENDING_CREATE', u'lb_method': u'ROUND_ROBIN', u'protocol': u'HTTP', u'description': u'', u'health_monitors': [], u'subnet_id': u'8c799d53-4f80-42a3-a5d6-8b521cf56608', u'tenant_id': u'0c078acd6f854ed695f063d261fd5086', u'admin_state_up': True, u'vip_id': None, u'health_monitors_status': [], u'members': [], u'provider': u'haproxy', u'status_description': None, u'id': u'ff332901-8770-42b8-a3d0-0614b288ee10', u'name': u'tst'}>]

The same we could get without any filters:

(Pdb) p api.lbaas.pools_get(request)
DEBUG:neutronclient.client:
REQ: curl -i http://172.18.76.45:9696//v2.0/lb/pools.json -X GET -H "X-Auth-Token: be2d5fc1a53a883bf8851950516e4b61" -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-neutronclient"

Changed in horizon:
assignee: nobody → Tatiana Mazur (tmazur)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

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

Changed in horizon:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/52084
Committed: http://github.com/openstack/horizon/commit/babefc8d9e70ca7f3c79c21f3ef9dad0de4be2e7
Submitter: Jenkins
Branch: master

commit babefc8d9e70ca7f3c79c21f3ef9dad0de4be2e7
Author: Tatiana Mazur <email address hidden>
Date: Wed Oct 16 15:56:50 2013 +0400

    Add filtering parameters to list requests

    This patch set adds filtering parameters to some
    methods in "lbaas.py" and "vpnaas.py".

    Fixes bug 1240479

    Change-Id: I288c3c9138e42c4ac7cd16c6bd0b5586374c5f38

Changed in horizon:
status: In Progress → Fix Committed
Changed in horizon:
importance: Undecided → Low
milestone: none → icehouse-1
Thierry Carrez (ttx)
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: icehouse-1 → 2014.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.