rackspace/melange — pull request #13 by Cerberus98 (2012-09-21 22:12:38+00:00)
Title: Re-adds the quota support, this time with a configurable column "max_allocation" 

Nova is incapable of supporting hierarchical quotas currently, and Melange
has no interest in Quotas, we've implemented a hack that allows Nova to pass down the
default quota flag to interface/ip allocation. If allocating IPs on
private networks for a tenant, Melange will enforce the limit and raise,
emulating a quota.

This patch has a known race condition; since melange was written in a
way that completely hides sqlalchemy, there is no trivial way to enforce
transactions, meaning that there's a small window in which Melange can
check the IP address count, determine that it's valid, then attempt to
allocate them, effectively running over the established quotas. However,
as this is more of a preview than long-term solution, we deem this
acceptable at this time.

Change-Id: I7a9b1f371d00e56e454b1a61b9eeecd516f10468