QoS policy API does not accept 'tenant_id' filter
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Opinion
|
Medium
|
Akihiro Motoki |
Bug Description
The list operation of QoS policy API does not accept 'tenant_id' as filter. 'project_id' filtering works.
We treat project_id and tenant_id equally in the API layer. It would be a bug.
ubuntu@
+------
| Field | Value |
+------
| expires | 2017-06-
| id | gAAAAABZNaPOLTZ
| project_id | dda5fe79cdd547e
| user_id | 7bcf326322944db
+------
ubuntu@
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
Invalid input for operation: 'tenant_id' is not supported for filtering.
Neutron server returns request_ids: ['req-0a0d76b2-
ubuntu@
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
Hello Akihiro:
Is this a bug for Neutron or python- neutronclient?
Anyway, as you say "we treat project_id and tenant_id equally in the API layer", but this is not true anymore. Since Newton release [1], all "tenant_id" references in the DB changed to "project_id". And the OpenStack client, at least the networking commands, doesn't support "tenant_id" [2][3]. There are no commands with "tenant_id" as input [3][4].
BTW, this bug should affect only to python- neutronclient. This project is deprecated in favor of python- openstackclient .
[1] https:/ /review. openstack. org/#/c/ 335786/ codesearch. openstack. org/?q= tenant_ id&i=fosho& files=openstack client% 2Fnetwork% 2F&repos= python- openstackclient --> All references you find are only to address correctly the migration from project_id to tenant_id. codesearch. openstack. org/?q= tenant& i=nope& files=doc% 2Fsource% 2Fcommand- objects& repos=python- openstackclient codesearch. openstack. org/?q= project& i=nope& files=doc% 2Fsource% 2Fcommand- objects& repos=python- openstackclient
[2] http://
[3] "tenant" references in doc: http://
[4] "project" references in doc: http://