Code Monkey home page Code Monkey logo

Comments (16)

bocekm avatar bocekm commented on May 28, 2024 1

@pixel-paul, you can, with the following workaround described in https://bugzilla.redhat.com/show_bug.cgi?id=1971042#c1. In a nutshell it requires running sed -i 's|releasever=8.3|releasever=8|' /usr/share/convert2rhel/configs/centos-8-x86_64.cfg before running convert2rhel.
There's a way to go without any workaround - if you don't need the convert2rhel package to be signed by Red Hat, you can already use the unsigned version 0.22 package attached to https://github.com/oamg/convert2rhel/releases/tag/v0.22.

from convert2rhel.

pixel-paul avatar pixel-paul commented on May 28, 2024 1

Thanks @bocekm, that has worked on my test system - conversion successful!

from convert2rhel.

zhukovgreen avatar zhukovgreen commented on May 28, 2024

@deepak-c thank you for reporting this issue. I had a subscribed machine and tried to check if these kmods are present in rhel 8.3 (with rhel-8-baseos and appstream repos only).

[root@c2r-20210421123125 inhibit-if-kmods-is-not-supported]# repoquery -f /lib/modules/4.18.0-240.22.1.el8_3.x86_64/kernel/drivers/gpu/drm/cirrus/cirrus.ko.xz
Updating Subscription Management repositories.
Repository rhel-8-for-x86_64-baseos-rpms is listed more than once in the configuration
Repository rhel-8-for-x86_64-appstream-rpms is listed more than once in the configuration
Last metadata expiration check: 0:07:35 ago on Fri 14 May 2021 07:46:30 AM UTC.
kernel-core-0:4.18.0-240.22.1.el8_3.x86_64

I also tried conversion with some kmods, from your logs and it went well. So I believe the issue is in absence of these kmods in the provided rhel ISO image.

Could you check with the repoquery that these modules are missing indeed

repoquery --disablerepo="*" --enablerepo=InstallMedia-BaseOS  --enablerepo=InstallMedia-AppStream -f /lib/modules/4.18.0-240.22.1.el8_3.x86_64/kernel/drivers/gpu/drm/cirrus/cirrus.ko.xz)

from convert2rhel.

deepak-c avatar deepak-c commented on May 28, 2024

@zhukovgreen Thanks for looking at my reported issue.

Here is the output for the command you had asked for:

# repoquery --disablerepo="*" --enablerepo=InstallMedia-BaseOS  --enablerepo=InstallMedia-AppStream -f /lib/modules/4.18.0-240.22.1.el8_3.x86_64/kernel/drivers/gpu/drm/cirrus/cirrus.ko.xz
Last metadata expiration check: 9:02:37 ago on Fri 14 May 2021 04:42:43 UTC.
# 

Those modules are not part of the mounted RHEL 8.4 beta iso.

from convert2rhel.

zhukovgreen avatar zhukovgreen commented on May 28, 2024

I am not sure how critical would it be to skip this check for your case. However during the next week I'll be working on a feature which will be allowing to skip certain checks. I will keep you updated.

@oamg/convert2rhel what do you think guys? What else can we do in this case?

from convert2rhel.

deepak-c avatar deepak-c commented on May 28, 2024

Apologies but I am no expert to ascertain if these kernel modules can be disabled / uninstalled. Also, looking at the big list of missing kernel modules, I wonder why these modules would be missing in the standard iso image - our installation is a standard CentOS 8 minimal installation with no special configurations.

I understand that the upgrade works well when connecting to the RHSM portal, it works for me as well as I would imagine the subscription management portal is kept up to date with all available packages. However, the issue is when attaching a standard RHEL 8.3 / 8.4 iso as the installation source media for convert2rhel to work with. Our systems are air-gapped with no connection outside possible, so that rules out the options of connecting to the RHSM portal / satellite server to fetch the latest updates.

To workaround the issue, I am trying to find if the latest updates from the RHSM portal can be bundled up as an iso that can further be mounted as a source for the conversion process to leverage upon. Any help or other ideas would be really appreciated here, thanks!

from convert2rhel.

bocekm avatar bocekm commented on May 28, 2024

Hi Deepak, we don't support the option of converting the system using an ISO. We don't even test that. The reason is that the ISO gets outdated quickly and when you update the CentOS Linux system to the latest CentOS Linux available packages, you may be installing newer packages than those available in the ISO. And that would lead to unnecessary package downgrades during the conversion. Yum package downgrade is generally an unsupported and untested package management action. And on top of that, the kernel module check expects the RHEL repos to contain the same or newer kernel release than the currently booted one.

All I can tell is that the kernel modules are available in RHEL repos. What you can do is to have a single RHEL system subscribed to RHSM and then create a mirror of the RHSM-provided RHEL repos to a USB/local web-server/FTP-server using a reposync (details: https://access.redhat.com/solutions/23016). And then provide the repo mirrors to convert2rhel on the airgapped CentOS Linux machines.

BTW, the repoquery command @zhukovgreen suggested should not include the kernel version because we don't know what version is in the ISO. So run this instead:

# repoquery --disablerepo="*" --enablerepo=InstallMedia-BaseOS  --enablerepo=InstallMedia-AppStream -f /lib/modules/*kernel/drivers/gpu/drm/cirrus/cirrus.ko.xz

EDIT: Actually your first post contains the kernel release available in the ISO (4.18.0-293.el8.x86_64), so the repoquery command should have been repoquery --disablerepo="*" --enablerepo=InstallMedia-BaseOS --enablerepo=InstallMedia-AppStream -f /lib/modules/4.18.0-293.el8.x86_64/kernel/drivers/gpu/drm/cirrus/cirrus.ko.xz. But anyway, the release-agnostic command is better as you can use it for other ISOs as well.

from convert2rhel.

bocekm avatar bocekm commented on May 28, 2024

Just to give you the idea about the kernel modules being available in RHEL:

$ repoquery --releasever=8 --setopt=module_platform_id=platform:el8 --disablerepo "*" --repofrompath baseos,<URL of a RHEL 8.3 repo mirror containing the latest package updates> -f /lib/modules/*kernel/lib/livepatch/test_klp_state.ko.xz
Added baseos repo from http://rhsm-pulp.corp.redhat.com/content/dist/rhel8/8.4/x86_64/baseos/os/
Last metadata expiration check: 19:37:30 ago on Mon 17 May 2021 11:20:17 PM CEST.
kernel-core-0:4.18.0-240.1.1.el8_3.x86_64
kernel-core-0:4.18.0-240.10.1.el8_3.x86_64
kernel-core-0:4.18.0-240.15.1.el8_3.x86_64
kernel-core-0:4.18.0-240.22.1.el8_3.x86_64
kernel-core-0:4.18.0-240.8.1.el8_3.x86_64
kernel-core-0:4.18.0-240.el8.x86_64
kernel-debug-core-0:4.18.0-240.1.1.el8_3.x86_64
kernel-debug-core-0:4.18.0-240.10.1.el8_3.x86_64
kernel-debug-core-0:4.18.0-240.15.1.el8_3.x86_64
kernel-debug-core-0:4.18.0-240.22.1.el8_3.x86_64
kernel-debug-core-0:4.18.0-240.8.1.el8_3.x86_64
kernel-debug-core-0:4.18.0-240.el8.x86_64

from convert2rhel.

tchung1970 avatar tchung1970 commented on May 28, 2024

I confirm this issue exist on "production" RHEL 8.4 which was released today

[05/18/2021 14:54:13] TASK - [Convert: Final system checks before main conversion] **************
4.18.0-240.22.1.el8_3.x86_64
4.18.0-240.22.1.el8_3.x86_64

**CRITICAL - The following kernel modules are not supported in RHEL:
/lib/modules/4.18.0-240.22.1.el8_3.x86_64/kernel/drivers/net/wireless/realtek/rtw88/rtw88.ko.xz
/lib/modules/4.18.0-240.22.1.el8_3.x86_64/kernel/drivers/dax/dax_hmem.ko.xz
/lib/modules/4.18.0-240.22.1.el8_3.x86_64/kernel/arch/x86/events/intel/intel-rapl-perf.ko.xz
/lib/modules/4.18.0-240.22.1.el8_3.x86_64/kernel/drivers/iommu/amd_iommu_v2.ko.xz
/lib/modules/4.18.0-240.22.1.el8_3.x86_64/kernel/drivers/firmware/dcdbas.ko.xz
/lib/modules/4.18.0-240.22.1.el8_3.x86_64/kernel/drivers/net/wireless/realtek/rtw88/rtwpci.ko.xz
/lib/modules/4.18.0-240.22.1.el8_3.x86_64/kernel/lib/livepatch/test_klp_state.ko.xz
/lib/modules/4.18.0-240.22.1.el8_3.x86_64/kernel/drivers/acpi/dptf/dptf_power.ko.xz
/lib/modules/4.18.0-240.22.1.el8_3.x86_64/kernel/lib/livepatch/test_klp_state2.ko.xz
/lib/modules/4.18.0-240.22.1.el8_3.x86_64/kernel/drivers/pinctrl/intel/pinctrl-intel.ko.xz
/lib/modules/4.18.0-240.22.1.el8_3.x86_64/kernel/lib/livepatch/test_klp_state3.ko.xz
/lib/modules/4.18.0-240.22.1.el8_3.x86_64/kernel/drivers/gpu/drm/cirrus/cirrus.ko.xz
Uninstall or disable them and run convert2rhel again to continue with the conversion.**
WARNING - Abnormal exit! Performing rollback ...

[05/18/2021 14:54:28] TASK - [Rollback: RHSM-related actions] ***********************************
Unregistering the system.
System unregistered successfully.

from convert2rhel.

bocekm avatar bocekm commented on May 28, 2024

@deepak-c, @tchung1970, indeed the conversion of CentOS/Oracle Linux 8 is not possible at this moment for the reason that the latest CentOS/Oracle Linux 8.3 kernel differs from the RHEL 8.4 kernel.
Please wait till CentOS/Oracle Linux 8.4 is released and then update to it. The conversion won't get stopped on the kernel modules after that.

from convert2rhel.

deepak-c avatar deepak-c commented on May 28, 2024

Thanks @bocekm , I tried doing the conversion from CentOS 8.3 to RHEL 8.4 and the conversion still fails with the list of missing kernel modules. Mounting the huge repository through removable media is not feasible due to the unique way our systems are set up, so inline conversion script with a minimal set of libraries is the only possible way to update our systems as the conversion needs to be run remotely.

I am currently working on a script that will mimic the commands, the conversion script is using. The script will go along with a set of libraries that I have already captured using the yum downloadonly commands, so I definitely know what set of libraries we would need for a successful system conversion. This will work for us to achieve the conversion since all our systems are identical installations.

Appreciate all the help you guys have provided, thanks so much !

from convert2rhel.

bocekm avatar bocekm commented on May 28, 2024

@deepak-c, we found out that the conversion from CentOS Linux 8.3 to RHEL 8.4 is not possible at this moment. What's still possible is a conversion to RHEL 8.3. We are updating our documentation to mention that https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html-single/converting_from_an_rpm-based_linux_distribution_to_rhel/index.

You mentioned your systems are air-gapped and no removable media are feasible. I hope that the systems can connect at least to other systems within the internal network. Then what's left is either setting up your own Red Hat Satellite instance to which your CentOS Linux systems would connect over the internal network. Or set up a simple nginx/apache web-server that would be serving RHEL 8.3 repos.

Note though, as I mentioned earlier, that the RHEL 8.3 repos need to contain the latest package updates for RHEL 8.3. The RHEL 8.3 ISO is 6 months old and many package updates have been released since then.

from convert2rhel.

deepak-c avatar deepak-c commented on May 28, 2024

Thanks for the explanation, I understand setting up a satellite server is an option but unfortunately, it won't work for us as our RHEL instances are run by various customers worldwide who often don't have access to any internet outside. They are able to fetch software updates from our update server which includes the OS security updates and application updates which will then be installed through our pre-defined software update process. It is a very tightly controlled process here hence why it is a challenge to deviate any further from this process to achieve the conversion by any other process.

I am not sure waiting for CentOS 8.4 is an option as there is no definite timeframe for that and we are running on a tight timelines here to deliver this conversion.

from convert2rhel.

NISHCHITHA-N avatar NISHCHITHA-N commented on May 28, 2024

https://bugzilla.redhat.com/show_bug.cgi?id=1962193

Here it is.

from convert2rhel.

pixel-paul avatar pixel-paul commented on May 28, 2024

Hi,

So if you're on CentOS 8.4, it is currently not possible to go to RHEL 8.4?

Thanks,

Paul

from convert2rhel.

bocekm avatar bocekm commented on May 28, 2024

The original issue is about a failure when using a RHEL ISO for the conversion, which is not supported for various reasons as I stated in #277 (comment).

Then the other comments revolved around not being able to convert to RHEL 8.4. It is now officially possible with the version convert2rhel-0.22-1.el8.noarch available from today at https://ftp.redhat.com/redhat/convert2rhel/8/os/. All the steps to do that are described at https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html-single/converting_from_an_rpm-based_linux_distribution_to_rhel/index.

from convert2rhel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.