neutron port-list API with filter on fixed IP addresses

Bug #1399510 reported by Praveen Yalagandula
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Juniper Openstack
Fix Committed
Medium
Unassigned
R1.1
Won't Fix
Undecided
Yatin Kumbhare
OpenContrail
Fix Committed
Medium
Yatin Kumbhare

Bug Description

With Contrail 1.2, filtering based on fixed IP addresses in port-list API is not working:

root@Avi-Controller:~# neutron port-show 1e6d5f53-7eff-444d-ad91-1d4b3e5bb5db
+-----------------+------------------------------------------------------------------------------------+
| Field | Value |
+-----------------+------------------------------------------------------------------------------------+
| admin_state_up | True |
| device_id | 5e4537bc-9c76-450b-b914-7358bd07cb6d |
| device_owner | compute:nova |
| fixed_ips | {"subnet_id": "ee04c879-7fe9-45e8-a553-6aec173f8497", "ip_address": "172.30.88.8"} |
| id | 1e6d5f53-7eff-444d-ad91-1d4b3e5bb5db |
| mac_address | 02:1e:6d:5f:53:7e |
| name | 1e6d5f53-7eff-444d-ad91-1d4b3e5bb5db |
| network_id | 2feaadf8-259e-49f5-97a1-a9971ba7a517 |
| security_groups | 6d7506c5-db58-438a-8eac-e22cffbfc3b4 |
| status | ACTIVE |
| tenant_id | a8823903200844bfb9bcd197e7456482 |
+-----------------+------------------------------------------------------------------------------------+

root@Avi-Controller:~# neutron port-list --fixed-ips ip_address=172.30.88.8

root@Avi-Controller:~#

The behavior with OVS plugin in the reference implementation is as follows:

root@openstack-controller:~# neutron port-show fe04deff-119a-4014-b286-a511215d0a17
+-----------------------+-------------------------------------------------------------------------------------+
| Field | Value |
+-----------------------+-------------------------------------------------------------------------------------+
| admin_state_up | True |
| allowed_address_pairs | |
| binding:host_id | openstack-node |
| binding:vif_details | {"port_filter": true, "ovs_hybrid_plug": true} |
| binding:vif_type | ovs |
| device_id | b94c7715-fd9d-4d64-9815-5868ebb02931 |
| device_owner | compute:nova |
| extra_dhcp_opts | |
| fixed_ips | {"subnet_id": "64925cb0-d9a3-45bb-a942-0dcea12c6073", "ip_address": "10.10.32.148"} |
| id | fe04deff-119a-4014-b286-a511215d0a17 |
| mac_address | fa:16:3e:ef:1d:43 |
| name | |
| network_id | 9e645fe8-f570-4abe-a3c1-e138178f1cfc |
| security_groups | 4ca89573-e06d-4882-9698-df9ee46a0473 |
| status | ACTIVE |
| tenant_id | 126fb5cf58b24556b890edf63bd24139 |
+-----------------------+-------------------------------------------------------------------------------------+

root@openstack-controller:~# neutron port-list --fixed-ips ip_address=10.10.32.148
+--------------------------------------+------+-------------------+-------------------------------------------------------------------------------------+
| id | name | mac_address | fixed_ips |
+--------------------------------------+------+-------------------+-------------------------------------------------------------------------------------+
| fe04deff-119a-4014-b286-a511215d0a17 | | fa:16:3e:ef:1d:43 | {"subnet_id": "64925cb0-d9a3-45bb-a942-0dcea12c6073", "ip_address": "10.10.32.148"} |
+--------------------------------------+------+-------------------+-------------------------------------------------------------------------------------+

Tags: neutronapi
tags: added: neutronapi
Changed in juniperopenstack:
importance: Undecided → Medium
Changed in opencontrail:
importance: Undecided → Medium
Changed in opencontrail:
assignee: nobody → Yatin Kumbhare (yatinkumbhare-c)
Revision history for this message
Yatin Kumbhare (yatinkumbhare-c) wrote :

There is no branch R1.2 hence, on which branch of contrail-controller to fix this issue?

Should I fix this on tags v.1.20 ?

Revision history for this message
Vedamurthy Joshi (vedujoshi) wrote :

1.2 was on branch R1.10 .. you could fix there..it would be better to fix it on master first ?

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : R1.10

Review in progress for https://review.opencontrail.org/8760
Submitter: Yatin Kumbhare (<email address hidden>)

Revision history for this message
Yatin Kumbhare (yatinkumbhare-c) wrote :

Thanks for inputs.

Master also needs fix, will fix it on master sooner with new patch.

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Review in progress for https://review.opencontrail.org/8760
Submitter: Yatin Kumbhare (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : master

Review in progress for https://review.opencontrail.org/8836
Submitter: Yatin Kumbhare (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : R1.10

Review in progress for https://review.opencontrail.org/8871
Submitter: Yatin Kumbhare (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : master

Review in progress for https://review.opencontrail.org/8836
Submitter: Yatin Kumbhare (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : R1.10

Review in progress for https://review.opencontrail.org/8871
Submitter: Yatin Kumbhare (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : master

Review in progress for https://review.opencontrail.org/8836
Submitter: Yatin Kumbhare (<email address hidden>)

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

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

commit 5353b8fdf9c1a01643e2114276aa6f6886db71eb
Author: yatin.kumbhare <email address hidden>
Date: Thu Apr 2 14:53:29 2015 +0530

neutron port-list API with filter on fixed IP

Change-Id: I14aa2cbbeb81c1be3dc736b91422938d1a27bbea
Closes-Bug: #1399510
Closes-Bug: #1442479
Closes-Bug: #1442476

Changed in juniperopenstack:
status: New → Fix Committed
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.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.