Quota Support for RHEV 3.1
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.
#1 Updated by Anonymous about 10 years ago
Same issue looks to affect CloudForms if quotas are enabled: https://bugzilla.redhat.com/show_bug.cgi?id=905261
#2 Updated by Anonymous about 10 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.
#3 Updated by Anonymous about 10 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.
#4 Updated by Anonymous about 10 years ago
Disregard this comment (spoke too soon.)
#5 Updated by Anonymous almost 10 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.
#6 Updated by Anonymous over 9 years ago
Thanks Neil Miao for helping out with this again.
#7 Updated by Lukas Zapletal over 9 years ago
- Assignee set to Anonymous
- Category set to VM management
- Target version set to 1.3.0
- % Done changed from 0 to 80
- Difficulty set to medium
#8 Updated by Lukas Zapletal over 9 years ago
- Status changed from New to Ready For Testing
#9 Updated by Anonymous over 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 80 to 100
Applied in changeset 180d7f43ad2a1953adc25e4e57330b58ca8c3b06.
fixes #2288 - Add oVirt/RHEV Quota Support