Skip to content

Issue with conversion after ssh session Dropped. #4

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

Closed
tpopchock opened this issue Dec 11, 2020 · 8 comments
Closed

Issue with conversion after ssh session Dropped. #4

tpopchock opened this issue Dec 11, 2020 · 8 comments

Comments

@tpopchock
Copy link

Hello,

I made a mistake and didn't kick off an additional screen and lost my ssh session right after I kicked off the centos2ol.sh script. I was on CentOS 7.7 and now my cat /etc/redhat-release shows Red Hat Enterprise Linux Server release 7.9 (Maipo). I am providing the following information per support's request.

[root@hermes yum.repos.d]# rpm -qa | grep release
redhat-release-server-7.9-3.0.1.el7.x86_64
elrepo-release-7.0-5.el7.elrepo.noarch
oraclelinux-release-7.9-1.0.9.el7.x86_64
epel-release-7-12.noarch
oraclelinux-release-el7-1.0-13.1.el7.x86_64

[root@hermes yum.repos.d]# cat /etc/os-release
NAME="Oracle Linux Server"
VERSION="7.9"
ID="ol"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.9"
PRETTY_NAME="Oracle Linux Server 7.9"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:oracle:linux:7:9:server"
HOME_URL="https://linux.oracle.com/"
BUG_REPORT_URL="https://bugzilla.oracle.com/"

ORACLE_BUGZILLA_PRODUCT="Oracle Linux 7"
ORACLE_BUGZILLA_PRODUCT_VERSION=7.9
ORACLE_SUPPORT_PRODUCT="Oracle Linux"
ORACLE_SUPPORT_PRODUCT_VERSION=7.9

a uname -a command gives me Linux hermes.localdomain 5.0.9-1.el7.elrepo.x86_64 #1 SMP Sat Apr 20 09:03:57 EDT 2019 x86_64 x86_64 x86_64 GNU/Linux

I don't seem to have any valid .repo files they've all been appended .disabled The switch-to-oraclelinux.repo file appears to be webcode and not a repo file.

Thank you for your help.

@Djelibeybi
Copy link
Member

Djelibeybi commented Dec 11, 2020

The system has switched to Oracle Linux but hasn't completed the distro-sync.

To verify, can you please check the output from rpm -qi centos-logos? If it returns package centos-logos is not installed then run the following:

$ cd /etc/yum.repos.d/
$ sudo curl -o switch-to-oraclelinux.repo https://yum.oracle.com/public-yum-ol7.repo

Check the /etc/yum.repos.d/switch-to-oraclelinux.repo file here. If it contains HTML again, please post the HTML so we can try and work out where it's coming from. Though, I would suggest checking it first incase it's coming from a corporate proxy.

It should look like https://yum.oracle.com/public-yum-ol7.repo. If it does, continue:

$ sudo yum distro-sync
$ sudo rm -f /etc/yum.repos.d/switch-to-oraclelinux.repo

Your system is now Oracle Linux. I suggest doing the following again, just to make sure the system is definitely bootable:

$ sudo yum reinstall kernel-uek

I just want to be double sure and trigger the post-install scripts to update the boot loader/UEFI config.

@tpopchock
Copy link
Author

tpopchock commented Dec 11, 2020 via email

@Djelibeybi
Copy link
Member

You have kernels installed from elrepo which makes this box not-quite-CentOS. I'll add a note to the Before you begin section that documents the need to uninstall any kernel from centosplus or elrepo or any other repo that isn't CentOS-Base.

@Djelibeybi
Copy link
Member

To unravel this, you'll probably need to run yum remove kmod-kvdo libreport* first. Then yum remove kernel-ml*

@tpopchock
Copy link
Author

Ahh I see yes I had to install an alternate kernel to fix some stability issues with the system crashing due to the AMD Ryzen chip. Thank you for the heads up I'm sure this will fix the issue.

@tpopchock
Copy link
Author

I can confirm that yum remove kmod-kvdo libreport* and yum remove kernel-ml* resolved the issues with the dependencies and I was able successfully complete a yum distro-sync. Thanks again for the help, it is very appreciated!

@Djelibeybi
Copy link
Member

You're welcome. I'll take this moment to let you know that the UEK5 and UEK6 support AMD Ryzen and AMD EPYC chips just fine because they power our Flexible E3 Shapes on Oracle Cloud Infrastructure.

Based on your last update, I'm going to close this issue. Feel free to open a new one if you have any further questions.

@Djelibeybi
Copy link
Member

Oh, and I've created #5 to make the docs more explicit about the need to remove non-CentOS kernels before switching.

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