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

CentOS repos not properly restored after aborted conversion #340

Closed
andersensam opened this issue Aug 30, 2021 · 2 comments
Closed

CentOS repos not properly restored after aborted conversion #340

andersensam opened this issue Aug 30, 2021 · 2 comments

Comments

@andersensam
Copy link

After an abort in the convert2rhel process, CentOS yum repos are not properly re-installed. It seems that $releasever is not properly being parsed.

When running yum repolist all on a broken system the following will appear:

base/$releasever/x86_64 CentOS-$releasever - Base
...
cr/$releasever/x86_64 CentOS-$releasever - cr

Where on a working system yum repolist all produces the following:

base/7/x86_64 CentOS-7 - Base
...
cr/7/x86_64 CentOS-7 - cr

This leaves the system in an unusable state.

@abadger
Copy link
Member

abadger commented Sep 16, 2021

I'm just a fellow user, not a dev but here's a potential troubleshooting step: is there a centos-release package installed on the broken system? If there isn't, if you install one manually from http://mirror.centos.org/centos/7/os/x86_64/Packages/ do things then work?

@bocekm
Copy link
Member

bocekm commented Sep 22, 2021

Thanks for the report, @andersensam, and sorry for keeping you waiting.
@abadger has a good question about the centos-release package.

Do you happen to have the /var/log/convert2rhel/convert2rhel.log file from the system where this happened? I would not be surprised to see "Couldn't download the centos-release package using yumdownloader."

The reasons causing the issue:

  • The system packages are not up-to-date and the CentOS Linux repos don't contain older versions of packages. For example, I'm on CentOS Linux 8.3 but 8.4 is already available and the CentOS Linux repos contain only 8.4 packages, so when Convert2RHEL tries to download packages of version present in 8.3, it fails.
  • Or, the system does not have the original vendor repos enabled.

Currently, when that happens, the conversion continues with a displayed warning in the terminal but nothing else. In case of a rollback, the rollback is incomplete and leaves the system in a broken state.

We plan to halt the conversion when this happens (#358).

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

4 participants