vmcreate phase 3

This commit is contained in:
deflax 2017-07-31 04:39:18 +03:00
parent 8dd867dc15
commit 48af0fbc50

View file

@ -70,8 +70,8 @@ def vmcreate(req):
vm_id = random.randint(1000, 9999)
cubeid = int(time.time() * 10000 * 10000)
deploy = { 'cube': int(cubeid),
'type': req['type'],
'clientid': req['clientid'],
'clientname': req['clientname'],
'clientemail': req['clientemail'],
'hostname': vm_name,
'region': region_fullname,
@ -83,7 +83,7 @@ def vmcreate(req):
}
proxobject = auth(slave_name)
real_slave_name = proxobject.cluster.status.get()[0]['name']
description = vm_name + ' (' + str(cubeid) + '/' + str(vm_id) + ')\n' + 'owned by ' + req['clientname'] + ' (' + req['clientid'] + ')\n'
description = vm_name + ' (' + str(cubeid) + '/' + str(vm_id) + ')\n' + 'owned by ' + req['clientemail'] + ' (' + req['clientid'] + ')\n'
if req['type'] == 'kvm':
#create partition