handle condor_submit updated way of specifying environment in the .dag.condor.sub file

XMLWordPrintable

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major
    • master, 5.1.0, 5.0.4
    • Affects Version/s: master, 5.0.3
    • None
    • Environment:
      [bamboo@bamboo run0002]$ condor_version
      $CondorVersion: 10.2.0 2023-01-05 BuildID: 621409 PackageID: 10.2.0-1 $
      $CondorPlatform: x86_64_AlmaLinux8 $

      the HTCondor 10.2.0 has updated the way of how the environment is specified in the .dag.condor.sub file. The environment variable is now quoted with whitespaces, because of which the previous way of encoding the PEGASUS_METRICS variable is now broken.

      environment = "_CONDOR_SCHEDD_ADDRESS_FILE=/home/condor/spool/.schedd_address _CONDOR_MAX_DAGMAN_LOG=0 _CONDOR_SCHEDD_DAEMON_AD_FILE=/home/condor/spool/.schedd_classad _CONDOR_DAGMAN_LOG=wordfreq-workflow-0.dag.dagman.out";PEGASUS_METRICS=true;

      $ condor_submit -terse wordfreq-workflow-0.dag.condor.sub
      ERROR: Unexpected characters following double-quote. Did you forget to escape the double-quote by repeating it? Here is the quote and trailing characters: ";PEGASUS_METRICS=true;

      The environment you specified was: '"_CONDOR_SCHEDD_ADDRESS_FILE=/home/condor/spool/.schedd_address _CONDOR_MAX_DAGMAN_LOG=0 _CONDOR_SCHEDD_DAEMON_AD_FILE=/home/condor/spool/.schedd_classad _CONDOR_DAGMAN_LOG=wordfreq-workflow-0.dag.dagman.out";PEGASUS_METRICS=true;'

            Assignee:
            Karan Vahi
            Reporter:
            Karan Vahi
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: