13892: Make warning more obvious.
authorPeter Amstutz <pamstutz@veritasgenetics.com>
Tue, 31 Jul 2018 17:26:14 +0000 (13:26 -0400)
committerPeter Amstutz <pamstutz@veritasgenetics.com>
Tue, 31 Jul 2018 17:26:14 +0000 (13:26 -0400)
Link to information about migrating for both users and admins.

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <pamstutz@veritasgenetics.com>

doc/user/cwl/cwl-style.html.textile.liquid
sdk/cwl/arvados_cwl/__init__.py

index 6b5147ddcbda8260f9431fa8ec201bc759a8aa41..07cb4aa9095fad72e9854997427b5f171a941307 100644 (file)
@@ -176,7 +176,9 @@ steps:
           run: tool3.cwl
 </pre>
 
-* When migrating from crunch v1 API (--api=jobs) to the crunch v2 API (--api=containers) there are a few differences in behavior:
+h2(#migrate). Migrating running CWL on jobs API to containers API
+
+* When migrating from jobs API (--api=jobs) (sometimes referred to as "crunch v1") to the containers API (--api=containers) ("crunch v2") there are a few differences in behavior:
 ** The tool is limited to accessing only collections which are explicitly listed in the input, and further limited to only the subdirectories of collections listed in input.  For example, given an explicit file input @/dir/subdir/file1.txt@, a tool will not be able to implicitly access the file @/dir/file2.txt@.  Use @secondaryFiles@ or a @Directory@ input to describe trees of files.
 ** Files listed in @InitialWorkDirRequirement@ appear in the output directory as normal files (not symlinks) but cannot be moved, renamed or deleted.  These files will be added to the output collection but without any additional copies of the underlying data.
 ** Tools are disallowed network access by default.  Tools which require network access must include @arv:APIRequirement: {}@ in their @requirements@ section.
index 7e4142b1086acdc95a7beb15d15243e5ec8a5c56..8c3f0eadee8755ba63027893ce3425df09a082ad 100644 (file)
@@ -136,9 +136,19 @@ class ArvCwlRunner(object):
                 raise Exception("Unsupported API '%s', expected one of %s" % (work_api, expected_api))
 
         if self.work_api == "jobs":
-            logger.warn("""Using the deprecated 'jobs' API.
-Suggest '--api=containers' or configure the cluster to disable the 'jobs' API as described at:
-http://doc.arvados.org/install/install-api-server.html#disable_api_methods""")
+            logger.warn("""
+*******************************
+Using the deprecated 'jobs' API.
+
+To get rid of this warning:
+
+Users: read about migrating at
+http://doc.arvados.org/user/cwl/cwl-style.html#migrate
+and use the option --api=containers
+
+Admins: configure the cluster to disable the 'jobs' API as described at:
+http://doc.arvados.org/install/install-api-server.html#disable_api_methods
+*******************************""")
 
         self.loadingContext = ArvLoadingContext(vars(arvargs))
         self.loadingContext.fetcher_constructor = self.fetcher_constructor