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

Errors reported by tuned when using SecureBoot: Writing to file '/sys/kernel/debug/sched/migration_cost_ns' error: '[Errno 1] Operation not permitted: '/sys/kernel/debug/sched/migration_cost_ns''

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • tuned
    • None
    • None
    • Moderate
    • rhel-sst-cs-net-perf-services
    • ssg_core_services
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None

      What were you trying to do that didn't work?

      Looking at the tuned pod logs on an OpenShift cluster with SecureBoot enabled tuned reports the following error as debugfs access is restricted:

       

      tuned.utils.commands: Writing to file '/sys/kernel/debug/sched/migration_cost_ns' error: '[Errno 1] Operation not permitted: '/sys/kernel/debug/sched/migration_cost_ns''
      tuned.plugins.plugin_scheduler: Error writing value '5000000' to 'migration_cost_ns'

       

      Please provide the package NVR for which bug is seen:

      tuned-2.20.0-1.3.20230614git850368d2.el9fdp.noarch

      OCP 4.14.0-rc.2

      How reproducible:

      100%

      Steps to reproduce

      1.  Deploy single node OpenShift with SecureBoot enabled
      2. Check tuned pod logs

      Expected results

      No errors

      Actual results

      2023-09-26 08:14:40,129 ERROR    tuned.utils.commands: Error when reading file '/sys/kernel/debug/sched/migration_cost_ns': '[Errno 1] Operation not permitted: '/sys/kernel/debug/sched/migration_cost_ns''
      2023-09-26 08:14:40,130 ERROR    tuned.plugins.plugin_scheduler: Error reading 'migration_cost_ns'
      2023-09-26 08:14:40,130 ERROR    tuned.plugins.plugin_scheduler: This may not work with Secure Boot or kernel_lockdown (this hint is logged only once)
      2023-09-26 08:14:40,130 ERROR    tuned.utils.commands: Writing to file '/sys/kernel/debug/sched/migration_cost_ns' error: '[Errno 1] Operation not permitted: '/sys/kernel/debug/sched/migration_cost_ns''
      2023-09-26 08:14:40,130 ERROR    tuned.plugins.plugin_scheduler: Error writing value '5000000' to 'migration_cost_ns' 

              jskarvad Jaroslav Skarvada
              mcornea@redhat.com Marius Cornea
              Jaroslav Skarvada Jaroslav Skarvada
              Robin Hack Robin Hack
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: