subnet create is not working with --use-default-subnet-pool
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack SDK |
Fix Released
|
Undecided
|
Unassigned | ||
neutron |
Fix Released
|
Medium
|
Dr. Jens Harbott | ||
python-openstackclient |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Seems like the option is not passed properly to the API:
$ openstack --debug subnet create --ip-version 6 --use-default-
...
REQ: curl -g -i -X POST http://
http://
RESP: [400] Content-Type: application/json Content-Length: 146 X-Openstack-
RESP BODY: {"NeutronError": {"message": "Bad subnets request: a subnetpool must be specified in the absence of a cidr.", "type": "BadRequest", "detail": ""}}
...
HttpException: HttpException: Bad Request, Bad subnets request: a subnetpool must be specified in the absence of a cidr.
END return value: 1
$
Running the same command using the neutron CLI is working fine:
$ neutron --debug subnet-create --name subnet6 --ip_version 6 --use-default-
...
DEBUG: keystoneauth.
net": {"use_default_
DEBUG: keystoneauth.
RESP BODY: {"subnet": {"service_types": [], "description": "", "enable_dhcp": true, "tags": [], "network_id": "1f20da97-
"2017-
idr": "2001:db8:
...
So somehow this attribute is missing from the OSC's request:
"use_default_
Changed in python-openstackclient: | |
assignee: | nobody → Dr. Jens Rosenboom (j-rosenboom-j) |
Changed in python-openstacksdk: | |
assignee: | nobody → Dr. Jens Rosenboom (j-rosenboom-j) |
Changed in python-openstackclient: | |
status: | New → Invalid |
Changed in python-openstackclient: | |
status: | Invalid → In Progress |
assignee: | nobody → Dr. Jens Rosenboom (j-rosenboom-j) |
tags: | added: api-ref |
Changed in neutron: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in python-openstacksdk: | |
status: | In Progress → Fix Released |
Changed in neutron: | |
assignee: | Dr. Jens Rosenboom (j-rosenboom-j) → nobody |
Changed in python-openstackclient: | |
status: | In Progress → Fix Released |
Changed in python-openstacksdk: | |
assignee: | Dr. Jens Rosenboom (j-rosenboom-j) → nobody |
Changed in python-openstackclient: | |
assignee: | Dr. Jens Rosenboom (j-rosenboom-j) → nobody |
OSC does handle the attribute correctly, but it is being ignored by python- openstacksdk.