Add better support for variables

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major
    • master, 4.6.0
    • Affects Version/s: master
    • Component/s: Pegasus Planner
    • None

      We often have this problem where we need to generate a site catalog because we have something in there that is dynamic, like a username or something. Similar issues exist for the TC, RC and DAX.

      It would be nice if we could insert environment variables into these files. For example, in the site catalog we could have:

      <profile namespace="globus" key="project">$PROJECT</profile>

      Or:

      <directory type="shared-storage" path="/project/projectdirs/m2187/sns/$RUN">

      Or in the RC:

      production_200.conf file://$PWD/production_200.conf pool="local"

      We could even have pegasus-defined variables, like:

      <job id="ID0000001" name="echo">
      <argument>$PEGASUS_JOBID $PEGASUS_WF_UUID</argument>
      </job>

      Or something crazier, like:

      <job id="ID0000001" name="ping">
      <argument>-c 5 $(uname -n)</argument>
      </job>

      Undefined variables cause the planner to fail.

            Assignee:
            Karan Vahi
            Reporter:
            Gideon Juve
            Archiver:
            Rajiv Mayani

              Created:
              Updated:
              Resolved:
              Archived: