Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [HTCondor-users] Condor mapfile
- Date: Thu, 2 Jul 2020 18:56:03 +0000
- From: Zach Miller <zmiller@xxxxxxxxxxx>
- Subject: Re: [HTCondor-users] Condor mapfile
Hello,
Brian had good advice on the debugging. I'm also looking closely at your regexes.
I think you do not need to escape the '/' and '=' characters in this file, and maybe that is causing the problem.
I also noticed one other oddity. In your earlier email the DN you have this DN:
x509UserProxyFQAN = "/DC=ch/DC=cern/OU=Organic Units/OU=Users/CN=user/CN=0000/CN=Name Last name/alice/Role=NULL/Capability=NULL,/alice/alarm/Role=NULL/Capability=NULL,/alice/lcg1/Role=NULL/Capability=NULL,/alice/team/Role=NULL/Capability=NULL"
Maybe it was a mistake in copying, but I see there is no "," between "Last name" and "/alice/Role=". So actually the first entry in the mapfile will not match that DN:
GSI ".*,\/alice\/Role\=.*" user_alice
So try this file perhaps:
GSI ".*/alice/Role=.*" user_alice
GSI ".*,/lhcb/Role=.*" user_lhcb
GSI ".*,/dune/Role=.*" user_dune
GSI (.*) user_others
Let us know how that goes.
Cheers,
-zach
ïOn 7/2/20, 1:31 PM, "HTCondor-users on behalf of ejunior@xxxxxxx" <htcondor-users-bounces@xxxxxxxxxxx on behalf of ejunior@xxxxxxx> wrote:
Hi Brian,
sorry for the late reply, this message was stuck in to my SPAM box.
Thanks for the job routing part, I'll set like you said.
About what is not working, it's the map file.
I believe I've set my regex correctly, but all jobs are been assigned
to the user "user_others":
>> GSI ".*,\/alice\/Role\=.*" user_alice
>> GSI ".*,\/lhcb\/Role\=.*" user_lhcb
>> GSI ".*,\/dune\/Role\=.*" user_dune
>> GSI (.*) user_others
Did I made a mistake ?
Regards,
Eraldo
Citando Brian Lin <blin@xxxxxxxxxxx>:
> Hi Eraldo,
>
> It's not clear from your email what's not working but I think I see
> a problem with how you're specifying multiple routes
> (https://htcondor-ce.readthedocs.io/en/latest/batch-system-integration/#writing-multiple-routes). You should also be able to specify the route evaluation order and simplify the requirements statements for each route since you've got 1:1 VO to local user mappings
> [1].
>
> - Brian
>
> [1]
>
> JOB_ROUTER_ENTRIES @=jre
> [
> TargetUniverse = 5;
> name = "ALICE_jobs";
> Requirements = (Owner == "user_alice");
> ]
> [
> TargetUniverse = 5;
> name = "LHCb_jobs";
> Requirements = (Owner == "user_lhcb");
> ]
> [
> TargetUniverse = 5;
> name = "DUNE_jobs";
> Requirements = (Owner == "user_dune");
> ]
> @jre
>
> JOB_ROUTER_ROUTE_NAMES = ALICE_jobs, LHCb_jobs, DUNE_jobs
>
> On 6/29/20 4:18 PM, ejunior@xxxxxxx wrote:
>> Hi all,
>>
>> first of all my condor installation:
>> $CondorVersion: 8.8.9 May 06 2020 BuildID: 503068 PackageID: 8.8.9-1 $
>> $CondorPlatform: x86_64_CentOS7 $
>>
>>
>> I'm trying to setup my mapfile without success.
>>
>> Here the FQANs that I want to map:
>>
>> x509UserProxyFQAN =
>> "/DC=org/DC=incommon/C=US/ST=Illinois/L=Batavia/O=Fermi Research
>> Alliance/OU=Fermilab/CN=blabla.bla.gov,/dune/Role=pilot/Capability=NULL,/dune/Role=NULL/Capability=NULL"
>> x509UserProxyFQAN = "/DC=ch/DC=cern/OU=Organic
>> Units/OU=Users/CN=user/CN=0000/CN=Name Last
>> name,/lhcb/Role=pilot/Capability=NULL,/lhcb/Role=NULL/Capability=NULL"
>> x509UserProxyFQAN = "/DC=ch/DC=cern/OU=Organic
>> Units/OU=Users/CN=user/CN=0000/CN=Name Last
>> name/alice/Role=NULL/Capability=NULL,/alice/alarm/Role=NULL/Capability=NULL,/alice/lcg1/Role=NULL/Capability=NULL,/alice/team/Role=NULL/Capability=NULL"
>>
>> Here my configuration files:
>>
>> *******************
>> Extract of condor_mapfile
>> *******************
>> GSI ".*,\/alice\/Role\=.*" user_alice
>> GSI ".*,\/lhcb\/Role\=.*" user_lhcb
>> GSI ".*,\/dune\/Role\=.*" user_dune
>> GSI (.*) user_others
>> CLAIMTOBE .* anonymous@claimtobe
>> FS (.*) \1
>>
>> **********EOF**************
>>
>> Extract of Job_router:
>> ************************
>> JOB_ROUTER_ENTRIES @=jre
>> [
>> TargetUniverse = 5;
>> name = "Filtering alice jobs";
>> Requirements = regexp("\/alice\/Role\=*", TARGET.x509UserProxyFirstFQAN);
>> ]
>> @jre
>>
>> JOB_ROUTER_ENTRIES @=jre
>> [
>> TargetUniverse = 5;
>> name = "Filtering LHCb jobs";
>> Requirements = regexp("\/lhcb\/Role\=*", TARGET.x509UserProxyFirstFQAN);
>> ]
>> @jre
>>
>>
>> JOB_ROUTER_ENTRIES @=jre
>> [
>> TargetUniverse = 5;
>> name = "Filtering Dune jobs";
>> Requirements = regexp("\/dune\/Role\=*", TARGET.x509UserProxyFirstFQAN);
>> ]
>> @jre
>>
>>
>> **********EOF**************
>>
>>
>> What I'm doing wrong ?
>>
>>
>> Best regards,
>>
>> Eraldo Jr
>> _______________________________________________
>> 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/