Got unknown error when creating subnet without subnetpool
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-neutronclient |
Expired
|
Low
|
Unassigned |
Bug Description
Got "Unknown error' when creating subnet without subnetpool
RESP: [400] Date: Sat, 20 Jun 2020 01:20:47 GMT Content-Type: application/json Content-Length: 146 Connection: keep-alive X-Openstack-
RESP BODY: {"NeutronError": {"message": "Bad subnets request: a subnetpool must be specified in the absence of a cidr.", "type": "BadRequest", "detail": ""}}
# openstack subnet create --dhcp --gateway 3.3.3.254 --network 0a5d7fff-
BadRequestExcep
root@mgt01:
openstack 3.14.2
root@mgt01:
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
6.7.0
I am not sure how old 3.14.2 is for openstack client (on recent devstack I have 5.2.0), but this has been fixed some time ago:
$ openstack subnet create --dhcp --gateway 3.3.3.254 --network test5 test5-subnet tion: 400: Client Error for url: http:// 127.0.0. 1/networking/ v2.0/subnets, Bad subnets request: a subnetpool must be specified in the absence of a cidr.
BadRequestExcep