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

Re: [HTCondor-users] Syntax error in Job_router_entries



Hi Brian,

Yes, it's a very huge line indeed but only when the CE is in production, now, I'm just testing with only one JOB_ROUTER_ENTRY :-)

# condor_ce_config_val JOB_ROUTER_ENTRIES
[ name = "Default_Condor"; TargetUniverse = 5; set_LivAcctGroup = strcat("group_",toUpper( ifThenElse(regexp("dteam010",Owner),"highprio", ifThenElse(regexp("^ops", x509UserProxyVOName), "highprio", ifThenElse(regexp("^magic", x509UserProxyVOName), "astro", ifThenElse(regexp("^dteam", x509UserProxyVOName), "nonlhc", "nonefound"))))));eval_set_AccountingGroup =  strcat(LivAcctGroup, ".", LivAcctSubGroup, ".", Owner); set_Requirements = WN_property == "default"; Requirements = ifThenElse(target.queue is undefined, x509UserProxyVOName != "atlas" && x509UserProxyVOName != "cms" && x509UserProxyVOName != "lhcb", target.queue=="default"); delete_SUBMIT_Iwd = true; eval_set_RequestCpus =  ifThenElse(xcount isnt undefined, xcount, 1); set_WantIOProxy = true; set_PICScaling = "$$(PICScaling:1)"; set_default_maxMemory = (2048*RequestCpus); set_JobMemoryLimit = (6144*RequestCpus); set_PeriodicRemove = (JobStatus == 2 && (CurrentTime - EnteredCurrentStatus) > 360000) || (JobStatus == 4 && (CurrentTime - EnteredCurrentStatus ) > 3600*24*2) || (ImageSize > JobMemoryLimit*1024); ]

This is commenting the set_LivAcctSubGroup line. However, I've discovered that if I uncomment the line and then do a condor-ce reload (not a restart), it is taking correctly all the lines:

# condor_ce_config_val JOB_ROUTER_ENTRIES
[ name = "Default_Condor"; TargetUniverse = 5; set_LivAcctGroup = strcat("group_",toUpper( ifThenElse(regexp("dteam010",Owner),"highprio", ifThenElse(regexp("^ops", x509UserProxyVOName), "highprio", ifThenElse(regexp("^magic", x509UserProxyVOName), "astro", ifThenElse(regexp("^dteam", x509UserProxyVOName), "nonlhc", "nonefound"))))));set_LivAcctSubGroup = strcat(regexps("([A-Za-z0-9]+[A-Za-z])\\d+", Owner, "\\1"),ifThenElse(RequestCpus > 1,"_mcore","_score"));eval_set_AccountingGroup =  strcat(LivAcctGroup, ".", LivAcctSubGroup, ".", Owner); set_Requirements = WN_property == "default"; Requirements = ifThenElse(target.queue is undefined, x509UserProxyVOName != "atlas" && x509UserProxyVOName != "cms" && x509UserProxyVOName != "lhcb", target.queue=="default"); delete_SUBMIT_Iwd = true; eval_set_RequestCpus =  ifThenElse(xcount isnt undefined, xcount, 1); set_WantIOProxy = true; set_PICScaling = "$$(PICScaling:1)"; set_default_maxMemory = (2048*RequestCpus); set_JobMemoryLimit = (6144*RequestCpus); set_PeriodicRemove = (JobStatus == 2 && (CurrentTime - EnteredCurrentStatus) > 360000) || (JobStatus == 4 && (CurrentTime - EnteredCurrentStatus ) > 3600*24*2) || (ImageSize > JobMemoryLimit*1024); ]

Thank you very much!

Cheers,

Carles

On 08/29/2017 05:41 AM, Brian Bockelman wrote:
Hi Carles,

I'm sure I'll regret it because the line will be huge, but --

Can you send out the full JOB_ROUTER_ENTRIES (i.e., output of "condor_config_val JOB_ROUTER_ENTRIES")?  I don't see anything obvious in the snippet you sent below, so I'm hoping more context will help provide the answer.

Thanks!

Brian

On Aug 28, 2017, at 11:06 AM, Carles Acosta <cacosta@xxxxxx> wrote:

Dear all,

We are installing a new HTCondor-CE (3.0.1-1) in CentOs7 with HTCondor version 8.6.5.

We cannot start the condor-ce service, it fails with the next error:

Aug 28 17:21:28 ce14.pic.es condor_ce_startup[461853]: ERROR: Could not read JOB_ROUTER_ENTRIES in the HTCondor CE configuration. Please verify syntax correctness

After some trial and error checking, it seems that this is the problematic line:

set_LivAcctSubGroup = strcat(regexps("([A-Za-z0-9]+[A-Za-z])\\d+", Owner, "\\1"),ifThenElse(RequestCpus > 1,"_mcore","_score"));\

The same line works perfectly fine with our other HTCondor-CE 2.1.2... Is there any change regarding the syntax check in new HTCondor-CE versions?

Thank you in advance.

Best regards,

Carles
_______________________________________________
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users

The archives can be found at:
https://lists.cs.wisc.edu/archive/htcondor-users/



_______________________________________________
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users

The archives can be found at:
https://lists.cs.wisc.edu/archive/htcondor-users/


-- 
Carles Acosta i Silva
PIC (Port d'Informació Científica)
Campus UAB, Edifici D
E-08193 Bellaterra, Barcelona
Tel: +34 93 581 33 22
Fax: +34 93 581 41 10
http://www.pic.es 
Avís - Aviso - Legal Notice: http://www.ifae.es/legal.html