[distgit] Fix the group #3244

Closed
zlopez wants to merge 1 commit from zlopez/ansible:fix_pagure_group into main
Owner

The pagure user on distgit is now in xpackager group and same is the
ownership of most of the folders used by pagure. This change is
reflecting that in ansible.

Signed-off-by: Michal Konecny mkonecny@redhat.com

The pagure user on distgit is now in xpackager group and same is the ownership of most of the folders used by pagure. This change is reflecting that in ansible. Signed-off-by: Michal Konecny <mkonecny@redhat.com>
Author
Owner

I will leave this open for people to react as I don't know the reasoning behind xpackager group. As on pkgs01.rdu3.fedoraproject.org getent group packager returns plenty of users and getent group xpackager only xpagure. But trying id pagure will show:

uid=1000(pagure) gid=1494358698(xpackager) groups=1494358698(xpackager)

Same for few other users I tried on the machine.

I also only touched the file permissions and exec permissions on the machine. Didn't touched pagure configs as I assume the packager FAS group is correct there.

I will leave this open for people to react as I don't know the reasoning behind `xpackager` group. As on `pkgs01.rdu3.fedoraproject.org` `getent group packager` returns plenty of users and `getent group xpackager` only `xpagure`. But trying `id pagure` will show: ``` uid=1000(pagure) gid=1494358698(xpackager) groups=1494358698(xpackager) ``` Same for few other users I tried on the machine. I also only touched the file permissions and exec permissions on the machine. Didn't touched pagure configs as I assume the packager FAS group is correct there.
zlopez force-pushed fix_pagure_group from c31d368c95
Some checks failed
Linter / yamllint (pull_request) Successful in 25s
Linter / ansible-lint (pull_request) Failing after 41s
to 021ffcdeb6
All checks were successful
Linter / yamllint (pull_request) Successful in 24s
Linter / ansible-lint (pull_request) Successful in 45s
2026-03-26 13:01:02 +00:00
Compare
zlopez requested review from kevin 2026-03-30 07:46:01 +00:00
Owner

So, the reason for this happened when we migrated to rdu3.

The problem is that the 'packager' group is defined in ipa/ldap, but also locally on pkgs01 with a different/lower gid.
So, there were permissions issues because some things were in the ipa packager group and some things were in the local group and since they had different guid's they couldn't share permissions.

I think @james was the one who made the local ones 'xpackager' to make it clear which one we wanted (the local one).

I suppose we could push this to codify that change, or perhaps we could figure out a way to merge them back into one group (either by blocking the ipa one or changing the uid of the files owned by the local one to match the ipa one?)

@james any thoughts here or memory of the issue?

So, the reason for this happened when we migrated to rdu3. The problem is that the 'packager' group is defined in ipa/ldap, but also locally on pkgs01 with a different/lower gid. So, there were permissions issues because some things were in the ipa packager group and some things were in the local group and since they had different guid's they couldn't share permissions. I think @james was the one who made the local ones 'xpackager' to make it clear which one we wanted (the local one). I suppose we could push this to codify that change, or perhaps we could figure out a way to merge them back into one group (either by blocking the ipa one or changing the uid of the files owned by the local one to match the ipa one?) @james any thoughts here or memory of the issue?
Member

Yeh, it was DC move time and nothing worked and I didn't know why ... I hacked it into the new local group, and it seemed to work afterwards ;)

IIRC both the local and ipa packager groups had the same name and GID, but depending on what asked they would only get either the group members from local or ipa. I assume in iad2 the group membership was merged somehow. Not sure if that was a lost config. change or a difference in behaviour from some package upgrade (I think we upgraded the OS as part of the move outage).

It felt like we should be able to still merge the local/ipa group, but I didn't know how to (then or now). This change to make the change permanent seems fine to me.

Yeh, it was DC move time and nothing worked and I didn't know why ... I hacked it into the new local group, and it seemed to work afterwards ;) IIRC both the local and ipa packager groups had the same name and GID, but depending on what asked they would only get either the group members from local or ipa. I assume in iad2 the group membership was merged somehow. Not sure if that was a lost config. change or a difference in behaviour from some package upgrade (I think we upgraded the OS as part of the move outage). It felt like we should be able to still merge the local/ipa group, but I didn't know how to (then or now). This change to make the change permanent seems fine to me.
Owner

So, in that case would it make sense to remove/drop the local group entirely and try and use the ipa group for everything?

We could test this in staging and see how things work?

So, in that case would it make sense to remove/drop the local group entirely and try and use the ipa group for everything? We could test this in staging and see how things work?
Author
Owner

Should I close this PR then and open a ticket instead about the issue?

Should I close this PR then and open a ticket instead about the issue?
Owner

I guess so? We could also just change this pr to only affect staging and use it to test with?

I guess so? We could also just change this pr to only affect staging and use it to test with?
Author
Owner

Let me close this, as this PR actually reflects the current state of staging and production. The playbook as it is is probably what we want.

Let me close this, as this PR actually reflects the current state of staging and production. The playbook as it is is probably what we want.
zlopez closed this pull request 2026-04-07 07:31:38 +00:00
All checks were successful
Linter / yamllint (pull_request) Successful in 24s
Linter / ansible-lint (pull_request) Successful in 45s

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
infra/ansible!3244
No description provided.