Remove users from distgit and IPA groups #12935
Labels
No labels
announcement
anubis
authentication
aws
backlog
blocked
bodhi
ci
cloud
communishift
copr
database
day-to-day
dc-move
deprecated
dev
discourse
dns
downloads
easyfix
epel
firmitas
forgejo_migration
Gain
High
Gain
Low
Gain
Medium
gitlab
greenwave
hardware
help wanted
high-trouble
koji
koschei
lists
low-trouble
medium-trouble
mirrorlists
monitoring
Needs investigation
odcs
OpenShift
ops
outage
packager_workflow_blocker
pagure
permissions
Priority
Needs Review
Priority
Next Meeting
Priority
🔥 URGENT 🔥
Priority
Waiting on Assignee
Priority
Waiting on External
Priority
Waiting on Reporter
rabbitmq
release-monitoring
releng
request-for-resources
s390x
security
SMTP
sprint-0
sprint-1
src.fp.o
staging
unfreeze
waiverdb
websites-general
wiki
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
5 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
infra/tickets#12935
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Describe what you would like us to do:
The toddler cleaning_packager_groups checks for users who are not packagers anymore and removes them from distgit and IPA groups. However, the toddler cannot remove users, who are groups creators. The group creator probably needs to be set to a different user, releng perhaps? This needs to be done manually.
The following users could not be removed automatically because they are group creators:
dotnet-sig: rhea
modularity-wg: karsten
openstack-sig: hguemar
sssd-maintainers: mzidek
Please remove these users manually or transfer group ownership.
When do you need this to be done by? (YYYY/MM/DD)
no hurry
Metadata Update from @zlopez:
So, to clarify here, these need to be removed on src.fedoraproject.org as 'group creator' ?
I am not sure how to do that. I guess direct in the db?
I assume some user must be set as creator? or can we just unset it?
I do not see them in ipa at all.
Yes, the users have to be removed from
group creatoron src.fedoraproject.org. When this happens, the toddler will finish the purging of the user from the groups.I would assume there has to be some group creator for the group as well.
With @abompard we were thinking whether we could use
relenguser or some other admin or maintenance user for that?The toddler can and does remove the users from the IPA side, so this only affects the src side.
I guess releng would work... or could we use 'nobody' ? That user has their emails go to /dev/null
I suppose
nobodywould work as well.I wrote this script so we don't have to touch the Pagure DB manually, we could put it on the pagure servers and the manually transfer the groups with it when necessary:
Sounds good. Can you stick it in ansible to deploy on the pkgs/src servers and then we can run it on stg to test and if all looks good, run it in prod?
Found this e-mail in my inbox today, I assume the script is still not in place.
I've added @abompard's group transfer script to the distgit role for deployment to /usr/local/bin/.
Pull Request: infra/ansible#3141
I've verified the script syntax and Ansible task formatting. Ready for review and a test run in staging