Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-19768

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''

    XMLWordPrintable

Details

    • No
    • False
    • Hide

      None

      Show
      None

    Description

      Description of problem:

      When using SecureBoot 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'

      Version-Release number of selected component (if applicable):

      4.14.0-rc.2

      How reproducible:

      100%

      Steps to Reproduce:

      1. Deploy SNO with SecureBoot enabled
      2. Check tuned pod logs
      

      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'
      

      Expected results:

      No errors

      Additional info:

       

      Attachments

        Issue Links

          Activity

            People

              team-nto Team NTO
              mcornea@redhat.com Marius Cornea
              Liquan Cui Liquan Cui
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: