[distgit] Fix the group #3244
No reviewers
Labels
No labels
ai-review-please
freeze-break-request
post-freeze
Backlog Status
Needs Review
Backlog Status
Ready
chore
documentation
points
01
points
02
points
03
points
05
points
08
points
13
Priority
High
Priority
Low
Priority
Medium
Sprint Status
Blocked
Sprint Status
Done
Sprint Status
In Progress
Sprint Status
Review
Sprint Status
To Do
Technical Debt
Work Item
Bug
Work Item
Epic
Work Item
Spike
Work Item
Task
Work Item
User Story
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
infra/ansible!3244
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "zlopez/ansible:fix_pagure_group"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
I will leave this open for people to react as I don't know the reasoning behind
xpackagergroup. As onpkgs01.rdu3.fedoraproject.orggetent group packagerreturns plenty of users andgetent group xpackageronlyxpagure. But tryingid pagurewill show: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.
c31d368c95021ffcdeb6So, 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?
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.
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?
Should I close this PR then and open a ticket instead about the issue?
I guess so? We could also just change this pr to only affect staging and use it to test with?
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.
Pull request closed