do not call lsof, this is useless and produces huge logs
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Fri, 23 May 2014 14:59:06 +0000 (16:59 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Fri, 23 May 2014 14:59:06 +0000 (16:59 +0200)
sliver_lxc.py

index 94de3db..5f96dd8 100644 (file)
@@ -346,10 +346,12 @@ unset pathmunge
         if not os.path.exists(containerDir):
             logger.log('sliver_lxc.destroy: %s cleanly destroyed.'%name)
         else:
-            logger.log("-TMP-cwd %s : %s"%(name,os.getcwd()))
-            logger.log("-TMP-lsof %s"%name)
-            command=['lsof']
-            logger.log_call(command)
+            # we're in /
+            #logger.log("-TMP-cwd %s : %s"%(name,os.getcwd()))
+            # also lsof never shows anything relevant; this is painful..
+            #logger.log("-TMP-lsof %s"%name)
+            #command=['lsof']
+            #logger.log_call(command)
             logger.log("-TMP-ls-l %s"%name)
             command = ['ls', '-l', containerDir]
             logger.log_call(command)