Got unknown error when creating subnet without subnetpool

Bug #1884334 reported by Eric Xie
8
This bug affects 1 person
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-Request-Id: req-113bb4b4-ec75-43ab-8157-d65f78e82d49 X-Content-Type-Options: nosniff X-Frame-Options: deny X-Permitted-Cross-Domain-Policies: none
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-87e9-40b7-8d7d-21d449e9e396 test-lease-subnet
BadRequestException: Unknown error

root@mgt01:/opt/tools# openstack --version
openstack 3.14.2
root@mgt01:/opt/tools# neutron --version
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
6.7.0

Revision history for this message
Bernard Cafarelli (bcafarel) wrote :

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
BadRequestException: 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.

Changed in python-neutronclient:
status: New → Incomplete
importance: Undecided → Low
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for python-neutronclient because there has been no activity for 60 days.]

Changed in python-neutronclient:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.