Subnet creation from a subnet pool can get wrong ip_version
Bug #1444146 reported by
Carl Baldwin
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
High
|
Carl Baldwin | ||
Kilo |
New
|
Undecided
|
Unassigned | ||
python-neutronclient |
Fix Released
|
Medium
|
Akihiro Motoki |
Bug Description
The following command ends up creating a subnet with ip_version set to 4 even though the pool is an ipv6 pool.
$ neutron subnet-create --subnetpool ext-subnet-pool --prefixlen 64 network1
Changed in neutron: | |
assignee: | Carl Baldwin (carl-baldwin) → Ryan Tidwell (ryan-tidwell) |
Changed in neutron: | |
importance: | Undecided → High |
Changed in neutron: | |
milestone: | none → liberty-1 |
tags: | added: kilo-rc-potential |
Changed in neutron: | |
assignee: | Ryan Tidwell (ryan-tidwell) → Carl Baldwin (carl-baldwin) |
tags: | removed: kilo-rc-potential |
tags: | added: kilo-backport-potential |
Changed in python-neutronclient: | |
assignee: | nobody → Sudipta Biswas (sbiswas7) |
Changed in python-neutronclient: | |
status: | New → In Progress |
Changed in python-neutronclient: | |
importance: | Undecided → High |
importance: | High → Medium |
Changed in neutron: | |
status: | Fix Committed → Fix Released |
Changed in python-neutronclient: | |
assignee: | Sudipta Biswas (sbiswas7) → Akihiro Motoki (amotoki) |
Changed in python-neutronclient: | |
assignee: | Akihiro Motoki (amotoki) → Sudipta Biswas (sbiswas7) |
Changed in python-neutronclient: | |
assignee: | Sudipta Biswas (sbiswas7) → Akihiro Motoki (amotoki) |
Changed in python-neutronclient: | |
milestone: | none → 3.0.0 |
status: | Fix Committed → Fix Released |
Changed in neutron: | |
milestone: | liberty-1 → 7.0.0 |
To post a comment you must log in.
This bug seems to be partly the fault of the server and partly the fault of the client. The client makes the following request:
curl -g -i --cacert "/opt/stack/ data/CA/ int-ca/ ca-chain. pem" -X POST http:// 10.224. 36.25:9696/ v2.0/subnets. json -H "User-Agent: python- neutronclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}0c42f9260 8a907852b66070c 2776d291f4a07ae 4" -d '{"subnet": {"network_id": "2763a726- 7ae5-407a- a2d5-1b0852f361 2d", "ip_version": 4, "prefixlen": "64", "subnetpool_id": "f1918793- 620a-4fb2- bc01-9962623326 e8"}}'
The ip_version is set incorrectly by the client and the server incorrectly accepts it.