Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-6871

Tuned cpu-partitioning profile fails on RT kernel when kernel-rt-kvm RPM is not installed

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • rhel-8.6.0
    • tuned
    • None
    • Low
    • rhel-net-perf
    • ssg_core_services
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • If docs needed, set a value
    • None
    • 57,005

      Description of problem:

      When RHEL 8.6 is installed and then the RT kernel is installed using the yum method, the kernel-rt-kvm RPM is not installed by default. See: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux_for_real_time/8/html-single/installing_rhel_8_for_real_time/index#proc_installing-red-hat-enterprise-linux-for-real-time-using-yum_assembly_installing-rhel-for-real-time

      If tuned is then used to apply the cpu-partitioning profile, there is a silent failure with the following errors (in /var/log/tuned/tuned.log):

      2022-12-15 11:13:30,086 INFO tuned.plugins.plugin_script: calling script '/usr/lib/tuned/cpu-partitioning/script.sh' with arguments '['start']'
      2022-12-15 11:13:30,132 ERROR tuned.plugins.plugin_script: script '/usr/lib/tuned/cpu-partitioning/script.sh' error output: 'modinfo: ERROR: Module kvm not found.
      modinfo: ERROR: Module kvm not found.
      modinfo: ERROR: Module kvm_intel not found.'

      Note that this is a silent failure - it looks like the tuned profile was applied successfully, but the /usr/lib/tuned/cpu-partitioning/script.sh exits early and doesn't complete.

      Version-Release number of selected component (if applicable):
      tuned-profiles-cpu-partitioning-2.19.0-1.1.20221013git12fa4d58.el8fdp.noarch

      How reproducible: Always

      Steps to Reproduce:
      1. Install RHEL 8.6
      2. Install RT kernel
      3. Apply tuned cpu-partitioning profile

      Actual results:

      The cpu-partitioning profile is not applied properly. The only indication of failure is in the tuned logs.

      Expected results:

      The cpu-partitioning profile is applied properly.

      Additional info:

      The workaround is to enable the rhel-8-for-x86_64-nfv-rpms repo and install the kernel-rt-kvm RPM. I'm not sure if that would be available to all users?

      Also, I don't think this happened in RHEL 8.5 (but I'm not 100% sure about that).

              jskarvad Jaroslav Škarvada
              bwensley@redhat.com Bart Wensley
              Jaroslav Škarvada Jaroslav Škarvada
              Robin Hack Robin Hack
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: