svn path=/trunk/packages/invirt-remote/; revision=2134
/etc/invirt/nocreate; if it exists, they advertise zero free memory and
refuse to create VMs
* added memory quota validation to invirt-remote-create
- * added owner table to database with ram_quota_total and ram_quota_single
- -- Peter A. Iannucci <iannucci@mit.edu> Mon, 16 Feb 2009 23:49:14 -0500
+ -- Peter A. Iannucci <iannucci@mit.edu> Tue, 17 Feb 2009 01:31:20 -0500
invirt-remote (0.3.3) unstable; urgency=low
Return the memory available for a new machine.
"""
machines = invirt.database.Machine.query().filter_by(owner=owner)
- (quota_total, quota_single) = invirt.database.Owner.getQuotas(owner)
+ (quota_total, quota_single) = invirt.database.Owner.getMemoryQuotas(owner)
active_machines = [m for m in machines if m.name in xmlist]
mem_usage = sum([x.memory for x in active_machines])