From 4d5bff651ff5d5f56414acf87bd04a14115b43e6 Mon Sep 17 00:00:00 2001 From: deflax Date: Thu, 1 Jun 2017 18:48:05 +0300 Subject: [PATCH] small fixes to prepare for ipv4 gen deprecation --- grid.py | 2 +- plugin.py | 4 ++-- proxmaster.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/grid.py b/grid.py index e0d3b9c..f329352 100644 --- a/grid.py +++ b/grid.py @@ -173,7 +173,7 @@ def generate_vmid(): counter = 0 while True: if counter == 50: - logger.error('grid> ip range full') + logger.error('grid> vmid range full') return None else: counter += 1 diff --git a/plugin.py b/plugin.py index f3fb9ce..083789c 100644 --- a/plugin.py +++ b/plugin.py @@ -100,7 +100,7 @@ def vmcreate(req): 'clientemail': req['clientemail'], 'recipe': req['vps_recipe'], 'iso9660': 'ubuntu-16.04.1-server-amd64.iso', - 'ipv4': ipv4_list, + 'ipv4list': ipv4_list, 'macaddr': macaddr } proxobject = auth(slave_name) @@ -154,7 +154,7 @@ def vmcreate(req): #time.sleep(7) #wait few seconds for the slave to prepare the machine for initial run #vmstart(cubeid) - response = { 'status':'CREATE', 'cube':cubeid, 'name':vm_name, 'password':vm_pass, 'ipv4_0':ipv4_list[0] } + response = { 'status':'CREATE', 'cube':cubeid, 'name':vm_name, 'password':vm_pass, 'ipv4list':str(ipv4_list) } grid.writedb(deploy) return response diff --git a/proxmaster.py b/proxmaster.py index f586159..1068431 100644 --- a/proxmaster.py +++ b/proxmaster.py @@ -204,7 +204,7 @@ class RRDResource(object): @falcon.before(max_body(64 * 1024)) def on_post(self, req, resp, vmid): """ Generate rrd pngs """ - logger.info('grid> rrd ' + str(vmid)) + #logger.info('grid> rrd ' + str(vmid)) resp.status, response = selector('vmrrd', req, vmid) req.context['result'] = response