Subnet pool attribute updates fail when using address scopes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
New
|
Undecided
|
Adam Oswick |
Bug Description
Summary
-------
When multiple subnet pools are created using the same address scope, attributes such as name and description cannot be updated.
Description
-----------
There is a restriction in place to prevent changing the address scope on a subnet pool when other subnets in the same network would end up on a different address scope.
This is expected however the restriction is applied when updating other attributes on the subnet pool such as the name or description. This is not expected and requires manual updates via the DB or deleting the subnets, changing the required attribute and then recreating the subnets.
This appears to have been introduced by https:/
Step by step reproduction
-------
$ openstack network create testnet
$ openstack address scope create addressscope1
$ openstack subnet pool create --address-scope addressscope1 --pool-prefix 10.0.1.0/24 subnetpool1
$ openstack subnet pool create --address-scope addressscope1 --pool-prefix 10.0.2.0/24 subnetpool2
$ openstack subnet create --subnet-pool subnetpool1 --prefix-len 24 --network testnet subnet1
$ openstack subnet create --subnet-pool subnetpool2 --prefix-len 24 --network testnet subnet2
$ openstack subnet pool set --name subnetpool1-updated subnetpool1
BadRequestExcep
Expected output
---------------
The subnet pool name is changed from subnetpool1 to subnetpool1-updated
Actual output
-------------
The NetworkAddressS
Version
-------
2024.1
Changed in neutron: | |
assignee: | nobody → Adam Oswick (adamoswick) |