Project

General

Profile

Actions

Feature #2288

closed

Quota Support for RHEV 3.1

Added by Anonymous about 11 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Category:
VM management
Target version:
Difficulty:
medium
Triaged:
Fixed in Releases:
Found in Releases:

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

fog.patch fog.patch 4.41 KB fog Patch Anonymous, 03/08/2013 01:32 PM
foreman.patch foreman.patch 3.54 KB Foreman Patch Anonymous, 03/08/2013 01:32 PM
rbovirt.patch rbovirt.patch 4.51 KB rbovirt Patch Anonymous, 03/08/2013 01:32 PM
add-quota-support.patch add-quota-support.patch 4.8 KB Patch to add quota support in Foreman 1.2 Anonymous, 06/28/2013 03:53 PM

Related issues 1 (0 open1 closed)

Related to Foreman - Bug #2567: provisioning a new (ovirt) host does not work.ClosedDominic Cleal05/26/2013Actions
Actions #1

Updated by Anonymous about 11 years ago

Same issue looks to affect CloudForms if quotas are enabled: https://bugzilla.redhat.com/show_bug.cgi?id=905261

Updated by Anonymous about 11 years ago

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.

Actions #3

Updated by Anonymous about 11 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.

Actions #4

Updated by Anonymous about 11 years ago

Disregard this comment (spoke too soon.)

Actions #5

Updated by Anonymous over 10 years ago

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.

Actions #6

Updated by Anonymous over 10 years ago

Actions #7

Updated by Lukas Zapletal over 10 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
Actions #8

Updated by Lukas Zapletal over 10 years ago

  • Status changed from New to Ready For Testing
Actions #9

Updated by Anonymous over 10 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 80 to 100
Actions

Also available in: Atom PDF