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

Conversation

cdosborn
Copy link
Contributor

@cdosborn cdosborn commented Apr 18, 2018

Description

Problem

Updating a user's volume quota, would return a successful response including the updated quota values. However, the values wouldn't actually be updated in openstack.

Solution

Pass a tenant id rather than a tenant name in /os-quota-sets/

The current OS api[1] silently fails, reporting a successful update, even when the update did not occur. Tested against all providers in use. Verified that storage is updated from OS pov.

[1] https://developer.openstack.org/api-ref/block-storage/v3/index.html#quota-sets-extension-os-quota-sets

Checklist before merging Pull Requests

  • Add an entry in the changelog
  • Reviewed and approved by at least one other contributor.

Problem:
Updating a user's volume quota, would return a successful response including
the updated quota values. However, the values wouldn't actually be updated in
openstack.

Solution:
Pass a tenant id rather than a tenant name in /os-quota-sets/<tenant id>
@cdosborn
Copy link
Contributor Author

Targeting this against v32, because this needs to go in for j7m

@cdosborn cdosborn self-assigned this Apr 18, 2018
@coveralls
Copy link

coveralls commented Apr 18, 2018

Coverage Status

Coverage decreased (-1.2%) to 36.124% when pulling 7cd6bca on cdosborn:fix-quota-volume-update into 86cc6d7 on cyverse:v32.

Copy link
Contributor

@julianpistorius julianpistorius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@cdosborn cdosborn merged commit 0ebcfc5 into cyverse:v32 Apr 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants