[R2.1 build 39]: Subnet being used by a port is allowed to delete from the VN

Bug #1426242 reported by Ankit Jain
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R1.1
Fix Committed
Undecided
Sachin Bansal
R2.0
Fix Committed
Undecided
Sachin Bansal
R2.1
Fix Committed
Undecided
Sachin Bansal
Trunk
Invalid
Undecided
Sachin Bansal

Bug Description

Steps to reproduce :

1) Create a VN with a subnet ( say vn VN1 subnet 80.1.1.0/24)
2) Create a port p1 using VN1 80.1.1.0/24
3) Delete the subnet from the VN VN1

Step 3 should throw an error as subnet is still being used by the port p1

Discussed with Rahul..

Tags: config
Revision history for this message
Sachin Bansal (sbansal) wrote :

How are you trying to delete the subnet from VN? I got this error when I tried to do it from UI or neutron:

Cannot Delete IP Block, Instance IP(s) in use

Sachin Bansal (sbansal)
Changed in juniperopenstack:
status: New → Incomplete
Revision history for this message
Ankit Jain (ankitja) wrote :

Could you please share the setup where you have tried?

I'm able to reproduce it.
You please try it again on nodeg13 using the steps as below:
1)create a fresh VN ( config -> networks -> create network -> enter vn name and add a subnet with default ipam and save )
2)create port ( config -> ports -> select the network created in step 1 -> save )
a new port will be created with an ip addr from the subnet created in step1
3) Go back to the network page and delete the subnet from the VN created in step1
I'm able to delete the subnet.

Revision history for this message
Sachin Bansal (sbansal) wrote :
no longer affects: juniperopenstack/trunk
Revision history for this message
Sachin Bansal (sbansal) wrote :

The bug was never present in trunk

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

Reviewed: https://review.opencontrail.org/8002
Committed: http://github.org/Juniper/contrail-generateDS/commit/107f7bea353bf0a73d22c38cad32700543e1459d
Submitter: Zuul
Branch: R2.0

commit 107f7bea353bf0a73d22c38cad32700543e1459d
Author: Sachin Bansal <email address hidden>
Date: Thu Feb 26 11:12:03 2015 -0800

If field_names is None, return all fields as expected

Closes-Bug:1426242
Change-Id: I81d86633e28a3c7b9a8f809b9ff408b5c6fb89e9
(cherry picked from commit 3de7141a3aeaf2c67be996d457181496a0685235)

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

Reviewed: https://review.opencontrail.org/8003
Committed: http://github.org/Juniper/contrail-generateDS/commit/a8bbae54eef2e4076f796945dca33fd812c367b5
Submitter: Zuul
Branch: R1.10

commit a8bbae54eef2e4076f796945dca33fd812c367b5
Author: Sachin Bansal <email address hidden>
Date: Thu Feb 26 11:12:03 2015 -0800

If field_names is None, return all fields as expected

Closes-Bug:1426242
Change-Id: I81d86633e28a3c7b9a8f809b9ff408b5c6fb89e9
(cherry picked from commit 3de7141a3aeaf2c67be996d457181496a0685235)

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.