Merge branch '18027-unmount-fuse'
authorTom Clegg <tom@curii.com>
Thu, 9 Sep 2021 15:35:52 +0000 (11:35 -0400)
committerTom Clegg <tom@curii.com>
Thu, 9 Sep 2021 15:35:52 +0000 (11:35 -0400)
refs #18027

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

lib/crunchrun/crunchrun.go
services/fuse/arvados_fuse/unmount.py

index e15303a3155afe81d72e8ce61e881ce76d5282d7..01141674a6b329fc6ef4f0cb2feb6b60628e96e8 100644 (file)
@@ -1170,6 +1170,7 @@ func (runner *ContainerRunner) CleanupDirs() {
 
                if umnterr != nil {
                        runner.CrunchLog.Printf("Error unmounting: %v", umnterr)
+                       runner.ArvMount.Process.Kill()
                } else {
                        // If arv-mount --unmount gets stuck for any reason, we
                        // don't want to wait for it forever.  Do Wait() in a goroutine
index dbfea1f90449cb14f3c12df15e6b37001b131bcc..12d047a8f35d00fc682e846ba20bce466b93dd21 100644 (file)
@@ -159,7 +159,7 @@ def unmount(path, subtype=None, timeout=10, recursive=False):
         if attempted:
             # Report buffered stderr from previous call to fusermount,
             # now that we know it didn't succeed.
-            sys.stderr.write(fusermount_output)
+            sys.stderr.buffer.write(fusermount_output)
 
             delay = 1
             if deadline: