neutron openstack client returns ' Unknown error' instead of the real error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-openstackclient |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
For several neutron create actions, when called via the openstack client you do not get the real error issued by the plugin, as you do with the neutronclient. instead yo get:
BadRequestExcep
For example, try to create a subnet without a cidr:
1) with the neutron client you see the real error:
neutron subnet-create --name sub1 net1
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
Bad subnets request: a subnetpool must be specified in the absence of a cidr.
Neutron server returns request_ids: ['req-8ee84525-
2) with the openstack client the information is missing:
openstack subnet create --network net1 sub1
BadRequestExcep
I didn't check it locally but from Your description it looks like it's bug in OpenStack Client, not in Neutron. If neutronclient displays proper error message, it means IMO that neutron returns proper info via REST API.
Can You explain if there is something wrong on Neutron's side here? If so, please maybe attach logs from neutron-server which shows problem there.