[ubuntu:R1.1-10] : Subnets are still getting added ( using diff IPAM) exceeding the quota limit

Bug #1355341 reported by Ruchi Priya
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R1.1
Fix Released
High
Sachin Bansal
Trunk
Fix Committed
High
Sachin Bansal

Bug Description

I had set the subnet quota to 2 for admin project,but I can add subnets >2 by using diff IPAMs through Horizon.

root@nodea5:~# neutron quota-show c24c14a7-b8ed-4ac3-8dd7-72c586f13e9c
+---------------------+-------+
| Field | Value |
+---------------------+-------+
| floatingip | -1 |
| nat_instance | -1 |
| network | 2 |
| port | -1 |
| route_table | -1 |
| router | -1 |
| security_group | -1 |
| security_group_rule | -1 |
| subnet | 2 |
+---------------------+-------+

root@nodea5:~# neutron subnet-list
+--------------------------------------+-------+-------------------+------------------------------------------------------+
| id | name | cidr | allocation_pools |
+--------------------------------------+-------+-------------------+------------------------------------------------------+
| 8e1cf914-96dd-42f9-b995-5320fe2fb4bf | | 10.204.219.152/29 | {"start": "10.204.219.153", "end": "10.204.219.158"} |
| 097689be-123b-4f21-bd29-b9fd9ce5951d | sub-1 | 10.10.10.0/24 | {"start": "10.10.10.2", "end": "10.10.10.254"} |
| 6c56c6f9-4570-49de-9cc4-36637ff2f340 | sub-3 | 30.30.30.0/24 | {"start": "30.30.30.2", "end": "30.30.30.254"} |
| 563f306d-7e55-49b2-a30b-62a8174658f4 | sub-2 | 20.20.20.0/24 | {"start": "20.20.20.2", "end": "20.20.20.254"} |
+--------------------------------------+-------+-------------------+------------------------------------------------------+

Only if I use the same IPAM ,I get error for exceeding the limit

setup:nodea5.englab.juniper.net

information type: Proprietary → Public
Sachin Bansal (sbansal)
Changed in juniperopenstack:
assignee: nobody → Sachin Bansal (sbansal)
status: New → In Progress
Revision history for this message
Sachin Bansal (sbansal) wrote :
Changed in juniperopenstack:
status: In Progress → Fix Committed
Revision history for this message
Ruchi Priya (ruchip) wrote :

Hitting the issue again on R1.1 #23

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

Please provide access to setup where you are seeing this.

Revision history for this message
Ruchi Priya (ruchip) wrote :

Build R1.1 #25 :
Setup:
single node setup.
nodea5.englab.juniper.net

root@nodea5:~# neutron quota-show 17af5d22-9234-4fbc-bdd7-00eed29204c4
+---------------------+-------+
| Field | Value |
+---------------------+-------+
| floatingip | 1 |
| nat_instance | -1 |
| network | -1 |
| port | -1 |
| route_table | -1 |
| router | -1 |
| security_group | -1 |
| security_group_rule | -1 |
| subnet | 2 |
+---------------------+-------+
root@nodea5:~# neutron subnet-list
+--------------------------------------+-------+------------+------------------------------------------+
| id | name | cidr | allocation_pools |
+--------------------------------------+-------+------------+------------------------------------------+
| 622fd2d3-447d-4f93-9d16-f8e2725f7de7 | sub-3 | 3.3.3.0/24 | {"start": "3.3.3.2", "end": "3.3.3.254"} |
| 71c20b17-2271-47c0-99b0-ed7a3c88a006 | sub-1 | 1.1.1.0/24 | {"start": "1.1.1.2", "end": "1.1.1.254"} |
| 98740e61-9ac1-425e-876c-421aa3cc4c82 | sub-2 | 2.2.2.0/24 | {"start": "2.2.2.2", "end": "2.2.2.254"} |
+--------------------------------------+-------+------------+------------------------------------------+

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

Sachin,
The commit URL you pointed out is for master...is it committed to 1.10 also ?

tags: added: blocker
Revision history for this message
Ruchi Priya (ruchip) wrote :

I observe the issue on mainline #2010 and R1.1 #25 as well:

Steps :
1) Set the quota limit for subnet to 2 ( using UI)
2) From horizon ,create a n/w and add 2 subnets using the default IPAM.
3) Try to add 3rd subnet using the default IPAM,it gives error as expected.
4) Try to add a subnet again using a new created IPAM -- test-1 ,it allows to add 1 more subnet .
5) Try to add one more subnet using IPAM -test1 --it fails
6) Add one more subnet using new IPAM test-2 ,it allows
,So it allows 1 subnet addition per new IPAM created even though the quota limit set exceeded.

Revision history for this message
Ruchi Priya (ruchip) wrote :

 for comment #6 * mainline build # 2310

summary: - [ubuntu:R1.1-10] : Subnets are still getting added exceeding the quota
- set using diff IPAM
+ [ubuntu:R1.1-10] : Subnets are still getting added ( using diff IPAM)
+ exceeding the quota limit
Sachin Bansal (sbansal)
Changed in juniperopenstack:
status: Fix Committed → Confirmed
Revision history for this message
Sachin Bansal (sbansal) wrote :
Changed in juniperopenstack:
status: Confirmed → Fix Committed
Revision history for this message
Sachin Bansal (sbansal) wrote :
Revision history for this message
Ruchi Priya (ruchip) wrote :

Verified on R1.1#32.

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.