Neutron plugin v3 doesn't show remote_ip_prefix 0/0

Bug #1550238 reported by Antoine Eiche
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
Trunk
Fix Committed
Undecided
Unassigned
OpenContrail
New
Undecided
Unassigned

Bug Description

Neutron plugin v3 doesn't show the value of the remote_ip_prefix when it is set to 0/0 while the neutron base reference shows it.

Moreover, this causes troubles to terraform for instance since it checks the security group it created has been created. When terraform creates a rule 0/0, its check fails since the remote_ip_prefix is not show.

================================================================================
The current behavior:

[cloud:~/devstack] master* 2 ± neutron security-group-rule-create sg1
Created a new security_group_rule:
+-------------------+--------------------------------------+
| Field | Value |
+-------------------+--------------------------------------+
| direction | ingress |
| ethertype | IPv4 |
| id | 0649a689-677f-4ff5-894a-db2ba2727b11 |
| port_range_max | |
| port_range_min | |
| protocol | |
| remote_group_id | |
| remote_ip_prefix | |
| security_group_id | 62484538-1fb5-40d0-a0bf-369f6d60dab2 |
| tenant_id | e29c641486fc401ca356b72d84a9f072 |
+-------------------+--------------------------------------+
[cloud:~/devstack] master* ± neutron security-group-rule-create sg1 --remote-ip-prefix 0.0.0.0/0
Created a new security_group_rule:
+-------------------+--------------------------------------+
| Field | Value |
+-------------------+--------------------------------------+
| direction | ingress |
| ethertype | IPv4 |
| id | c03f35b9-1271-41da-91d6-94e682915b19 |
| port_range_max | |
| port_range_min | |
| protocol | |
| remote_group_id | |
| remote_ip_prefix | |
| security_group_id | 62484538-1fb5-40d0-a0bf-369f6d60dab2 |
| tenant_id | e29c641486fc401ca356b72d84a9f072 |
+-------------------+--------------------------------------+

================================================================================
The neutron base reference behavior

[cloud:~/devstack] master* 2s ± neutron security-group-rule-create sg1 --remote-ip-prefix 0.0.0.0/0
Created a new security_group_rule:
+-------------------+--------------------------------------+
| Field | Value |
+-------------------+--------------------------------------+
| direction | ingress |
| ethertype | IPv4 |
| id | 99238176-3010-4671-9162-55b8ceee59c8 |
| port_range_max | |
| port_range_min | |
| protocol | |
| remote_group_id | |
| remote_ip_prefix | 0.0.0.0/0 |
| security_group_id | 62484538-1fb5-40d0-a0bf-369f6d60dab2 |
| tenant_id | e29c641486fc401ca356b72d84a9f072 |
+-------------------+--------------------------------------+
[cloud:~/devstack] master* 2s ± neutron security-group-rule-create sg1
Created a new security_group_rule:
+-------------------+--------------------------------------+
| Field | Value |
+-------------------+--------------------------------------+
| direction | ingress |
| ethertype | IPv4 |
| id | 66edfcfb-2975-4fb9-98f1-b94f4d8dbc1a |
| port_range_max | |
| port_range_min | |
| protocol | |
| remote_group_id | |
| remote_ip_prefix | |
| security_group_id | 62484538-1fb5-40d0-a0bf-369f6d60dab2 |
| tenant_id | e29c641486fc401ca356b72d84a9f072 |
+-------------------+--------------------------------------+

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

Review in progress for https://review.opencontrail.org/17900
Submitter: Antoine Eiche (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/17900
Committed: http://github.org/Juniper/contrail-neutron-plugin/commit/d0959ab845a6b909209ee81229f5bc989e11d3a2
Submitter: Zuul
Branch: master

commit d0959ab845a6b909209ee81229f5bc989e11d3a2
Author: Antoine Eiche <email address hidden>
Date: Fri Feb 26 10:40:41 2016 +0100

Show remote ip prefix when it is set to 0/0

The neutron base reference shows the remote ip prefix when it is set to 0/0.

Change-Id: Ib750882dfae258e224112d049a614ebf8285f3fa
Closes-Bug: #1550238

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.