[VNC API server] List port with device_id filter fails

Bug #1586012 reported by Édouard Thuleau
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
Trunk
Fix Committed
Undecided
Unassigned
OpenContrail
Fix Committed
Undecided
Unassigned

Bug Description

With the Contrail Neutron plugin v2, listing port with a device_id filter fails:

$ neutron port-list
+--------------------------------------+--------------------------------------+-------------------+---------------------------------------------------------------------------------+
| id | name | mac_address | fixed_ips |
+--------------------------------------+--------------------------------------+-------------------+---------------------------------------------------------------------------------+
| d22258fe-cc81-4ef1-8d17-f4b5918a94be | d22258fe-cc81-4ef1-8d17-f4b5918a94be | 02:d2:22:58:fe:cc | {"subnet_id": "6fffd04e-2f3c-42f9-80e4-d98cde51fe97", "ip_address": "10.0.0.3"} |
+--------------------------------------+--------------------------------------+-------------------+---------------------------------------------------------------------------------+
$ neutron port-show d22258fe-cc81-4ef1-8d17-f4b5918a94be
+---------------------+---------------------------------------------------------------------------------+
| Field | Value |
+---------------------+---------------------------------------------------------------------------------+
| admin_state_up | True |
| binding:host_id | contrail-devstack |
| binding:vif_details | {"port_filter": true} |
| binding:vif_type | vrouter |
| binding:vnic_type | normal |
| device_id | daea875b-fc50-4f42-8c07-97416acaaad3 |
| device_owner | compute:None |
| fixed_ips | {"subnet_id": "6fffd04e-2f3c-42f9-80e4-d98cde51fe97", "ip_address": "10.0.0.3"} |
| id | d22258fe-cc81-4ef1-8d17-f4b5918a94be |
| mac_address | 02:d2:22:58:fe:cc |
| name | d22258fe-cc81-4ef1-8d17-f4b5918a94be |
| network_id | 97f85495-3566-4df6-9895-dde634df7341 |
| security_groups | 347505da-178a-410a-984e-ac455e5f78ff |
| status | ACTIVE |
| tenant_id | 16540f86b72541e88cf9adac8af9f1d5 |
+---------------------+---------------------------------------------------------------------------------+
$ ± neutron port-list --device-id daea875b-fc50-4f42-8c07-97416acaaad3

$

Tags: config neutron
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/20670
Submitter: ?douard Thuleau (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/20670
Committed: http://github.org/Juniper/contrail-controller/commit/ca45ffecb8532dccb0276fe1a6c1738f877ed1de
Submitter: Zuul
Branch: master

commit ca45ffecb8532dccb0276fe1a6c1738f877ed1de
Author: Édouard Thuleau <email address hidden>
Date: Thu May 26 14:33:39 2016 +0200

[VNC OpenStack] List VMI with device_id filters

The patch [1] introduced a regression. The VNC API should returns all
resources that match ANY given anchors.

[1] https://review.opencontrail.org/#/c/19153/

Change-Id: I1363eaa5f89b4df3875f2ac46de40ebc54836ba7
Closes-Bug: #1586012

Sachin Bansal (sbansal)
Changed in opencontrail:
status: New → Fix Committed
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.