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

Re: [Condor-users] condor username (first-name.last-name) conflict with group name - or what?



Hi Erik

First Thanks again for the help :-)

However I don't manage to make this working:

Here is what I added in my condor_config.local

GROUP_NAMES = a
GROUP_QUOTA_a = 2
GROUP_ACCEPT_SURPLUS = FALSE

SUBMIT_EXPRS = AccountingGroup
AccountingGroup = strcat(GroupName, ".",
ifThenElse(regexps("(.*)\.(.*)", Owner, "\1_\2") =!= "",
regexps("(.*)\.(.*)", Owner, "\1_\2"), Owner))


in my job.submission file:

cmd = /home/sassy.natan/condor/1.bat
initialdir = /home/sassy.natan/condor
args =
should_transfer_files = IF_NEEDED
when_to_transfer_output = ON_EXIT
transfer_output_files = .
universe = vanilla
getenv = True
priority = 0
+GroupName = "a.sassy.natan"
stream_error = true
stream_output = true
notification = Error
run_as_owner = True
load_profile = True
Error = job.err
Output = job.out
Log = job.log
notification = Always
Queue 150


I have 96 slots available at the moment.
When submitting the job (150 jobs) I get 96 running and (150-96 in hold).
But I want to have only 2 jobs running from this group.


The output from the condor_userprio:

a.sassy_natan@xxxxxxxxxxxxxx             0.51     0.51         1.00
0         0.61  9/12/2011 22:08
a.sassy.natan.sassy_natan@Prim           0.52     0.52         1.00
0         0.90  9/12/2011 22:06
sassy.natan@xxxxxxxxxxxxxx               0.60     0.60         1.00
0         8.46  9/08/2011 00:18

This is because I tried in the submission file to have:

+GroupName = "a.sassy.natan"
or
+GroupName = "a.sassy_natan"
or
+GroupName = "a"


What I'm doing wrong?

Thanks
Sassy


On Mon, Sep 12, 2011 at 8:13 PM, Sassy Natan <sassyn@xxxxxxxxx> wrote:
> WoW, amazing thanks!
> i will give it a shot shortly and will let u know
>
>
> thanks man :-)
>
>
>
> On Mon, Sep 12, 2011 at 7:48 PM, Erik Erlandson <eje@xxxxxxxxxx> wrote:
>> On Mon, 2011-09-12 at 09:08 +0300, Sassy Natan wrote:
>>
>> My problem is the all my users are in that form of firstname.lastname
>> and I can't do anything about this.
>>
>> Is there any workaround solution? Like manual mapping user X to Y so
>> sassy.natan will translate into sassy_natan?
>>
>>
>> As an example of possibilities, I got this scheme to work on my sandbox:
>>
>> # put this in your condor config file:
>> SUBMIT_EXPRS = AccountingGroup
>> AccountingGroup = strcat(GroupName, ".", ifThenElse(regexps("(.*)\.(.*)",
>> Owner, "\1_\2") =!= "", regexps("(.*)\.(.*)", Owner, "\1_\2"), Owner))
>>
>> # add this to your job file:
>> +GroupName = "group.subgroup"
>>
>> Condor will automatically construct "AccountingGroup" from GroupName and
>> Owner, with "." in Owner replaced by "_"
>>
>> The best solution will probably depend on who (or what) is currently setting
>> the "+AccountingGroup" value in your job submission files.
>>
>>
>>
>> P.S can u point me to the RFEs? (gogggggle it and found nothing)
>>
>>
>> There are no tickets currently associated with these.   It might be more
>> accurate to call them "A couple ideas I suggested to somebody at some point"
>> instead of "RFE
>> _______________________________________________
>> Condor-users mailing list
>> To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx with a
>> subject: Unsubscribe
>> You can also unsubscribe by visiting
>> https://lists.cs.wisc.edu/mailman/listinfo/condor-users
>>
>> The archives can be found at:
>> https://lists.cs.wisc.edu/archive/condor-users/
>>
>>
>