[ARVADOS] created: 1fcfd55c8fa2c09c996feb24d297fe906710d646

Git user git at public.curoverse.com
Thu Sep 21 14:05:14 EDT 2017


        at  1fcfd55c8fa2c09c996feb24d297fe906710d646 (commit)


commit 1fcfd55c8fa2c09c996feb24d297fe906710d646
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Thu Sep 21 14:04:27 2017 -0400

    11068: Catch OSError and give better error message when unable to execute Docker.
    
    Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <pamstutz at veritasgenetics.com>

diff --git a/sdk/cwl/arvados_cwl/arvdocker.py b/sdk/cwl/arvados_cwl/arvdocker.py
index 6b736a5..0513ca0 100644
--- a/sdk/cwl/arvados_cwl/arvdocker.py
+++ b/sdk/cwl/arvados_cwl/arvdocker.py
@@ -44,7 +44,10 @@ def arv_docker_get_image(api_client, dockerRequirement, pull_image, project_uuid
 
         if not images:
             # Fetch Docker image if necessary.
-            cwltool.docker.get_image(dockerRequirement, pull_image)
+            try:
+                cwltool.docker.get_image(dockerRequirement, pull_image)
+            except OSError as e:
+                raise WorkflowException("While trying to get Docker image '%s', failed to execute 'docker': %s" % (dockerRequirement["dockerImageId"], e))
 
             # Upload image to Arvados
             args = []

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list