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

[Condor-users] macro problems



Hi all,

I've searched the list, and the faq, but can't seem to make any headway on this problem.
So it's dumb question time.

I want to create machine groups, to make it easier for my users to select certain machines, so
I set up some macros,

In condor_config.local

BugCluster = (  (Machine == "compute-0-1.local") ||  (Machine == "compute-0-2.local") ||  (Machine == "compute-0-3.local") ||  (Machine == "compute-0-4.local") ||  (Machine == "compute-0-5.local") ||  (Machine == "compute-0-6.local") ||  (Machine == "compute-0-7.local") ||  (Machine == "compute-0-8.local") ||  (Machine == "compute-0-9.local") ||  (Machine == "compute-0-10.local") )
Bugs = (  (Machine == "bug1.core.montana.edu") ||  (Machine == "bug2.core.montana.edu") ||  (Machine == "bug3.core.montana.edu") ||  (Machine == "bug4.core.montana.edu") ||  (Machine == "bug5.core.montana.edu") ||  (Machine == "bug6.core.montana.edu") ||  (Machine == "bug7.core.montana.edu") ||  (Machine == "bug8.core.montana.edu") ||  (Machine == "bug12.core.montana.edu") ||  (Machine == "bug13.core.montana.edu") ||  (Machine == "bug14.core.montana.edu") ||  (Machine == "bug22.core.montana.edu") ||  (Machine == "bug41.core.montana.edu") ||  (Machine == "bug42.core.montana.edu") ||  (Machine == "bug43.core.montana.edu") ||  (Machine == "bug44.core.montana.edu") ||  (Machine == "bug51.core.montana.edu") ||  (Machine == "bug52.core.montana.edu") ||  (Machine == "bug53.core.montana.edu") ||  (Machine == "bug61.core.montana.edu") )
BugAll = ( $(BugCluster) || $(Bugs) || (Machine == "compute-0-11.local") )

after a condor_config

[root@bugserv1 etc]# condor_config_val -dump | grep -i bug
# Configuration from machine: bugserv1.core.montana.edu
ALL_DEBUG = 
BUGALL = ( $(BugCluster) || $(Bugs) || (Machine == "compute-0-11.local") )
BUGCLUSTER = (  (Machine == "compute-0-1.local") ||  (Machine == "compute-0-2.local") ||  (Machine == "compute-0-3.local") ||  (Machine == "compute-0-4.local") ||  (Machine == "compute-0-5.local") ||  (Machine == "compute-0-6.local") ||  (Machine == "compute-0-7.local") ||  (Machine == "compute-0-8.local") ||  (Machine == "compute-0-9.local") ||  (Machine == "compute-0-10.local") )
BUGS = (  (Machine == "bug1.core.montana.edu") ||  (Machine == "bug2.core.montana.edu") ||  (Machine == "bug3.core.montana.edu") ||  (Machine == "bug4.core.montana.edu") ||  (Machine == "bug5.core.montana.edu") ||  (Machine == "bug6.core.montana.edu") ||  (Machine == "bug7.core.montana.edu") ||  (Machine == "bug8.core.montana.edu") ||  (Machine == "bug12.core.montana.edu") ||  (Machine == "bug13.core.montana.edu") ||  (Machine == "bug14.core.montana.edu") ||  (Machine == "bug22.core.montana.edu") ||  (Machine == "bug41.core.montana.edu") ||  (Machine == "bug42.core.montana.edu") ||  (Machine == "bug43.core.montana.edu") ||  (Machine == "bug44.core.montana.edu") ||  (Machine == "bug51.core.montana.edu") ||  (Machine == "bug52.core.montana.edu") ||  (Machine == "bug53.core.montana.edu") ||  (Machine == "bug61.core.montana.edu") )


this simple submit file

####################################
## run distributed blast          ##
## Condor submit description file ##
####################################
getenv      = True
universe    = Vanilla
initialdir  = /net/bugserv1/data/orser/tests
executable  = /share/apps/ncbi-blast-2.2.24+/bin/blastn
requirements = $(BUGALL) && Memory > 0
input       = /dev/null
output      = results/ncbi++_blastp_all.$(Cluster).$(Process).out
WhenToTransferOutput = ON_EXIT_OR_EVICT
error       = results/ncbi++_blastp_all.$(Cluster).$(Process).err
log         = results/ncbi++_blastp_all.$(Cluster).$(Process).log
notification = Error

arguments   = "-db /share/data/db/nt -query /net/bugserv1/data/orser/tests/data/gdo0001.fas -culling_limit 20 -evalue 1E-5 -num_descriptions 10 -num_alignments 100 -parse_deflines -show_gis -outfmt 5"

queue

is generating this error

condor_submit subs/ncbi++_blastp_all.sub 
Submitting job(s)
ERROR: Parse error in _expression_: 
Requirements = ( && Memory > 0) && (Arch == "X86_64") && (OpSys == "LINUX") && (Disk >= DiskUsage)&& (HasFileTransfer)
               ^^^
Error in submit file

It is like it is not recognizing the $(BUGALL) macro/_expression_
It's the same if I test with both $(BUGS) or $(BUGCLUSTER)

Any ideas?
Must be something simple that I'm missing...


PS.
condor_status -master -format "%s\n" CondorVersion | sort | uniq -c
     20 $CondorVersion: 7.2.4 Apr 11 2010 $
     12 $CondorVersion: 7.4.2 Mar 29 2010 BuildID: 227044 $
on a rocks 5.4 cluster
ubuntu 10.04 distributed machines

-- 
Cheers, Gary