[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Condor-users] Testing on strings and other things



Hi,

I'm running a mixed RH7.3 / LTS3 condor pool, and because of the way our users use Condor, I need a way to submit jobs which will only run on one type of system or the other. ARCH or OS aren't fine-grained enough, so I implemented my own config file variable, viz:

BOONE_GLIBC_VERSION = "2.2"

or

BOONE_GLIBC_VERSION = "2.3"

(note the quotes).

HOWEVER, if my .cmd file looks like this:

requirements = (BOONE_GLIBC_VERSION == "2.2")

Then condor_q -analyze tells me that nothing matches my requirements, even though I can verify:

condor_config_val BOONE_GLIBC_VERSION
"2.2"

Again, note the quotes.

If I omit the quotes, then the .cmd file says:

requirements = (BOONE_GLIBC_VERSION == 2.20000)

-- not useful.

What am I doing wrong? I have previously done this with a numeric variable without problems.

Help!

On another note, is there any facility within condor to include files within condor_config: with my almost-identical architectures come almost-identical config files which are linked to /home/condor from AFS space:

/home/condor/condor_config -> /afs/fnal.gov/files/code/e898/code/14/condor-admin/Config/condor_config-Linux+2.4-2.2.5

or

/home/condor/condor_config -> /afs/fnal.gov/files/code/e898/code/14/condor-admin/Config/condor_config-Linux+2.4-2.3.2

as appropriate. I would like to include the bulk of each configuration from a central file since the total diffs between the two files are:

58c58
< RELEASE_DIR           = $(TOP_LEVEL_DIR)/Linux+2.4-2.2.5
---
RELEASE_DIR = $(TOP_LEVEL_DIR)/Linux+2.4-2.3.2
1493c1493
< BOONE_GLIBC_VERSION = "2.2"
---
BOONE_GLIBC_VERSION = "2.3"

Is there any way to do this?


With respect to both problems, I am running

CondorVersion = "$CondorVersion: 6.6.6 Jul 26 2004 $"
CondorPlatform = "$CondorPlatform: I386-LINUX_RH72 $"

and

CondorVersion = "$CondorVersion: 6.6.6 Jul 26 2004 $"
CondorPlatform = "$CondorPlatform: I386-LINUX_RH9 $"

although I would be happy to upgrade to the 6.7 series just as soon as $$() expansion of Hawkeye variables in requirements gets fixed.

Thanks for any help,

Chris Green.


-- Chris Green, MiniBooNE / LANL. Email greenc@xxxxxxxx Tel: (630) 840-2167. Fax: (630) 840-3867