utils/bvtest/scripts/DaosServer.py
def dump_leftovers(self, hosts):
        """
        If there is something left running or data left dump out info on it.
        """
        dump_cmds = ["ps -ef | grep daos",
                     "ls -l /mnt/daos | tail -n +2"]

        for host in hosts:
            try:
                # look for left over daos processes
                outstr = subprocess.check_output("ssh {0} {1}".format(host, dump_cmds[0]),
                                                 shell=True)

                outlist = outstr.splitlines()
                for line in outlist:
                    self.logger.error(">>>>>DAOS process wasn't killed on %s: %s", host, line)
            except:
                pass

            try:
                # look for stuff in tmpfs
                outstr = subprocess.check_output("ssh {0} {1}".format(host, dump_cmds[1]),
                                                 shell=True)

                outlist = outstr.splitlines()
                for line in outlist:
                    self.logger.error(">>>>>Leftover cruft in tmpfs on %s: %s", host, line)
            except:
                pass

        If there is something left running or data left dump out info on it.
        
If there is something left running or data left dump out info on it.
If there is something left running or data left dump out info on it .
def dump_leftovers(self, hosts):
        dump_cmds = ["ps -ef | grep daos",
                     "ls -l /mnt/daos | tail -n +2"]
        for host in hosts:
            try:
                outstr = subprocess.check_output("ssh {0} {1}".format(host, dump_cmds[0]),
                                                 shell=True)
                outlist = outstr.splitlines()
                for line in outlist:
                    self.logger.error(">>>>>DAOS process wasn't killed on %s: %s", host, line)
            except:
                pass
            try:
                outstr = subprocess.check_output("ssh {0} {1}".format(host, dump_cmds[1]),
                                                 shell=True)
                outlist = outstr.splitlines()
                for line in outlist:
                    self.logger.error(">>>>>Leftover cruft in tmpfs on %s: %s", host, line)
            except:
                pass
def dump_leftovers ( self , hosts ) : dump_cmds = [ "ps -ef | grep daos" , "ls -l /mnt/daos | tail -n +2" ] for host in hosts : try : outstr = subprocess . check_output ( "ssh {0} {1}" . format ( host , dump_cmds [ 0 ] ) , shell = True ) outlist = outstr . splitlines ( ) for line in outlist : self . logger . error ( ">>>>>DAOS process wasn't killed on %s: %s" , host , line ) except : pass try : outstr = subprocess . check_output ( "ssh {0} {1}" . format ( host , dump_cmds [ 1 ] ) , shell = True ) outlist = outstr . splitlines ( ) for line in outlist : self . logger . error ( ">>>>>Leftover cruft in tmpfs on %s: %s" , host , line ) except : pass
If there is something left running or data left dump out info on it.
If there is something left running or data left dump out info on it .
"""
        If there is something left running or data left dump out info on it.
        """ # look for left over daos processes # look for stuff in tmpfs
self
hosts