Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pool_group fails if account has multiple groups #12

Open
milliams opened this issue May 6, 2015 · 1 comment
Open

pool_group fails if account has multiple groups #12

milliams opened this issue May 6, 2015 · 1 comment

Comments

@milliams
Copy link

milliams commented May 6, 2015

At Birmingham we have a set of users in our users.conf like:

7000:lhb000:7000:lhcb:lhcb::
7001:lhb001:7000:lhcb:lhcb::
...
7098:lhb098:7000:lhcb:lhcb::
7099:lhb099:7000:lhcb:lhcb::
8201:pillhb01:7003,7000:lhcbpil,lhcb:lhcb:pil:
8202:pillhb02:7003,7000:lhcbpil,lhcb:lhcb:pil:
...
8219:pillhb19:7003,7000:lhcbpil,lhcb:lhcb:pil:
8220:pillhb20:7003,7000:lhcbpil,lhcb:lhcb:pil:
8001:prdlhb01:7001,7000:lhcbprd,lhcb:lhcb:prd:
8002:prdlhb02:7001,7000:lhcbprd,lhcb:lhcb:prd:
...
8019:prdlhb19:7001,7000:lhcbprd,lhcb:lhcb:prd:
8020:prdlhb20:7001,7000:lhcbprd,lhcb:lhcb:prd:
8101:sgmlhb01:7002,7000:lhcbsgm,lhcb:lhcb:sgm:
8102:sgmlhb02:7002,7000:lhcbsgm,lhcb:lhcb:sgm:
...
8119:sgmlhb19:7002,7000:lhcbsgm,lhcb:lhcb:sgm:
8120:sgmlhb20:7002,7000:lhcbsgm,lhcb:lhcb:sgm:

When I call grid_pool_accounts { 'lhcb':} I get the error:

Error: Failed to apply catalog: Parameter gid failed on Group[lhcbsgm,lhcb]: Invalid GID 7002,7000 at /etc/puppet/environments/production/modules/grid_pool_accounts/manifests/pool_group.pp:10

This is because the function get_pool_gid() returns the last group id that matches 'lhcb' which gives 7002,7000 which is passed directly to a Puppet group definition in pool_group.pp which is an invalid GID.

I can't see where the secondary groups are created either. Is this functionality missing?

@kashif74
Copy link
Member

kashif74 commented May 7, 2015

Hi Matt
I know about this issues so I took the easy way out by using yaim for pool creation. Feel free to change it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants