Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conversion from centos 7 to RH 7 fails [HTTPS Error 404 ] #1430

Open
snash4 opened this issue Nov 16, 2024 · 1 comment
Open

conversion from centos 7 to RH 7 fails [HTTPS Error 404 ] #1430

snash4 opened this issue Nov 16, 2024 · 1 comment

Comments

@snash4
Copy link

snash4 commented Nov 16, 2024

Hi,
I am trying to convert my cento7 to RH 7 using convert2rhel tool.
It fails to find mirror:
https://cdn.redhat.com/content/dist/rhel/server/7/8.1/x86_64/os/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found

fails at running this command:

[2024-11-15T16:24:57+0000] DEBUG - Calling command 'yum makecache --releasever=7Server --setopt=*.skip_if_unavailable=False --disablerepo=* --enablerepo rhel-7-server-rpms

ERROR - (ERROR) ENSURE_KERNEL_MODULES_COMPATIBILITY::PROBLEM_WITH_PACKAGE_REPO - Could not download package metadata
Description: There was an error retrieving the package metadata to verify kernel modules are available in RHEL.
Diagnosis: We were unable to download the repository metadata for (rhel-7-server-rpms) to determine packages containing kernelmodules. Can be caused by not enough disk space in /var/cache or too little memory. The yum output below may have a clue fo
r what went wrong in this case:`

Loaded plugins: auto-update-debuginfo, fastestmirror, langpacks, product-id, : search-disabled-repos, subscription-manager, versionlock Loading mirror speeds from cached hostfile https://cdn.redhat.com/content/dist/rhel/server/7/8.1/x86_64/os/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found

@bocekm
Copy link
Member

bocekm commented Dec 20, 2024

Hi @snash4, it looks like the 8.1 was for some reason hardcoded in the baseurl of the rhel-7-server-rpms repoid on your system, before you executed convert2rhel. So it seems you have pre-registered the system, isn't it so?

I can imagine you could have got to the situation by running the following command on the CentOS 7 machine that would "break" the URL of the repository:
subscription-manager release --set 8.1
If you did that, you can undo it by subscription-manager release --unset.

If not, you can verify whether my assumption of a hardcoded releasever is correct by looking into /etc/yum.repos.d/redhat.repo. Under [rhel-7-server-rpms] you should have $releasever in:

baseurl = https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/os

I advise you creating a support case at https://access.redhat.com/support to get a timely response. We have great support folks who know the conversion process and can help you further troubleshoot the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants