Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
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.
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
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
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.
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
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