Skip to content
This repository has been archived by the owner on Sep 12, 2022. It is now read-only.

Fix volume quota update #611

Merged
merged 2 commits into from
Apr 18, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
-->

## [Unreleased](https://github.com/cyverse/atmosphere/compare/v32-1...HEAD)
### Fixed
- Quota updates concerning volumes would silently fail ([#611](https://github.com/cyverse/atmosphere/pull/611))

## [v32-1](https://github.com/cyverse/atmosphere/compare/v32-0...v32-1) - 2018-04-17
### Added
- Support multiple hostnames for Atmosphere(1) server ([#602](https://github.com/cyverse/atmosphere/pull/602))
Expand Down
4 changes: 2 additions & 2 deletions service/quota.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,10 @@ def _set_volume_quota(user_quota, identity):
username = identity.created_by.username
logger.info("Updating quota for %s to %s" % (username, volume_values))
driver = get_cached_driver(identity=identity)
username = driver._connection._get_username()
ad = get_account_driver(identity.provider)
admin_driver = ad.admin_driver
result = admin_driver._connection._cinder_update_quota(username, volume_values)
tenant = ad.get_project(username)
result = admin_driver._connection._cinder_update_quota(tenant.id, volume_values)
logger.info("Updated quota for %s to %s" % (username, result))
return result

Expand Down