Feature #2288
closedQuota Support for RHEV 3.1
Description
RHEV 3.1 has quota support. Unfortunately for a an account to work as a compute resource it appears it needs to have an Admin Role.
This means it sees all quotas, even those for which it is not a consumer.
When Foreman tries to provision, there is no way to select a quota, so the vm fails to provision with an error message like:
Failed to create a compute it-tower-finance (oVirt) instance test3: Cannot add VM. Quota is not valid
There needs to be a way to either select a quota for a compute resource account to use when provisioning, or to select a compute resource on the Virtual Machine tab when creating a new vm.
Files
Updated by Anonymous almost 12 years ago
Same issue looks to affect CloudForms if quotas are enabled: https://bugzilla.redhat.com/show_bug.cgi?id=905261
Updated by Anonymous almost 12 years ago
- File fog.patch fog.patch added
- File foreman.patch foreman.patch added
- File rbovirt.patch rbovirt.patch added
Neil Miao and I were able to piece something together. I think it still needs some clean up for sure, but the patches below make it possible to select a quota when provisioning for both the vm and disk (they can be different).
If we can have the disk use the same quota as the vm I think that would be better from the user perspective as it means less drop downs, but I'm not sure how to get it to do that.
I also think it might still be better to have the compute resource always use the same quota when provisioning, but I'm not sure how to go about doing that either.
Updated by Anonymous almost 12 years ago
I created pull requests for rbovirt and fog. While my patch above for foreman 'works' I do not believe it is necessarily the right way, so I haven't create a pull request for it at this time.
Updated by Anonymous almost 12 years ago
Disregard this comment (spoke too soon.)
Updated by Anonymous over 11 years ago
- File add-quota-support.patch add-quota-support.patch added
Since the patches are included in the new versions of fog and rbovirt to support quotas we are able to get quotas working with only the changes in add-quota-support.patch
I'm sure that it can be done better, but it has some redeeming qualities in that it has no negative impact if quotas are not enabled and do not exist, if they are enabled and exist you get a list of quotas, and if you name a quota and compute resource the same it will automatically select the like named quota for you. Anyway, support for quotas, even done better than we have, are probably a feature that could be easily added at this point.
Updated by Anonymous over 11 years ago
https://github.com/theforeman/foreman/pull/770
and
https://github.com/abenari/rbovirt/pull/22/files
Thanks Neil Miao for helping out with this again.
Updated by Lukas Zapletal over 11 years ago
- Category set to VM management
- Target version set to 1.3.0
- % Done changed from 0 to 80
- Difficulty set to medium
- Assignee set to Anonymous
Updated by Lukas Zapletal over 11 years ago
- Status changed from New to Ready For Testing
Updated by Anonymous over 11 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 80 to 100
Applied in changeset 180d7f43ad2a1953adc25e4e57330b58ca8c3b06.