Use subnetpool to create subnet failed when the min_prefixlen of subnetpool is not set
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
In Progress
|
Undecided
|
wangwei |
Bug Description
Creating a subnet is failed with a subnetpool when the min_prefixlen of subnetpool is not set.
[root@EXTENV-
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
Created a new subnetpool:
+------
| Field | Value |
+------
| address_scope_id | |
| created_at | 2019-02-
| default_prefixlen | 8 |
| default_quota | |
| description | |
| id | cc490736-
| ip_version | 4 |
| is_default | False |
| max_prefixlen | 32 |
| min_prefixlen | 8 |
| name | ww_v4_subnetpool1 |
| prefixes | 172.1.0.0/16 |
| project_id | f0561ceca7874b1
| revision_number | 0 |
| shared | False |
| tags | |
| tenant_id | f0561ceca7874b1
| updated_at | 2019-02-
+------
[root@EXTENV-
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
Failed to allocate subnet: Insufficient prefix space to allocate subnet size /8.
Neutron server returns request_ids: ['req-63d8430c-
I think when the min_prefixlen is not set,it is better to set it to be the prefixken(16) of pool_prefix (172.1.0.0/16) by default.And when the min_prefixlen is set(as the following test result),it should be checked whether it is bigger than the min prefixlen of pool prefix.
[root@EXTENV-
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
Created a new subnetpool:
+------
| Field | Value |
+------
| address_scope_id | |
| created_at | 2019-02-
| default_prefixlen | 16 |
| default_quota | |
| description | |
| id | 9da2fc9c-
| ip_version | 4 |
| is_default | False |
| max_prefixlen | 32 |
| min_prefixlen | 16 |
| name | ww_v4_subnetpool2 |
| prefixes | 172.2.0.0/24 |
| project_id | f0561ceca7874b1
| revision_number | 0 |
| shared | False |
| tags | |
| tenant_id | f0561ceca7874b1
| updated_at | 2019-02-
+------
[root@EXTENV-
[root@EXTENV-
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
Failed to allocate subnet: Insufficient prefix space to allocate subnet size /16.
Neutron server returns request_ids: ['req-09744170-
Changed in neutron: | |
assignee: | nobody → wangwei (emma2019) |
status: | New → In Progress |
Changed in neutron: | |
assignee: | wangwei (emma2019) → Ryan Tidwell (ryan-tidwell) |
Changed in neutron: | |
assignee: | Ryan Tidwell (ryan-tidwell) → wangwei (emma2019) |
A fix for this merged a few weeks ago and may need to be backported:
https:/ /bugs.launchpad .net/neutron/ +bug/1754062 /review. openstack. org/#/c/ 550558/
https:/