Commit 9563c291 authored by Sofia Papagiannaki's avatar Sofia Papagiannaki
Browse files

Change default resource limits

parent 9224aa4b
......@@ -38,14 +38,14 @@ class Migration(DataMigration):
except Exception, e:
print "Cannot create resource ", rn
continue
q, created = orm.AstakosGroupQuota.objects.get_or_create(
group=default,
resource=r,
defaults={
'uplimit':uplimit,
}
)
else:
q, created = orm.AstakosGroupQuota.objects.get_or_create(
group=default,
resource=r,
defaults={
'uplimit':uplimit,
}
)
map(create_policies, SERVICES.iteritems())
def backwards(self, orm):
......
......@@ -143,8 +143,8 @@ SERVICES = getattr(settings, 'ASTAKOS_SERVICES',{
},{
'name':'disksize',
'group':'compute',
'uplimit':5,
'unit':'GB',
'uplimit':5*1024*1024*1024,
'unit':'bytes',
'desc': 'Virtual machine disk size'
},{
'name':'cpu',
......@@ -154,8 +154,8 @@ SERVICES = getattr(settings, 'ASTAKOS_SERVICES',{
},{
'name':'ram',
'group':'compute',
'uplimit':1024,
'unit':'MB',
'uplimit':1024*1024*1024,
'unit':'bytes',
'desc': 'Virtual machines'
}]
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment