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

Failed to set sysctl variable with '/' in the name

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • rhel-9.4
    • None
    • tuned
    • tuned-2.22.0-0.1.rc1.el9
    • None
    • Important
    • Patch, Upstream
    • rhel-sst-cs-net-perf-services
    • ssg_core_services
    • 26
    • None
    • Hide

      10/30: Yellow. No response from RHEL eng in Jira since bug was opened. No forecast available at this time.

      10/02: No new updates - R ed for Oct 5.

      Show
      10/30: Yellow. No response from RHEL eng in Jira since bug was opened. No forecast available at this time. 10/02: No new updates - R ed for Oct 5.
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • Known Issue
    • Hide
      * Defining a `sysctl` value for a setting with slash in the name, for example for bond devices, in the `profile` field of a `Tuned` resource might not work. Values with a slash in the `sysctl` option name do not map correctly to the `/proc` filesystem. As a workaround, create a `MachineConfig` resource that places a configuration file with the required values to the `/etc/sysctl.d` node directory.(link:https://issues.redhat.com/browse/RHEL-3707[*RHEL-3707*]
      Show
      * Defining a `sysctl` value for a setting with slash in the name, for example for bond devices, in the `profile` field of a `Tuned` resource might not work. Values with a slash in the `sysctl` option name do not map correctly to the `/proc` filesystem. As a workaround, create a `MachineConfig` resource that places a configuration file with the required values to the `/etc/sysctl.d` node directory.(link: https://issues.redhat.com/browse/RHEL-3707 [* RHEL-3707 *]
    • Done
    • None

      Setting sysctl variable with / in the name fails with tuned profile:

      [sysctl]
      net.ipv4.conf.bond0/355.forwarding=1
      

      Results in next error:

      2023-09-12 07:41:30,539 ERROR    tuned.plugins.plugin_sysctl: Failed to read sysctl parameter 'net.ipv4.conf.bond0/355.forwarding', the parameter does not exist
      2023-09-12 07:41:30,539 ERROR    tuned.plugins.plugin_sysctl: sysctl option net.ipv4.conf.bond0/355.forwarding will not be set, failed to read the original value.
      2023-09-12 07:41:30,539 INFO     tuned.plugins.plugin_sysctl: reapplying system sysctl
       

      The variable itself exists:

      sysctl net.ipv4.conf.bond0/355.forwarding
      net.ipv4.conf.bond0/355.forwarding = 0
      

      This happens on Red Hat Enterprise Linux CoreOS release 4.14
      Tuned packages from within tuned pod:

      tuned-2.20.0-1.3.20230614git850368d2.el9fdp.noarch
      tuned-profiles-realtime-2.20.0-1.3.20230614git850368d2.el9fdp.noarch
      tuned-profiles-nfv-host-2.20.0-1.3.20230614git850368d2.el9fdp.noarch
      tuned-profiles-nfv-guest-2.20.0-1.3.20230614git850368d2.el9fdp.noarch
      tuned-profiles-nfv-2.20.0-1.3.20230614git850368d2.el9fdp.noarch
      tuned-profiles-mssql-2.20.0-1.3.20230614git850368d2.el9fdp.noarch
      tuned-profiles-spectrumscale-2.20.0-1.3.20230614git850368d2.el9fdp.noarch
      tuned-profiles-oracle-2.20.0-1.3.20230614git850368d2.el9fdp.noarch
      tuned-profiles-sap-2.20.0-1.3.20230614git850368d2.el9fdp.noarch
      tuned-profiles-sap-hana-2.20.0-1.3.20230614git850368d2.el9fdp.noarch
      tuned-profiles-openshift-2.20.0-1.3.20230614git850368d2.el9fdp.noarch
      tuned-profiles-cpu-partitioning-2.20.0-1.3.20230614git850368d2.el9fdp.noarch
      tuned-profiles-atomic-2.20.0-1.3.20230614git850368d2.el9fdp.noarch
      tuned-profiles-postgresql-2.20.0-1.3.20230614git850368d2.el9fdp.noarch
      

              jskarvad Jaroslav Skarvada
              yprokule@redhat.com Yurii Prokulevych
              Jaroslav Skarvada Jaroslav Skarvada
              Robin Hack Robin Hack
              Votes:
              0 Vote for this issue
              Watchers:
              13 Start watching this issue

                Created:
                Updated:
                Resolved: