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

OCP 4.18.17+ Tuned profile is marked as degraded on reboot

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • 4.18.z
    • Node Tuning Operator
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Important
    • None
    • None
    • None
    • None
    • None
    • Customer Facing
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      When an SR-IOV policy defining DPDK devices is created on a node running OCP 4.18.17, the NTO marks the policy as degraded after a reboot. There is a traceback seen in the Tuned pod.

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

      OCP 4.18.17
      ocp-tuned v4.18.0-202506020036.p0.gc004ea7.assembly.stream.el9-0-ge19b57
      f-dirty

      How reproducible:

         Always

      Steps to Reproduce:

          1. Set up node with Performance profile, Tuned resource defining devices_udev_regex for the [net] plugin, and SR-IOV operator with several SriovNetworkNodePolicies creating DPDK VFs.
          2. Reboot
          

      Actual results:

      NAME                            TUNED                   APPLIED   DEGRADED   MESSAGE                  AGE
      nodename   tuned-name   True      True       TuneD profile applied.   22m
      
      Tuned pod has the following traceback:
      
      2025-06-11T14:38:11.586533655Z 2025-06-11 14:38:11,586 ERROR    tuned.hardware.inventory: Exception occured in event handler of '<tuned.plugins.plugin_net.NetTuningPlugin object at 0x7f9659fea4c0>'.
      2025-06-11T14:38:11.589097019Z 2025-06-11 14:38:11,586 ERROR    tuned.hardware.inventory: 'NoneType' object has no attribute 'items'
      2025-06-11T14:38:11.589097019Z Traceback (most recent call last):
      2025-06-11T14:38:11.589097019Z   File "/usr/lib/python3.9/site-packages/tuned/hardware/device_matcher_udev.py", line 17, in match
      2025-06-11T14:38:11.589097019Z     items = device.properties.items()
      2025-06-11T14:38:11.589097019Z AttributeError: 'NoneType' object has no attribute 'properties'
      2025-06-11T14:38:11.589097019Z 
      2025-06-11T14:38:11.589097019Z During handling of the above exception, another exception occurred:
      2025-06-11T14:38:11.589097019Z 
      2025-06-11T14:38:11.589097019Z Traceback (most recent call last):
      2025-06-11T14:38:11.589136185Z   File "/usr/lib/python3.9/site-packages/tuned/hardware/inventory.py", line 74, in _handle_udev_event
      2025-06-11T14:38:11.589136185Z     callback(event, device)
      2025-06-11T14:38:11.589136185Z   File "/usr/lib/python3.9/site-packages/tuned/plugins/plugin_net.py", line 204, in _hardware_events_callback
      2025-06-11T14:38:11.589136185Z     super(NetTuningPlugin, self)._hardware_events_callback(event, device)
      2025-06-11T14:38:11.589136185Z   File "/usr/lib/python3.9/site-packages/tuned/plugins/hotplug.py", line 31, in _hardware_events_callback
      2025-06-11T14:38:11.589136185Z     self._add_device(device.sys_name)
      2025-06-11T14:38:11.589136185Z   File "/usr/lib/python3.9/site-packages/tuned/plugins/hotplug.py", line 53, in _add_device
      2025-06-11T14:38:11.589136185Z     if len(self._get_matching_devices(instance, [device_name])) == 1:
      2025-06-11T14:38:11.589136185Z   File "/usr/lib/python3.9/site-packages/tuned/plugins/base.py", line 164, in _get_matching_devices
      2025-06-11T14:38:11.589136185Z     udev_devices = self._device_matcher_udev.match_list(instance.devices_udev_regex, udev_devices)
      2025-06-11T14:38:11.589136185Z   File "/usr/lib/python3.9/site-packages/tuned/hardware/device_matcher.py", line 51, in match_list
      2025-06-11T14:38:11.589136185Z     if self.match(rules, device):
      2025-06-11T14:38:11.589136185Z   File "/usr/lib/python3.9/site-packages/tuned/hardware/device_matcher_udev.py", line 19, in match
      2025-06-11T14:38:11.589136185Z     items = device.items()
      2025-06-11T14:38:11.589136185Z AttributeError: 'NoneType' object has no attribute 'items'
      

      Expected results:

       Profile not degraded    

      Additional info:

          

              jmencak Jiri Mencak
              jpena@redhat.com Javier Pena
              None
              None
              Liquan Cui Liquan Cui
              None
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: