subnet-delete allowed with ports present

Bug #1447923 reported by Prakash Bailkeri
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R2.20
Fix Committed
High
Prakash Bailkeri
Trunk
Fix Committed
High
Prakash Bailkeri

Bug Description

root@nodea27:/var/log/contrail# neutron net-create test_vn
Created a new network:
+-------------------------+--------------------------------------+
| Field | Value |
+-------------------------+--------------------------------------+
| admin_state_up | True |
| contrail:fq_name | default-domain |
| | admin |
| | test_vn |
| contrail:instance_count | 0 |
| id | 805ede65-4835-4bb7-8b84-889f7a4e673c |
| name | test_vn |
| router:external | False |
| shared | False |
| status | ACTIVE |
| subnets | |
| tenant_id | dda70580842542d3a4fe67b3a5337f6e |
+-------------------------+--------------------------------------+
root@nodea27:/var/log/contrail# neutron subnet-create test_vn 1.1.22.0/24
Created a new subnet:
+------------------+--------------------------------------------+
| Field | Value |
+------------------+--------------------------------------------+
| allocation_pools | {"start": "1.1.22.2", "end": "1.1.22.254"} |
| cidr | 1.1.22.0/24 |
| dns_nameservers | |
| enable_dhcp | True |
| gateway_ip | 1.1.22.1 |
| host_routes | |
| id | 685c752b-6e68-4f38-b6a2-d579521d5ab9 |
| ip_version | 4 |
| name | |
| network_id | 805ede65-4835-4bb7-8b84-889f7a4e673c |
| tenant_id | dda70580842542d3a4fe67b3a5337f6e |
+------------------+--------------------------------------------+
root@nodea27:/var/log/contrail# neutron port-create test_vn
Created a new port:
+---------------------+---------------------------------------------------------------------------------+
| Field | Value |
+---------------------+---------------------------------------------------------------------------------+
| admin_state_up | True |
| binding:vif_details | {"port_filter": true} |
| binding:vif_type | vrouter |
| device_id | |
| device_owner | |
| fixed_ips | {"subnet_id": "685c752b-6e68-4f38-b6a2-d579521d5ab9", "ip_address": "1.1.22.3"} |
| id | a42d0cdc-59ce-4ec8-9937-4087ebfc7117 |
| mac_address | 02:a4:2d:0c:dc:59 |
| name | a42d0cdc-59ce-4ec8-9937-4087ebfc7117 |
| network_id | 805ede65-4835-4bb7-8b84-889f7a4e673c |
| security_groups | c8e89fd3-c751-4bf1-84a2-58a217495472 |
| status | DOWN |
| tenant_id | dda70580842542d3a4fe67b3a5337f6e |
+---------------------+---------------------------------------------------------------------------------+
root@nodea27:/var/log/contrail# neutron subnet-delete 685c752b-6e68-4f38-b6a2-d579521d5ab9
Deleted subnet: 685c752b-6e68-4f38-b6a2-d579521d5ab9
root@nodea27:/var/log/contrail# neutron port-show a42d0cdc-59ce-4ec8-9937-4087ebfc7117
+---------------------+-----------------------------------------------+
| Field | Value |
+---------------------+-----------------------------------------------+
| admin_state_up | True |
| binding:vif_details | {"port_filter": true} |
| binding:vif_type | vrouter |
| device_id | |
| device_owner | |
| fixed_ips | {"subnet_id": null, "ip_address": "1.1.22.3"} |
| id | a42d0cdc-59ce-4ec8-9937-4087ebfc7117 |
| mac_address | 02:a4:2d:0c:dc:59 |
| name | a42d0cdc-59ce-4ec8-9937-4087ebfc7117 |
| network_id | 805ede65-4835-4bb7-8b84-889f7a4e673c |
| security_groups | c8e89fd3-c751-4bf1-84a2-58a217495472 |
| status | DOWN |
| tenant_id | dda70580842542d3a4fe67b3a5337f6e |
+---------------------+-----------------------------------------------+

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

Review in progress for https://review.opencontrail.org/9652
Submitter: Prakash Bailkeri (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/10090
Submitter: Prakash Bailkeri (<email address hidden>)

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

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

commit 279379d2dc7df1241d6d63ad2f7e5d134b0154ce
Author: Prakash Bailkeri <email address hidden>
Date: Tue Apr 28 22:47:16 2015 -0700

Read the instance ip and floating ip pool back_ref for the VN when subnet is being
deleted from the VN

This issue is introduced by "https://github.com/Juniper/contrail-controller/commit/3d48f30de8ad47249c7c444d9baeea393001d501"
Closes-bug: #1447923

Change-Id: I575f6f34be63949526ec15df52db552fd2c1119f

Changed in juniperopenstack:
status: New → Fix Committed
information type: Proprietary → Public
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/10090
Committed: http://github.org/Juniper/contrail-controller/commit/f42602ed3f299ab11539c4f4641f00211c12e0f7
Submitter: Zuul
Branch: R2.20

commit f42602ed3f299ab11539c4f4641f00211c12e0f7
Author: Prakash Bailkeri <email address hidden>
Date: Tue Apr 28 22:47:16 2015 -0700

Read the instance ip and floating ip pool back_ref for the VN when subnet is being
deleted from the VN

This issue is introduced by "https://github.com/Juniper/contrail-controller/commit/3d48f30de8ad47249c7c444d9baeea393001d501"
Closes-bug: #1447923

Change-Id: I575f6f34be63949526ec15df52db552fd2c1119f

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.