for (nodegroupname,group_nodes) in groups_dict.iteritems():
print 'nodegroups:','dealing with nodegroup',nodegroupname,'on nodes',group_nodes
# first, check if the nodetagtype is here
- tag_types = self.apiserver.GetNodeTagTypes(auth,{'tagname':nodegroupname})
+ tag_types = self.apiserver.GetTagTypes(auth,{'tagname':nodegroupname})
if tag_types:
tag_type_id = tag_types[0]['node_tag_type_id']
else:
return hostnames
# gracetime : during the first <gracetime> minutes nothing gets printed
- def do_nodes_booted (self, minutes, gracetime,period=30):
+ def do_nodes_booted (self, minutes, gracetime,period=15):
if self.options.dry_run:
print 'dry_run'
return True
def nodes_booted(self):
return self.do_nodes_booted(minutes=20,gracetime=15)
- def do_nodes_ssh(self,minutes,gracetime,period=30):
+ def do_nodes_ssh(self,minutes,gracetime,period=15):
# compute timeout
timeout = datetime.datetime.now()+datetime.timedelta(minutes=minutes)
graceout = datetime.datetime.now()+datetime.timedelta(minutes=gracetime)
location = "/usr/share/plc_api/plcsh-stress-test.py"
remote="/vservers/%s/%s"%(self.vservername,location)
self.test_ssh.copy_abs("plcsh-stress-test.py",remote)
+ command = location
+ command += " -- --check"
if self.options.small_test:
- command=location + " -- --tiny"
- else:
- command=location
+ command += " --tiny"
return ( self.run_in_guest(command) == 0)
def gather_logs (self):