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 1206633 - networking plugin fails if NetworkManager is disabled
Summary: networking plugin fails if NetworkManager is disabled
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: sos
Version: 7.1
Hardware: x86_64
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Pavel Moravec
QA Contact: David Kutálek
URL:
Whiteboard:
Depends On:
Blocks: 1206661 1214025
TreeView+ depends on / blocked
 
Reported: 2015-03-27 15:08 UTC by Peter Portante
Modified: 2015-11-19 12:17 UTC (History)
9 users (show)

Fixed In Version: sos-3.2-17.el7
Doc Type: Bug Fix
Doc Text:
The networking plug-in for the sos utility previously reported an "unhandled exception" error when the Network Manager tool was disabled. With this update, the status of the nmcli utility is properly checked before the networking plug-in processes its output, which prevents the plug-in from generating the error.
Clone Of:
: 1206661 1214025 (view as bug list)
Environment:
Last Closed: 2015-11-19 12:17:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:2118 0 normal SHIPPED_LIVE sos bug fix and enhancement update 2015-11-19 10:50:37 UTC

Description Peter Portante 2015-03-27 15:08:00 UTC
See https://github.com/sosreport/sos/issues/432

On RHEL 7.1 we see:

   3092 networking
   3093 Traceback (most recent call last):
   3094   File "/usr/lib/python2.7/site-packages/sos/sosreport.py", line 1163, in collect
   3095     plug.collect()
   3096   File "/usr/lib/python2.7/site-packages/sos/plugins/__init__.py", line 629, in collect
   3097     self._collect_cmd_output()
   3098   File "/usr/lib/python2.7/site-packages/sos/plugins/__init__.py", line 609, in _collect_cmd_output
   3099     timeout=timeout, runat=runat)
   3100   File "/usr/lib/python2.7/site-packages/sos/plugins/__init__.py", line 554, in get_cmd_output_now
   3101     result = self.get_command_output(exe, timeout=timeout, runat=runat)
   3102   File "/usr/lib/python2.7/site-packages/sos/plugins/__init__.py", line 464, in get_command_output
   3103     result = sos_get_command_output(prog, timeout=timeout, runat=runat)
   3104   File "/usr/lib/python2.7/site-packages/sos/utilities.py", line 144, in sos_get_command_output
   3105     args = shlex.split(command)
   3106   File "/usr/lib64/python2.7/shlex.py", line 279, in split
   3107     return list(lex)
   3108   File "/usr/lib64/python2.7/shlex.py", line 269, in next
   3109     token = self.get_token()
   3110   File "/usr/lib64/python2.7/shlex.py", line 96, in get_token
   3111     raw = self.read_token()
   3112   File "/usr/lib64/python2.7/shlex.py", line 172, in read_token
   3113     raise ValueError, "No closing quotation"
   3114 ValueError: No closing quotation

Comment 2 Pavel Moravec 2015-03-27 16:05:56 UTC
Trivial backport of https://github.com/sosreport/sos/commit/d19bc046d549aaf634314a257dd22623df731648

Comment 4 Pavel Moravec 2015-04-20 10:28:10 UTC
Reproducer (on RHEL7):

# systemctl stop  NetworkManager.service
# sosreport -o networking --batch

sosreport (version 3.2)

This command will collect diagnostic and configuration information from
this Red Hat Enterprise Linux system and installed applications.

An archive containing the collected information will be generated in
/var/tmp and may be provided to a Red Hat support representative.

Any information provided to Red Hat will be treated in accordance with
the published support policies at:

  https://access.redhat.com/support/

The generated archive may contain data considered sensitive and its
content should be reviewed by the originating organization before being
passed to any third party.

No changes will be made to system configuration.


 Setting up archive ...
 Setting up plugins ...
 Running plugins. Please wait ...

  Running 1/1: networking...        
caught exception in plugin method "networking.collect()"
writing traceback to sos_logs/networking-plugin-errors.txt

Creating compressed archive...

Your sosreport has been generated and saved in:
  /var/tmp/sosreport-pmoravec-rhel7-sat6.gsslab.brq.redhat.com-20150419193646.tar.xz

The checksum is: 0c4ef9d8a8cd44806bde51472e1141cd

Please send this file to your support representative.

#

See the "sos_logs/networking-plugin-errors.txt".

Running with -v shows more specific info:

[plugin:networking] collecting output of 'nmcli con show conf 'Error: nmcli (0.9.9.1) and NetworkManager (unknown) versions don't match. Force execution using --nocheck, but the results are unpredictable.''
caught exception in plugin method "networking.collect()"
writing traceback to sos_logs/networking-plugin-errors.txt

Comment 5 Pavel Moravec 2015-04-20 10:49:03 UTC
Wrong BZ for the see also..

Comment 9 errata-xmlrpc 2015-11-19 12:17:08 UTC
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, 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://rhn.redhat.com/errata/RHBA-2015-2118.html


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