Bug 1597737
| Summary: | [RHOSP12] Cinder quota could be bypassed by normal user | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Alan Bishop <abishop> |
| Component: | openstack-cinder | Assignee: | Alan Bishop <abishop> |
| Status: | CLOSED ERRATA | QA Contact: | Avi Avraham <aavraham> |
| Severity: | high | Docs Contact: | Kim Nylander <knylande> |
| Priority: | high | ||
| Version: | 12.0 (Pike) | CC: | aavraham, amcleod, cschwede, hfukumot, knylande, srevivo, tshefi |
| Target Milestone: | --- | Keywords: | Triaged, ZStream |
| Target Release: | 12.0 (Pike) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | openstack-cinder-11.1.0-16.el7ost | Doc Type: | Bug Fix |
| Doc Text: |
Previously, Cinder updated quotas incorrectly when deleting a temporary volume and operations that required that Cinder use a temporary volume resulted in corrupted quotas.
With this update, Cinder handles quote correctly when deleting temporary volumes.
|
Story Points: | --- |
| Clone Of: | 1597735 | Environment: | |
| Last Closed: | 2018-12-05 18:49:12 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1597735 | ||
| Bug Blocks: | 1584499 | ||
|
Description
Alan Bishop
2018-07-03 14:32:16 UTC
Verified on: openstack-cinder-11.1.0-22.el7ost.noarch Create demo user/tenant create a demorc file default cinder quota-usage 486158670a564c27846378a68341026d +----------------------+--------+----------+-------+ | Type | In_use | Reserved | Limit | +----------------------+--------+----------+-------+ | backup_gigabytes | 0 | 0 | 1000 | | backups | 0 | 0 | 10 | | gigabytes | 0 | 0 | 1000 | | groups | 0 | 0 | 10 | | per_volume_gigabytes | 0 | 0 | -1 | | snapshots | 0 | 0 | 10 | | volumes | 0 | 0 | 10 | +----------------------+--------+----------+-------+ cinder create 1 cinder quota-usage 486158670a564c27846378a68341026d +----------------------+--------+----------+-------+ | Type | In_use | Reserved | Limit | +----------------------+--------+----------+-------+ | backup_gigabytes | 0 | 0 | 1000 | | backups | 0 | 0 | 10 | | gigabytes | 1 | 0 | 1000 | | groups | 0 | 0 | 10 | | per_volume_gigabytes | 0 | 0 | -1 | | snapshots | 0 | 0 | 10 | | volumes | 1 | 0 | 10 | +----------------------+--------+----------+-------+ nova boot kuku --flavor tiny --image cirros --nic net-id=5650ecec-2b10-4a36-9221-f35530de6c84 attach vol nova volume-attach ee901675-eb37-4250-a96c-cbb18df8f6da 3fb04e34-2ede-4932-8258-b8519d4cbb70 auto cinder backup-create 3fb04e34-2ede-4932-8258-b8519d4cbb70 --force +-----------+--------------------------------------+ | Property | Value | +-----------+--------------------------------------+ | id | 46ceaa20-86cd-41d4-bca9-af1ba6bd0336 | | name | None | | volume_id | 3fb04e34-2ede-4932-8258-b8519d4cbb70 | +-----------+--------------------------------------+ During and after backup quota remains an expected: cinder quota-usage 486158670a564c27846378a68341026d +----------------------+--------+----------+-------+ | Type | In_use | Reserved | Limit | +----------------------+--------+----------+-------+ | backup_gigabytes | 1 | 0 | 1000 | -> OK | backups | 1 | 0 | 10 | -> OK | gigabytes | 1 | 0 | 1000 | | groups | 0 | 0 | 10 | | per_volume_gigabytes | 0 | 0 | -1 | | snapshots | 0 | 0 | 10 | | volumes | 1 | 0 | 10 | -> OK +----------------------+--------+----------+-------+ Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:3785 |