Uploaded image for project: 'Pegasus'
  1. Pegasus
  2. PM-934

changed how environment is set for jobs submitted via HTCondor Glite / Blahp layer

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: master, 4.5.0
    • Fix Version/s: master, 4.6.0, 4.5.1
    • Component/s: pegasus-plan
    • Labels:
      None

      Description

      we usually set user environment for glite jobs using +remote_cerequriments classad using the MYENV key

      e.g. +remote_cerequirements = "PASSENV==1 && WALLTIME==600 && PRIORITY==50 && MYENV==\"PEGASUSHOME=/auto/rcf-40/vahi/SOFTWARE/pegasus/pegasus-4.4.0cvs,KEY0=VALUE 0,KEY1=VALUE1\""

      However, per Franciesco the Blahp developer the right way is as follows
      The purpose is setting environment variables for the running job ?

      Unless there is something special affecting that variable in this context, you *should* be able to do that by just setting +remote_environment, which uses the same syntax of the condor_submit 'environment' attribute, namely:

      +remote_environment = "PEGASUSHOME=/auto/rcf-40/vahi/SOFTWARE/pegasus/pegasus-4.4.0cvs KEY0='VALUE 0' KEY1=VALUE1A"

      (the older 'env' syntax is also supported, but I suppose that will go
      away eventually). Is this working for you/doing what you expect ?

      The code handling remote_cerequirements was built around the syntax of
      a computing resource attribute schema used within WLCG and currently handles just one level of nested quotes and removes all single quotes. This should be taken into account in the 'local_submit_attributes' script
      that I suppose is handling the 'MYENV' variable (Derek: where can I look at it) ? I understand that the local_submit_attributes script is
      serving many purposes nowadays and we should generalise it a bit,
      but the job environment is a first class citizen, so I'd first explore
      the specific attribute.

      Francesco P.


        Attachments

          Activity

            People

            • Assignee:
              vahi Karan Vahi
              Reporter:
              vahi Karan Vahi
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: