← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1695954] [NEW] QoS policy API does not accept 'tenant_id' filter

 

Public bug reported:

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@sheep6:~/devstack (master) [OS_CLOUD:devstack][18:32:40]$ openstack token issue
+------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field      | Value                                                                                                                                                                                   |
+------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| expires    | 2017-06-05T19:32:46+0000                                                                                                                                                                |
| id         | gAAAAABZNaPOLTZpwefhxI9PNpNhDtJUuuQSNIyFP063zkoN6RfqM9Cu81k-WXBTWkKWcQzC2-fWQXUVUY5fvL5PunEcSpEn3gimAG1SOdBTL8IKzn8G6SDicc1G5ilZy-ruE99F3ztn4QW8BLd-Vh8F6O0Mkp0GwkIs4tE5e48r8xQh3kI_RFs |
| project_id | dda5fe79cdd547e18647a4dd70cb411f                                                                                                                                                        |
| user_id    | 7bcf326322944db99548092976dadd6b                                                                                                                                                        |
+------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
ubuntu@sheep6:~/devstack (master) [OS_CLOUD:devstack][18:32:46]$ neutron qos-policy-list --tenant-id dda5fe79cdd547e18647a4dd70cb411f
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-b557-43a9-8608-48642512f951']
ubuntu@sheep6:~/devstack (master) [OS_CLOUD:devstack][18:32:52]$ neutron qos-policy-list --project-id dda5fe79cdd547e18647a4dd70cb411f
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.

** Affects: neutron
     Importance: Medium
     Assignee: Akihiro Motoki (amotoki)
         Status: New


** Tags: api qos

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1695954

Title:
  QoS policy API does not accept 'tenant_id' filter

Status in neutron:
  New

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@sheep6:~/devstack (master) [OS_CLOUD:devstack][18:32:40]$ openstack token issue
  +------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  | Field      | Value                                                                                                                                                                                   |
  +------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  | expires    | 2017-06-05T19:32:46+0000                                                                                                                                                                |
  | id         | gAAAAABZNaPOLTZpwefhxI9PNpNhDtJUuuQSNIyFP063zkoN6RfqM9Cu81k-WXBTWkKWcQzC2-fWQXUVUY5fvL5PunEcSpEn3gimAG1SOdBTL8IKzn8G6SDicc1G5ilZy-ruE99F3ztn4QW8BLd-Vh8F6O0Mkp0GwkIs4tE5e48r8xQh3kI_RFs |
  | project_id | dda5fe79cdd547e18647a4dd70cb411f                                                                                                                                                        |
  | user_id    | 7bcf326322944db99548092976dadd6b                                                                                                                                                        |
  +------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  ubuntu@sheep6:~/devstack (master) [OS_CLOUD:devstack][18:32:46]$ neutron qos-policy-list --tenant-id dda5fe79cdd547e18647a4dd70cb411f
  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-b557-43a9-8608-48642512f951']
  ubuntu@sheep6:~/devstack (master) [OS_CLOUD:devstack][18:32:52]$ neutron qos-policy-list --project-id dda5fe79cdd547e18647a4dd70cb411f
  neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1695954/+subscriptions


Follow ups