Feature #2288
closed
Quota Support for RHEV 3.1
Added by Anonymous almost 12 years ago.
Updated over 11 years ago.
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
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.
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.
Disregard this comment (spoke too soon.)
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.
- 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
- Status changed from New to Ready For Testing
- Status changed from Ready For Testing to Closed
- % Done changed from 80 to 100
Also available in: Atom
PDF