Bug 1869724
Summary: | sosreport running 'ethtool -e' is causing bnx2x NICs to pause | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | suresh kumar <surkumar> |
Component: | sos | Assignee: | Pavel Moravec <pmoravec> |
Status: | CLOSED ERRATA | QA Contact: | Miroslav HradĂlek <mhradile> |
Severity: | urgent | Docs Contact: | |
Priority: | urgent | ||
Version: | 8.3 | CC: | agk, bmr, mhradile, plambri, ptalbert, sbradley |
Target Milestone: | rc | Keywords: | OtherQA |
Target Release: | 8.0 | Flags: | pm-rhel:
mirror+
|
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | sos-3.9.1-6.el8 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-11-04 01:58:15 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
suresh kumar
2020-08-18 13:57:41 UTC
I have submitted an upstream patch to remove ethtool -e for bnx2x NICs which is accepted. https://github.com/sosreport/sos/commit/34c77d6902ee1df403dc3836b4092d413fb95350 . +++ $ git show 34c77d69 commit 34c77d6902ee1df403dc3836b4092d413fb95350 Author: suresh2514 <suresh2514> Date: Fri Aug 14 22:59:34 2020 +0530 [networking] remove 'ethtool -e' option for bnx2x NICs Running EEPROM dump (ethtool -e) can result in bnx2x driver NICs to pause for few seconds and is not recommended in production environment. Resolves: #2188 Resolves: #2200 Signed-off-by: suresh2514 <suresh2514> Signed-off-by: Jake Hunsaker <jhunsake> diff --git a/sos/report/plugins/networking.py b/sos/report/plugins/networking.py index ba9c0fb1..397549a5 100644 --- a/sos/report/plugins/networking.py +++ b/sos/report/plugins/networking.py @@ -198,7 +198,6 @@ class Networking(Plugin): "ethtool -a " + eth, "ethtool -c " + eth, "ethtool -g " + eth, - "ethtool -e " + eth, "ethtool -P " + eth, "ethtool -l " + eth, "ethtool --phy-statistics " + eth, @@ -206,6 +205,17 @@ class Networking(Plugin): "ethtool --show-eee " + eth ], tags=eth) + # skip EEPROM collection for 'bnx2x' NICs as this command + # can pause the NIC and is not production safe. + bnx_output = { + "cmd": "ethtool -i %s" % eth, + "output": "bnx2x" + } + bnx_pred = SoSPredicate(self, + cmd_outputs=bnx_output, + required={'cmd_outputs': 'none'}) + self.add_cmd_output("ethtool -e %s" % eth, pred=bnx_pred) + # Collect information about bridges (some data already collected via # "ip .." commands) self.add_cmd_output([ +++ Test result for above patch: +++ Setting up archive ... Setting up plugins ... ... [plugin:networking] skipped command 'ethtool -e em2': <--------------------- bnx2x NIC [plugin:networking] skipped command 'ethtool -e em1': <--------------------- bnx2x NICs Running plugins. Please wait ... Starting 1/1 networking [Running: networking] Finished running plugins Creating compressed archive... Your sosreport has been generated and saved in: /var/tmp/sosreport-dell-pem630-01-2020-08-14-ixpdmsw.tar.xz Size 1.24MiB Owner root md5 a2c236193997733cc383ebdf2bac478f Please send this file to your support representative. real 0m3.718s <------- Without this patch, it was taking 12s to complete sosreport. user 0m2.028s sys 0m0.896s +++ I can add it to RHEL 8.3.0 but we are limited on QE capacity. If/Once a candidate package is available, could you verify it, please? (In reply to Pavel Moravec from comment #2) > I can add it to RHEL 8.3.0 but we are limited on QE capacity. If/Once a > candidate package is available, could you verify it, please? sure regards Hello, could you please verify the fix against below build? Thanks in advance. A yum repository for the build of sos-3.9.1-6.el8 (task 30820540) is available at: http://brew-task-repos.usersys.redhat.com/repos/official/sos/3.9.1/6.el8/ You can install the rpms locally by putting this .repo file in your /etc/yum.repos.d/ directory: http://brew-task-repos.usersys.redhat.com/repos/official/sos/3.9.1/6.el8/sos-3.9.1-6.el8.repo RPMs and build logs can be found in the following locations: http://brew-task-repos.usersys.redhat.com/repos/official/sos/3.9.1/6.el8/noarch/ The full list of available rpms is: http://brew-task-repos.usersys.redhat.com/repos/official/sos/3.9.1/6.el8/noarch/sos-3.9.1-6.el8.src.rpm http://brew-task-repos.usersys.redhat.com/repos/official/sos/3.9.1/6.el8/noarch/sos-3.9.1-6.el8.noarch.rpm http://brew-task-repos.usersys.redhat.com/repos/official/sos/3.9.1/6.el8/noarch/sos-audit-3.9.1-6.el8.noarch.rpm The repository will be available for the next 60 days. Scratch build output will be deleted earlier, based on the Brew scratch build retention policy. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (sos bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2020:4534 |