Add accounting group user maps to the job router transforms

Description

Base your work on V5_branch and submit a PR to when it’s ready for review.

When originally developing HTCondor-CE, we had to support the ability to map UID's, DNs, and VOMS attributes to an HTCondor accounting group (https://opensciencegrid.org/docs/compute-element/install-htcondor-ce/#htcondor-accounting-groups) and wrote some custom code to add this to the JOB_ROUTER_DEFAULTS (https://github.com/htcondor/htcondor-ce/blob/master/src/condor_ce_router_defaults#L181-L239).

These days, HTCondor has a userMap function (https://htcondor.readthedocs.io/en/stable/misc-concepts/classad-mechanism.html) that should be able to give us the same functionality. We should update our eval_set_AccountingGroup to use userMaps. userMap files have to be declared in the configuration:

The above config should be 1) specified in /usr/share/condor-ce/config.d/ and 2) be non-OSG specific. To support the current OSG paths, we can override the mapfile locations in the `osg-ce` metpackage.

Also note that TJ mentioned that the map files need to exist so we may want to throw empty config{noreplace) files into the htcondor-ce packaging.

Activity

Show:
John (TJ) Knoeller
March 29, 2021, 8:09 PM

Note: time charged to this ticket includes days spent getting setup to to CE development and to contribute using github and pull requests rather than the usual HTCondor development methods

Brian Lin
February 15, 2021, 5:59 PM

Note that we either need to continue supporting the old method or provide documentation to sites so that they know to transition to the new method whenever they upgrade

Due date

2021/02/19

Time remaining

0m

Assignee

Brian Lin