This commit is contained in:
deflax 2016-10-29 05:57:57 +03:00
parent 9c58388eb2
commit 16b6fe5073
2 changed files with 4 additions and 3 deletions

View file

@ -73,8 +73,9 @@ def sync(cached=True):
#static parameters that CAN go to to cache:
vm_id = vm['vmid']
vm_name = vm['name']
vm_owner = clientsdb.vmowner(vm_id, vm_name, cached) #read clientsdb cache
static_vm = { "vmid":str(vm_id), "hostname":vm_name, 'type':vm['vmtype'], 'owner':vm_owner }
#vm_owner = clientsdb.vmowner(vm_id, vm_name, cached) #read clientsdb cache
#static_vm = { "vmid":str(vm_id), "hostname":vm_name, 'type':vm['vmtype'], 'owner':vm_owner }
static_vm = { "vmid":str(vm_id), "hostname":vm_name, 'type':vm['vmtype'] }
real_slave[str(vm_id)] = static_vm
#dynamic parameters that SHOULD NOT go to the cache:
dynamic_vm = { "uptime":vm['uptime'] }

View file

@ -58,7 +58,7 @@ def vmcreate(req):
region_id = grid.query_region(req['region'])
if region_id == "-1":
logger.error('grid> no region found')
ioconfig.logger.error('grid> no region found')
response = 'NO REGION FOUND'
return response