Closed kedare closed 7 months ago
I experienced the same frustration, except I manually removed those repositories before re-running the script, and I'm pretty sure that broke things somewhat spectacularly. Somewhat recovered, but ya - the certificates for RHEL are definitely not removed at the right point.
I think this probably relates to issue #160 and pull #167
Hello,
Thank you for reporting the issue.
A. In general, the problem does not exist if Red Hat Subscription Management is working as expected.
The almalinux-deploy
utility does not remove anything related to RHSM. It just disables product-id
, subscription-manager
and upload-profile
plugins only.
# grep -r enabled= /etc/dnf/plugins/*
/etc/dnf/plugins/debuginfo-install.conf:enabled=1
/etc/dnf/plugins/product-id.conf:enabled=0
/etc/dnf/plugins/subscription-manager.conf:enabled=0
/etc/dnf/plugins/upload-profile.conf:enabled=0
B. The issue can be reproduced if the following conditions are meat:
/etc/rhsm/ca/redhat-uep.pem
is corrupted or missed.The first is quite possible, as there is a slight delay in the releases of AlmaLinux kernel corresponding to the latest version from Red Hat. When the second is a kind of system misconfiguration. Please see the log below, with a case the certificate file is manually removed:
Run dnf distro-sync -y OK
Restoring of alternatives is done OK
Generating grub configuration file ...
done
Last metadata expiration check: 0:03:00 ago on Thu 28 Dec 2023 11:38:32 AM EET.
Dependencies resolved.
================================================================================
Package Arch Version Repository Size
================================================================================
Reinstalling:
kernel-core x86_64 4.18.0-513.9.1.el8_9 rhel-8-for-x86_64-baseos-rpms 43 M
Transaction Summary
================================================================================
Total download size: 43 M
Installed size: 71 M
Downloading Packages:
[MIRROR] kernel-core-4.18.0-513.9.1.el8_9.x86_64.rpm: Curl error (77): Problem with the SSL CA cert (path? access rights?) for https://cdn.redhat.com/content/dist/rhel8/8/x86_64/baseos/os/Packages/k/kernel-core-4.18.0-513.9.1.el8_9.x86_64.rpm [error setting certificate verify locations:
CAfile: /etc/rhsm/ca/redhat-uep.pem
CApath: none]
[FAILED] kernel-core-4.18.0-513.9.1.el8_9.x86_64.rpm: Curl error (77): Problem with the SSL CA cert (path? access rights?) for https://cdn.redhat.com/content/dist/rhel8/8/x86_64/baseos/os/Packages/k/kernel-core-4.18.0-513.9.1.el8_9.x86_64.rpm [error setting certificate verify locations:
CAfile: /etc/rhsm/ca/redhat-uep.pem
CApath: none]
...
# subscription-manager list
System certificates corrupted. Please reregister.
# rpm -qV subscription-manager-rhsm-certificates
missing /etc/rhsm/ca/redhat-uep.pem
# ls -la /etc/rhsm/ca/redhat-uep.pem
ls: cannot access '/etc/rhsm/ca/redhat-uep.pem': No such file or directory
The reason of the issue seems to be missed or corrupted RHSM certificate file /etc/rhsm/ca/redhat-uep.pem
.
So, the point here is to check RHSM works or disable it before deployment.
Hello
I am convertying a personal NAS from RHEL 8 to AlmaLinux 8 using this tool.
During the initial conversion, a step would fail, likely because the subscription manager and the subscription files have been removed too early in the process:
My workaround was to disable those repositories and then rerun the script to be able to continue: