subnetpool allocation not working with multiples subnets on a unique network
Bug #1451559 reported by
Cedric Brandily
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Medium
|
Ryan Tidwell | ||
Kilo |
New
|
Undecided
|
Unassigned |
Bug Description
The following scenario is not working:
#$ neutron subnetpool-create pool --pool-prefix 10.0.0.0/8 --default-prefixlen 24
#$ neutron net-create net
#$ neutron subnet-create net --name subnet0 10.0.0.0/24
#$ neutron subnet-create net --name subnet1--subnetpool pool
>>> returns a 409
Last command fails because neutron tries to allocate to subnet1 the 1st unallocated cidr from 10.0.0.0/8 pool => 10.0.0.0/24 but subnet net as already 10.0.0.0/24 as cidr (subnet0) and overlapping cidrs are disallowed on the same network!
Changed in neutron: | |
assignee: | nobody → Cedric Brandily (cbrandily) |
Changed in neutron: | |
assignee: | Cedric Brandily (cbrandily) → nobody |
Changed in neutron: | |
assignee: | nobody → Ryan Tidwell (ryan-tidwell) |
Changed in neutron: | |
milestone: | none → liberty-1 |
tags: | added: kilo-backport-potential |
Changed in neutron: | |
status: | Fix Committed → Fix Released |
Changed in neutron: | |
milestone: | liberty-1 → 7.0.0 |
To post a comment you must log in.
You should think of the first subnet create as creating a subnet from a special pool. We've called that pool the "implicit", "null", "unnamed", or "default" pool over time. Regardless of the name, it is the pool that existed in Neutron before the subnet pool feature came to be.
The second subnet-create comes from a different pool, the one you named "pool". So, this bug gets in to what happens when we mix addresses from two different pools on the same network. Allocations from two different pools will never be checked for overlap.
I had thought about disallowing this but it didn't fit in the scope for Kilo. For now, please be advised that all subnets on the same network should come from the same pool until we can work out if and how it can work.
We should probably address this bug report by checking that all subnets on a network come from the same pool.