Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to remove quotas, usage quotas for unusable resources #6573

Open
3 tasks
OpenNebulaSupport opened this issue Apr 24, 2024 · 1 comment
Open
3 tasks

Comments

@OpenNebulaSupport
Copy link
Collaborator

Description
If we configure a usage quota for a particular resource for a user or group, and then that user/group is restricted from using the resource, the quota is kept and can not be removed. This can result in confusing scenarios like groups having usage quotas for datastores that they can not use.

The user should be able to remove a quota to avoid confusing scenarios.
Further, usage quotas should be present only when the user/group has at least use access to the resource.
Resource usage permissions modification (chmod) should affect user/group quotas, hiding or removing them (TBD).

To Reproduce
Use case 1: setting a usage quota for an non-usable resource
Create a user/group (e.g. "new").
Create a resource (image, datastore, etc.) in a different group (e.g. "old").
Restrict the usage of the resource to its group ("old")
Create a usage quota for the "new" group, definining the usage limits for the resource

Expected behavior: OpenNebula checks the accessibility of the resource for that particular user/group and rejects the creation of the new quota.

Use case 2: removing use permissions and quota is kept
Create a user/group (e.g. "new").
Create a resource (image, datastore, etc.) in a different group (e.g. "old").
Allow the usage of the resource to all groups (Others, Use permission)
Create a usage quota for the "new" group, definining the usage limits for the resource
Restrict the usage of the resource to its group ("old")

Expected behavior: OpenNebula should hide/remove the quota on the "new" group.

Use case 3: removing a quota
Create a new quota for a particular group and resource (e.g. using onegroup quota 1)
Remove that quota using onegroup quota 1
The quota is not removed

Expected behavior: OpenNebula should remove the quota

Details

  • Affected Component: [e.g. oned]
  • Version: [6.8.0, development]

Progress Status

  • Code committed
  • Testing - QA
  • Documentation (Release notes - resolved issues, compatibility, known issues)
@OpenNebulaSupport
Copy link
Collaborator Author

Also, unable to remove quotas using onedb update-body <element> --id <ID>.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant