site_spec, node_spec = self.test_plc.locate_hostname(self.hostname)
test_ssh = TestSsh (self.hostname, key=self.private_key, username=self.slicename)
full_command = test_ssh.actual_command(self.command)
- retcod = utils.system (full_command, silent=silent)
+ retcod = utils.system (full_command, silent=silent, timeout=10)
if self.dry_run: return True
if self.expected: return retcod == 0
else: return retcod != 0
utils.header("Adding initscript name {} in {}".format(isname, slice_name))
self.test_plc.apiserver.AddSliceTag(self.test_plc.auth_root(), slice_name,
'initscript', isname)
- if 'omf-friendly' in self.slice_spec:
- utils.header("Making slice {} OMF-friendly".format(slice_name))
- self.test_plc.apiserver.AddSliceTag(self.test_plc.auth_root(), slice_name, 'vref', 'omf')
- self.test_plc.apiserver.AddSliceTag(self.test_plc.auth_root(), slice_name, 'omf_control', 'yes')
+# omf-friendly slices is a deprecated feature
+# if 'omf-friendly' in self.slice_spec:
+# utils.header("Making slice {} OMF-friendly".format(slice_name))
+# self.test_plc.apiserver.AddSliceTag(self.test_plc.auth_root(), slice_name, 'vref', 'omf')
+# self.test_plc.apiserver.AddSliceTag(self.test_plc.auth_root(), slice_name, 'omf_control', 'yes')
+#
# setting vref directly like this was useful for multi-arch tests long ago - see wifilab
# however this should rather use other tags by now, so we drop this for now
# if self.slice_spec.has_key ('vref'):
site_spec, node_spec = self.test_plc.locate_hostname(hostname)
test_ssh = TestSsh (hostname, key=private_key, username=self.name())
full_command = test_ssh.actual_command(command)
- retcod = utils.system (full_command, silent=True)
+ retcod = utils.system (full_command, silent=True, timeout=10)
if getattr(options, 'dry_run', None):
return True
if expected:
else:
print("Sliver rootfs {} still present - this is unexpected".format(rootfs))
utils.system(self.test_ssh.actual_command("ls -l {rootfs}; du -hs {rootfs}".format(**locals()),
- dry_run=self.dry_run))
+ dry_run=self.dry_run, timeout=20))
return [ CompleterTaskRootfs (nodename, qemuname) for (nodename,qemuname) in node_infos ]