DomainQuotaDriver

Introduction
Nova BP Domain Quota Driver will enable O~S projects to enforce domain quotas in Nova, for this a new driver capable to enforce domain quota is necessary. This BP addresses the need of a new quota driver capable to enforce domain quotas in Nova.

Quotas in Nova
Currently, OpenStack services make usage of quotas to limit the project resources. For example, the “Instances” quota represents the number of instances that can be created in a project. The table below summarizes the existing project quotas. From now on there will be the same options as Quotas in the context of domain.

= Desing =

So the Nova can use two drivers in parallel, they will be called by the Quota Engine. Therefore, when the two driver are running, to reserve a resource, for example, the quota engine will make the reservation in the current quota, ie the quota the project and also quota domain.



= Implementation =

To implement the domain controller Quota was necessary to create three models, following the existing quotas for project templates. Furthermore it has created three tables corresponding to these models: DomainQuota, DomainQuotaUsages and DomainReservation, so we can store information about the limits of quotas, than is already in used and also the reserves of resources.

 Domain Quota Table

 Domain Quota Usages Table

 Domain Reservation Table