RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 707079 - tuned crashes due to nic bonding
Summary: tuned crashes due to nic bonding
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: tuned
Version: 6.1
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Jan Vcelak
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-23 22:40 UTC by Troels Arvin
Modified: 2018-11-14 11:50 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Previously, using NIC bonding could have led to an unexpected termination of "tuned". With this update, the network device type determination has been fixed by handling more error conditions so that the aforementioned bug no longer occurs.
Clone Of:
Environment:
Last Closed: 2011-08-18 06:43:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:1176 0 normal SHIPPED_LIVE tuned bug fix update 2011-08-18 06:42:53 UTC

Description Troels Arvin 2011-05-23 22:40:44 UTC
Description of problem:
tuned cannot start; seems to be related to NIC bonding

Version-Release number of selected component (if applicable):
tuned-0.2.19-4.el6.noarch

How reproducible:
Every time

Steps to Reproduce:
1. /sbin/service tuned start
2. /sbin/service tuned status
  
Actual results:
"tuned dead but subsys locked"

Expected results:
Should see that tuned is running.

Additional info:
When trying to start tuned manually:
[root@hostname net]# /usr/sbin/tuned -c /etc/tuned.conf
Traceback (most recent call last):
  File "/usr/sbin/tuned", line 103, in <module>
    tuned.init(TUNEDDIR, cfgfile, debug = debug)
  File "/usr/share/tuned/tuned.py", line 82, in init
    self.__initplugins__(path, "monitorplugins", self.mp)
  File "/usr/share/tuned/tuned.py", line 43, in __initplugins__
    exec _cmd
  File "<string>", line 1, in <module>
  File "/usr/share/tuned/monitorplugins/net.py", line 135, in <module>
    _plugin = NetMonitor()
  File "/usr/share/tuned/monitorplugins/net.py", line 33, in __init__
    tunable = self._tunable_devices()
  File "/usr/share/tuned/monitorplugins/net.py", line 44, in _tunable_devices
    tunable = filter(self._device_is_tunable, devices)
  File "/usr/share/tuned/monitorplugins/net.py", line 48, in _device_is_tunable
    if self._device_type(name) in "virtual":
  File "/usr/share/tuned/monitorplugins/net.py", line 56, in _device_type
    path = os.path.join(os.path.dirname(path), os.readlink(path))
OSError: [Errno 22] Invalid argument: '/sys/class/net/bonding_masters'


And in /var/log/messages:
May 24 00:40:00 hostname python: abrt: detected unhandled Python exception in /usr/sbin/tuned

Comment 2 Jan Vcelak 2011-05-24 08:29:26 UTC
Easy to fix. Patch committed upstream.
http://git.fedorahosted.org/git/?p=tuned.git;a=commit;h=ba38290

Comment 5 Kazu Yoshida 2011-07-28 03:40:32 UTC
Any updates on this issue?

Comment 8 Frank Swasey 2011-07-28 13:25:49 UTC
I have to report that I have pulled tuned from the git repository and built the RPM and installed it on an RHEL6.1 system and it still fails with the errors as originally reported:

backtrace
-----
net.py:57:_device_type:OSError: [Errno 22] Invalid argument: '/sys/class/net/bonding_masters'

Traceback (most recent call last):
  File "/usr/sbin/tuned", line 129, in <module>
    tuned.init(TUNEDDIR, cfgfile, debug = debug)
  File "/usr/share/tuned/tuned.py", line 82, in init
    self._initplugins(path, "monitorplugins", self.mp)
  File "/usr/share/tuned/tuned.py", line 43, in _initplugins
    exec _cmd
  File "<string>", line 1, in <module>
  File "/usr/share/tuned/monitorplugins/net.py", line 134, in <module>
    _plugin = NetMonitor()
  File "/usr/share/tuned/monitorplugins/net.py", line 33, in __init__
    tunable = self._tunable_devices()
  File "/usr/share/tuned/monitorplugins/net.py", line 44, in _tunable_devices
    tunable = filter(self._device_is_tunable, devices)
  File "/usr/share/tuned/monitorplugins/net.py", line 48, in _device_is_tunable
    if self._device_type(name) in "virtual":
  File "/usr/share/tuned/monitorplugins/net.py", line 57, in _device_type
    path = os.path.join(os.path.dirname(path), os.readlink(path))
OSError: [Errno 22] Invalid argument: '/sys/class/net/bonding_masters'

Local variables in innermost frame:
path: '/sys/class/net/bonding_masters'
self: <monitorplugins.net.NetMonitor instance at 0x7ffe77b8fe18>
name: 'bonding_masters'

and in /var/log/messages:

Jul 28 09:18:39 hostname python: abrt: detected unhandled Python exception in /usr/sbin/tuned

Comment 9 Thomas Woerner 2011-07-28 14:26:49 UTC
Please change the line
  except (IOError, AttributeError):
to 
  except (IOError, AttributeError, OSError):
in the patch.

Comment 11 Frank Swasey 2011-07-28 14:42:30 UTC
Tested and confirmed that it works now!

Thanks!
  Frank Swasey

Comment 12 Petr Kovar 2011-07-29 14:14:44 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Previously, using NIC bonding could have led to an unexpected termination of "tuned". With this update, the network device type determination has been fixed by handling more error conditions so that the aforementioned bug no longer occurs.

Comment 18 errata-xmlrpc 2011-08-18 06:43:01 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-1176.html


Note You need to log in before you can comment on or make changes to this bug.