HTCondor Project List Archives



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

Re: [Condor-devel] LocalCredd match is case sensitive



That the operator =?= does case sensitive comparisons is by design (and is documented as such).  If you need to to case insensitive comparisons, use 'stricmp' in your expression.  For instance you could try the following:

Requirements = ... && (isString(LocalCredd) && (stricmp(LocalCredd, "XS205803.MELINDA.local") == 0))

Note I haven't tried this in practice, but it should be quite close. There may be a shorter version, but I'm not a class ad wizard, so this is the best I could come up with.

Regards,
-B

On 2010-07-05, at 8:59 AM, Alexandre Fayolle wrote:

> I've hit what looks like a bug in condor 7.4.1: I have two computers running 
> Windows 2k3. The first one is runs Condor as Central Manager + Credd, the other 
> one is there to run jobs. 
> 
> In the config file for the central manager, I wrote:
> 
> CREDD_HOST = XS205803.MELINDA.local
> 
> In the config file for the computing unit, I wrote:
> 
> CREDD_HOST = xs205803.MELINDA.local
> 
> This seems to work fine, but jobs submitted to the central manager with 
> Run_as_owner=True won't run. 
> 
> condor_q -analyze tells that the requirements for the job are:
> 
> Requirements = (Arch == "INTEL") && (OpSys == "WINNT52") && (Disk >= 
> DiskUsage) && ((Memory * 1024) >= ImageSize) && (HasFileTransfer) && 
> (HasWindowsRunAsOwner && (LocalCredd =?= "XS205803.MELINDA.local"))
> 
> And condor_status tells that the LocalCredd on the other machine is:
> 
> LocalCredd = "xs205803.MELINDA.local"
> 
> Since the test in the ClassAd is case sensitive (=?=) this does not match and 
> the jobs sits in the queue. 
> 
> Why is a case sensitive match used in for that match? It feels very strange to 
> use a case sensitive match for a hostname. 
> 
> Thanks for your time. 
> 
> -- 
> Alexandre Fayolle                              LOGILAB, Paris (France)
> Formations Python, CubicWeb, Debian :  http://www.logilab.fr/formations
> Développement logiciel sur mesure :      http://www.logilab.fr/services
> Informatique scientifique:               http://www.logilab.fr/science
> _______________________________________________
> Condor-devel mailing list
> Condor-devel@xxxxxxxxxxx
> https://lists.cs.wisc.edu/mailman/listinfo/condor-devel