Skip to content
Snippets Groups Projects
Commit 21eaf4b5 authored by Cristiano Urban's avatar Cristiano Urban
Browse files

Try to fix paramiko hang by redirecting eeadm stdout and stderr to /dev/null.

parent f0eb6764
No related branches found
No related tags found
No related merge requests found
Pipeline #17658 passed
...@@ -164,7 +164,7 @@ class TapeClient(object): ...@@ -164,7 +164,7 @@ class TapeClient(object):
fp.close() fp.close()
self.copy(f"./{migrateFileList}", f"{self.VOSPACE_WD}/{migrateFileList}") self.copy(f"./{migrateFileList}", f"{self.VOSPACE_WD}/{migrateFileList}")
os.remove(f"./{migrateFileList}") os.remove(f"./{migrateFileList}")
cmd = f"{self.EEADM} migrate {self.VOSPACE_WD}/{migrateFileList} -p {tapePool}" cmd = f"{self.EEADM} migrate {self.VOSPACE_WD}/{migrateFileList} -p {tapePool} > /dev/null 2>&1"
try: try:
stdin, stdout, stderr = self.client.exec_command(cmd) stdin, stdout, stderr = self.client.exec_command(cmd)
except Exception: except Exception:
...@@ -197,7 +197,7 @@ class TapeClient(object): ...@@ -197,7 +197,7 @@ class TapeClient(object):
fp.close() fp.close()
self.copy(f"./{recallFileList}", f"{self.VOSPACE_WD}/{recallFileList}") self.copy(f"./{recallFileList}", f"{self.VOSPACE_WD}/{recallFileList}")
os.remove(f"./{recallFileList}") os.remove(f"./{recallFileList}")
cmd = f"{self.EEADM} recall {self.VOSPACE_WD}/{recallFileList}" cmd = f"{self.EEADM} recall {self.VOSPACE_WD}/{recallFileList} > /dev/null 2>&1"
try: try:
stdin, stdout, stderr = self.client.exec_command(cmd) stdin, stdout, stderr = self.client.exec_command(cmd)
except Exception: except Exception:
...@@ -218,7 +218,7 @@ class TapeClient(object): ...@@ -218,7 +218,7 @@ class TapeClient(object):
the 'dirName' directory. the 'dirName' directory.
""" """
self.logger.info("Starting RECALL_CHECKSUM operation...") self.logger.info("Starting RECALL_CHECKSUM operation...")
cmd = f"find $(dirname {dirName}) -type f \( -iname \"*-md5sum.txt\" \) | {self.EEADM} recall" cmd = f"find $(dirname {dirName}) -type f \( -iname \"*-md5sum.txt\" \) | {self.EEADM} recall > /dev/null 2>&1"
try: try:
stdin, stdout, stderr = self.client.exec_command(cmd) stdin, stdout, stderr = self.client.exec_command(cmd)
except Exception: except Exception:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment