From: Tony Mack Date: Wed, 26 Mar 2008 00:26:24 +0000 (+0000) Subject: removed hardcoded rootkey X-Git-Tag: tests-4.2-4~162 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=d3d79e3698b1f5aced15dd677183a83e555d11f8;p=tests.git removed hardcoded rootkey --- diff --git a/qaapi/qa/Nodes.py b/qaapi/qa/Nodes.py index 95a4dcf..ed433cd 100644 --- a/qaapi/qa/Nodes.py +++ b/qaapi/qa/Nodes.py @@ -14,7 +14,7 @@ class Node(dict, Remote): 'type': 'virtual', # type of node 'nodenetworks': [], # node networks 'homedir': '/var/VirtualMachines/', - 'rootkey': '/home/tmack/.ssh/plc-root' # path to root ssh key + 'rootkey': None # path to root ssh key } def __init__(self, config, fields = {}): @@ -26,27 +26,6 @@ class Node(dict, Remote): self.update(fields) self.config = config - def create_boot_image(self): - - command = "" - if self['host'] and self['host'] not in ['localhost']: - command += "ssh -i %s root@%s " % (self['rootkey'], self['host']) - - def create_disk_image(self, size = '10G'): - diskimg_path = self['homedir'] + os.sep + self['hostname'] + os.sep + \ - 'hda.img' - command = "" - command += " qemu-img create -f qcow2 %(diskimg_path)s %(size)s " % locals() - - #utils.header(command) - (status, output) = self.commands(command, True) - - def boot(self): - pass - - def scp(self): - pass - class Nodes(list, Table): def __init__(self, config, nodes):