RHEL10: migrate ipa clusters to rhel10 #13382
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
4 participants
Notifications
Due date
No due date set.
Blocks
#12712 RHEL10 adoption
infra/tickets
Reference
infra/tickets#13382
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?
Description of request
We should migrate our rhel9 ipa clusters (stg and then prod) to rhel10.
"9", ipa01.rdu3.fedoraproject.org
"9", ipa01.stg.rdu3.fedoraproject.org
"9", ipa02.rdu3.fedoraproject.org
"9", ipa02.stg.rdu3.fedoraproject.org
"9", ipa03.rdu3.fedoraproject.org
"9", ipa03.stg.rdu3.fedoraproject.org
Basically this involves installing a new rhel10 ipa server, adding it as a replica in the cluster, making it the ca issuer and other items, then retiring the old one and adding more rhel10 replicas until the cluster is all rhel10.
https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/10/html-single/migrating_to_identity_management_on_rhel_10/index
@zlopez did our rhel8->9 move I think. Perhaps he would be willing to work on 9->10?
We will also need to make sure noggin works ok with things in staging before moving on to prod.
Yes, I did the previous move. It was painful as I made a few mistakes, but we get it working in the end and the ansible deployment was improved thanks to it.
I can do it for 9->10 as well. I should still have my notes from the previous move as well.
That would be great if you could!
Feel free to add it to whatever sprint you feel you can do it in.
Currently working on ipa03.stg and trying to get it to RHEL10. The problem I hit right now is that there is no python3-freeipa package on EPEL10. It's used by some scripts that are being run around IPA, like clearing the stage users.
There is a bug open to request it, but no progress yet. I will look into that and see if I can build it by myself in COPR.
Found out the package was already built for epel10.2 and epel10.3 https://koji.fedoraproject.org/koji/packageinfo?packageID=31158, but it's not in the EPEL10 repository. Not sure what is happening here.
There is no bodhi update for EPEL10 build, so I try to submit one and see if that will work https://bodhi.fedoraproject.org/updates/?packages=python-freeipa&page=1. But let's ask the maintainer first.
So I built few missing packages for RHEL10 for IPA in epel10-infra tag:
But it's failing during install on GPG check. I'm not sure what I missed
Sad trombone... that key has some sha1 still in it. ;(
I'll make a new one, but... we either need to have a seperate public key link in the repo file for rhel10, or resign everything.
I guess I'd prefer to just change epel10-infra. Will try and do this later today.
I didn't get to it today. ;( I can try soon... I'm out tomorrow, holiday on friday and out monday tho.
If someone like @jnsamyak wants to make the key in sigul, I'd call it something like 'fedora-infra-20260702' or whatever (so it's different from the existing one) Then it need autopen to have access to it and robosignatory config adjusted to use it for epel10-infra builds and finally a seperate file with the public key for the repo file.
No worries, I'm out on Friday and Monday too. I will work on something else in the meantime.
ok. I have rolled out a new happier rpm signing key for epel10-infra/stg... I was able to install those packages ok on ipa03.stg.
Let me know if you spot any further issues with it.
Thanks will try to work on this today.
Hello, ah, sad again, my notification settings weren't up to mark (fixed now), I could have chimed in, it seems like exciting/annoying work. But tag me if there is something I can help with 🗡️
ipa03.stg is now migrated, same for ipa02.stg.
I encountered some strange issue with ssh when reinstalling ipa01.stg. The ssh to machine works, but the ansible has problem reaching to it, this happens during running the
ipa-replica-installas the ansible is stuck when this task finishes. Cancelling the task and running it again fails when runningI wasn't able to figure out why today and as the authentication on staging works in current state I will continue on this on Monday.
So the IPA on staging is all on RHEL10 now, I'm not sure why the ssh had issues, but it just took much longer to finish.
We have seen some odd selinux issues around ssh sometimes on newly installed hosts... but only fedora ones, not rhel that I can recall. ;( Happy to help debug this with you...
It works now, so there is no need and the RHEL 10 upgrade was successful on staging :-)
Currently working on ipa03 on production and encountered these problems:
The ipa03 is now done, replica installed and playbook finished. Will start with ipa02 tomorrow.
So ipa01 is still running without changes, but there are some problems with ipa02 installation (different than those I encountered with ipa03), which I'm currently dealing with, and for some reason ipa03 has some replication issues, so I'm trying to fix that first
So ipa02 is now done as well, hit some new issues, but was able to overcome them. Will continue on ipa01 tomorrow.
Encountered another new error on ipa01 (
[ldap://ipa03.rdu3.fedoraproject.org:389] reports: Update failed! Status: [Error (-1) connection error: Unknown connection error (-1) - Total update aborted]), but everything should now use ipa02 or ipa03 for everything.The accounts.fp.o interface is currently pretty much non-functional due to this. Users can't login, those who can login / have an open session can't use search and data reporting of the number of people in groups is also broken.
I created an outage on fedorastatus.org in this commit
github.com/fedora-infra/statusfpo@0795c0dbb4I am not sure whats going on here. :( Everything seems to be running...
I did do a noggin build and scaled it up in case there was a issue there. I can now seem to login ok... but unclear if it's fixed for others or not. So, confirmation from a few folks seeing it would be welcome.
Found out that the ipa02 was not in great state and it was blocking ipa01 install, so I'm reinstalling it now. Right now only ipa03 is working correctly.
Hopefully I will get them to working state soon.
So, current status: I have tried to point everything I can to ipa03, but...
I think if we cant get things back up tomorrow, we should engage more folks... perhaps we could get more help from IPA maintainers? And if it's not back tomorrow after I get in, I'm happy to take the baton and keep working on it...
After we get things all back, we should have a retro on this and see if there's ways we could make things more robust in the case of some servers not being available. We seem to have a lot of hard coded assumptions, would be nice to drop those in favor of just DNS or something to make it easier to switch away. Also, would be nice if noggin logged more about it's errors if possible.
My assumption is that most of the problems are caused how big the LDAP database is as the install problems are mostly timeouts during replication or that the machine is not visible in database yet at the end of installation.
There is also issue with
dogtag keytab, I reported it here.I'm doing my best to get it to working shape again.
So I wasn't able to finish the ipa02 installation today. Here is the current state of things:
ipa-replica-install(I will put instruction bellow what to do with it)I'm trying to resolve the error from LDAP that is happening during CA replication and causing timeout
What I'm doing
[root@ipa02 ~][PROD-RDU3]# ipa-replica-install --setup-ca --admin-password="xxx" --no-host-dns --mkhomedir --no-ntp --unattended --no-ssh --no-sshd --log-file=/var/log/ipainstall.log --domain=fedoraproject.org --server=ipa03.rdu3.fedoraproject.org --dirsrv-config-file=/root/ldif/replica-install.ldif('xxx' should be replaced by IPA admin password)[root@ipa02 ~][PROD-RDU3]# ipa-client-install --uninstall -U[root@ipa02 ~][PROD-RDU3]# ipa-server-install --uninstall -U(If that hangs on directory server unconfiguration runsystemctl kill -s SIGKILL dirsrv@FEDORAPROJECT-ORGin second terminal)[root@ipa03 ~][PROD-RDU3]# ipa-replica-manage del ipa02.rdu3.fedoraproject.org --force[root@ipa03 ~][PROD-RDU3]# ipa server-del ipa02.rdu3.fedoraproject.org --force[root@ipa03 ~][PROD-RDU3]# ldapdelete -x -D "cn=Directory Manager" -W "cn=meToipa02.rdu3.fedoraproject.org,cn=replica,cn=dc\3Dfedoraproject\2Cdc\3Dorg,cn=mapping tree,cn=config"[root@ipa03 ~][PROD-RDU3]# ldapdelete -x -D "cn=Directory Manager" -W "cn=caToipa02.rdu3.fedoraproject.org,cn=replica,cn=o\3Dipaca,cn=mapping tree,cn=config"Logs to check:
/var/log/ipainstall.log/var/log/dirsrv/slapd-FEDORAPROJECT-ORG/errorsSo, I got it to fail again (after an hour).
I tossed this at a clanker and it noted that there may be a tombstone replication also for the CA not just the dc...
But... on cleaning things up, when I get to step 7, it's now giving me:
I see:
so there also does seem to be a ca one that needs clearing? But somehow it doesn't want to clear either of them now. (I also tried a CLEANRUV on the ns one and it gave the same unwilling to perform.
I'm not sure what to do now here... I suppose we could sidestep this a bit and just setup ipa01 (since there's no partial replications to it?). But likely we need advise from ipa folks.
So...
So, lets try cleaning up the ipa02 ones... ok, let me do that.
Ok, did that and now re-running replica install on 02.
Still failed:
and logs on 03:
I've done all the cleanup steps again...
I guess we should consult with ipa folks and see if they can think of anything else to try.
and/or I guess you could do ipa01 and see if it gets anywhere? (but there's some RUV's that need clearing for ipa01)
So ipa01 and ipa02 are now done. Cleaning the CA RUV helped.
There are some replication errors I need to look at.
Closing this as done. Will reopen some smaller ticket for post update tasks.