- host_box=self.host_box()
- mac=self.node_spec['network_fields']['mac']
- dest_dir=self.buildname()+"/qemu-%s"%(hostname)
- utils.header('Storing the mac address for node %s'%hostname)
- file=open(path+'/qemu-'+hostname+'/MAC','a')
- file.write('%s\n'%mac)
- file.write(dest_dir)
- file.close()
- utils.header ('Transferring configuration files for node %s into %s '%(hostname,host_box))
- if ( not self.is_local(host_box)):
- cleandir_command="ssh root@%s rm -rf %s"%(host_box, dest_dir)
- createdir_command = "ssh root@%s mkdir -p %s"%(host_box, dest_dir)
- createlog_command = "ssh root@%s touch %s/%s.log "%(host_box, dest_dir,hostname)
- self.test_plc.run_in_host(cleandir_command)
- self.test_plc.run_in_host(createdir_command)
- self.test_plc.run_in_host(createlog_command)
- scp_command = "scp -r %s/qemu-%s/* root@%s:/root/%s"%(path,hostname,host_box,dest_dir)
- self.test_plc.run_in_host(scp_command)
-
- def create_boot_cd(self,path):
- model=self.node_spec['node_fields']['model']
- node_spec=self.node_spec
- hostname=node_spec['node_fields']['hostname']
- encoded=self.test_plc.server.GetBootMedium(self.test_plc.auth_root(), hostname, 'node-iso', '', ['serial'])
+ options.append('serial')
+ options.append('no-hangcheck')
+ encoded=self.test_plc.apiserver.GetBootMedium(self.test_plc.auth_root(),
+ self.name(), 'node-iso', '', options)