Description of problem: I configured (badly) my repositories for RHEL 7, but the convert2rhel script did not detect this mis-configuration. The script started, removed my kernel packages and finally stopped saying it was not possible to download rhel kernel packages. Version-Release number of selected component (if applicable): [root@tpcdrp02s ~]# rpm -q convert2rhel convert2rhel-0.9-1.el7.noarch How reproducible: Steps to Reproduce: 1. Original server is Centos 7, updated to the last version. 2. Configure bad repositories for RHEL 3. Launch procedure : convert2rhel --disable-submgr Actual results: Kernel (centos) packages are removed. No one RHEL kernel packages is installed. Expected results: Script should stop at the very beginning, checking this issue before changing something on the server. Additional info:
Hi Jean, thanks for the report. The convert2rhel first tries to install the RHEL kernel and if successful remove the CentOS kernel. But I can see now there's not enough safeguards. In your case, since the options --enablerepo and --disablerepo weren't used, the convert2rhel used all the repos available/enabled on the system, including CentOS repos. So the installation of RHEL kernel most probably ended with "Nothing to do". There are two things to improve: - verify the kernel that convert2rhel tries to install is really a RHEL kernel (GPG key fingerprint of the package matches the RHEL fingerprint) - to require to pass at least one --enablerepo and if no --disablerepo is passed, assume --disablerepo="*"
Resolved in upstream: - verifying the installed kernel fingerprint: https://github.com/oamg/convert2rhel/pull/45 - requiring --enablerepo with --disable-submgr: https://github.com/oamg/convert2rhel/pull/58
FEDORA-EPEL-2020-d0a4bcf7f1 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-d0a4bcf7f1
FEDORA-EPEL-2020-baa69bfeef has been pushed to the Fedora EPEL 7 testing repository. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-baa69bfeef See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-EPEL-2020-d0a4bcf7f1 has been pushed to the Fedora EPEL 6 testing repository. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-d0a4bcf7f1 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-EPEL-2020-baa69bfeef has been pushed to the Fedora EPEL 7 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-EPEL-2020-d0a4bcf7f1 has been pushed to the Fedora EPEL 6 stable repository. If problem still persists, please make note of it in this bug report.