quota-usage lists information with wrong tenant-id

Bug #1307487 reported by Tushar Bankar
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Cinder
In Progress
Medium
Yuriy Nesenenko

Bug Description

cinder quota-usage wrong-tenantid

cinder returns with 200 Ok with usage of quota.

But it is expected 404 Not Found

Tags: api quotas
Changed in cinder:
assignee: nobody → Tushar Bankar (tushar-bankar)
tags: added: izeltech
Revision history for this message
Tushar Bankar (tushar-bankar) wrote :

Response:

 cinder quota-usage wrong-tenantid
+-----------+--------+----------+-------+
| Type | In_use | Reserved | Limit |
+-----------+--------+----------+-------+
| gigabytes | 0 | 0 | 1000 |
| snapshots | 0 | 0 | 10 |
| volumes | 0 | 0 | 10 |
+-----------+--------+----------+-------+

Mike Perez (thingee)
Changed in cinder:
status: New → Triaged
importance: Undecided → Low
tags: removed: izeltech
Changed in cinder:
assignee: Tushar Bankar (tushar-bankar) → Harshada Mangesh Kakad (harshada-kakad)
Mike Perez (thingee)
Changed in cinder:
milestone: none → juno-1
tags: added: api icehouse-backport-potential
Changed in cinder:
milestone: juno-1 → juno-2
Changed in cinder:
milestone: juno-2 → juno-3
Thierry Carrez (ttx)
Changed in cinder:
milestone: juno-3 → juno-rc1
Revision history for this message
John Griffith (john-griffith) wrote :

Same opinion as 1307475, 1307486. Should fix these up but certainly not show-stoppers for RC

Changed in cinder:
milestone: juno-rc1 → none
yatin (yatinkarel)
Changed in cinder:
assignee: Harshada Mangesh Kakad (harshada-kakad) → yatin (yatinkarel)
status: Triaged → In Progress
Revision history for this message
yatin (yatinkarel) wrote :

The api does not even validate the uuid, if tenant-id is passed in non-uuid format, it does not raise an InvlidUUID exception.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/133148

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/143645

Changed in cinder:
assignee: yatin (yatinkarel) → Anton Arefiev (aarefiev)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on cinder (master)

Change abandoned by Mike Perez (<email address hidden>) on branch: master
Review: https://review.openstack.org/133148
Reason: no activity. also see https://review.openstack.org/#/c/143645/

Revision history for this message
Huang Zhiteng (zhiteng-huang) wrote :

Is it really necessary to verify project id for read only operations like this?

Changed in cinder:
assignee: Anton Arefiev (aarefiev) → John Griffith (john-griffith)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Change abandoned by Anton Arefiev (<email address hidden>) on branch: master
Review: https://review.openstack.org/143645
Reason: More general approach is needed here

Alan Pevec (apevec)
tags: removed: icehouse-backport-potential
Revision history for this message
Varun (varun-utagikar) wrote :

Hey

We have a Kilo deployment. I can see that 'cinder quota-usage' still shows empty 'in-use' column but i can see right values in database.

Should I file a new bug or please let me know if this issue is being sorted out in any existing bug.

Varun

Revision history for this message
Michal Dulko (michal-dulko-f) wrote :

@Varun: It seems like the issue you're describing isn't really related to this bugreport.

Changed in cinder:
assignee: John Griffith (john-griffith) → Yuriy Nesenenko (ynesenenko)
Revision history for this message
Yuriy Nesenenko (ynesenenko) wrote :

The same incorrect results appeared after the execution of the following commands.
$ cinder quota-usage invalid-tenantid
$ cinder quota-show invalid_tenantid
$ cinder quota-defaults invalid_tenantid
+----------------------+-------+
| Property | Value |
+----------------------+-------+
| backup_gigabytes | 1000 |
| backups | 10 |
| gigabytes | 1000 |
| gigabytes_ceph | -1 |
| per_volume_gigabytes | -1 |
| snapshots | 10 |
| snapshots_ceph | -1 |
| volumes | 10 |
| volumes_ceph | -1 |
+----------------------+-------+

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/315673

Changed in cinder:
importance: Low → Medium
Tom Barron (tpb)
tags: added: quotas
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on cinder (master)

Change abandoned by Yuriy Nesenenko (<email address hidden>) on branch: master
Review: https://review.openstack.org/315673

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.