Skip to content

local group not added anymore to My.CMSGroups ? #9235

@belforte

Description

@belforte

There at least one case where the user membership in local groups is not added to CMSGroups classAd
See https://cms-talk.web.cern.ch/t/issue-with-processing-private-mc-samples-using-crab/138451/4

pasting here most relevant text

 matching doesnt work because of stringListsIntersect(CMSGroups,“T3_US_FNALLPC”)`

The user is among the local users at LPC:

[mmascher@vocms0106 ~]$ grep jingyu /cvmfs/cms.cern.ch/SITECONF/T3_US_FNALLPC/GlideinConfig/local-users.txt
jingyu

As @mmascher pointed out, CRAB should be setting the group information here?

## Add group information (local groups in SITECONF via CMSGroupMapper, VOMS groups via task info in DB)
groups = set.union(map_user_to_groups(task['tm_username']), task['user_groups'])
groups = ','.join(groups) # from the set {'g1','g2'...,'gN'} to the string 'g1,g2,..gN'
jobSubmit['My.CMSGroups'] = classad.quote(groups)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions