[global] make all utf-8 handling use errors='ignore'

Stop playing whack-a-mole with unicode handling and ignore all
invalid characters. It's not really possible to ensure that we
always get strict utf-8 data from the system - e.g. dmesg on
systems with broken BIOS strings will often spit undecodable
byte sequences.

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
[sosreport] disable the 'zip' compression type

The Zip archive format is little used and has been broken for
some time:

   Unexpected exception setting up archive:
  Traceback (most recent call last):
    File "/usr/lib/python2.7/site-packages/sos/sosreport.py", line 1092, in prework
      self._set_archive()
    File "/usr/lib/python2.7/site-packages/sos/sosreport.py", line 679, in _set_archive
      self.archive = ZipFileArchive(archive_name, self.tmpdir)
  TypeError: __init__() takes exactly 2 arguments (3 given)
  __init__() takes exactly 2 arguments (3 given)

Remove it from the allowed options list for --compression-type.

The supporting Archive classes can be removed in a separate commit.

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
[archive] remove ZipArchive

Remove the ZipArchive class and associated test code.

Fixes #322.

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
[archive] remove all references to ZipFileArchive

Commit f342d39 removed ZipFileArchive and the test suite references
but left several imports in other files. Remove them and attendant
support functions.

Fixes #449.

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
[postgresql] avoid to crash with numerical passwords

Signed-off-by: Sandro Bonazzola <sbonazzo redhat com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
[yum] add subscription-manager identity output

The "subscription-manager identity" command displays consumer
registered uuid and registered org uuid/name , which is useful to
track rhn related issues

Signed-off-by: spandey <spandey@redhat.com>
[ovirt] remove ovirt-engine setup answer file password leak

Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
[ovirt] remove password leak from ovirt-engine setup answer file

Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
[ovirt] remove password leak from engine setup answer file

Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
[kimchi] add new plugin

This plugin gathers kimchi logs and configuration files.

Kimchi is an HTML5-based virtualization-management platform
For more information, please visit:
https://github.com/kimchi-project/kimchi/wiki

Signed-off-by: Christy Perez <christy@linux.vnet.ibm.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
[selinux] capture process SELinux domains

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
[ovirt] remove duplicate code

Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
[navicli] catch exception if input is unreadable

CLARiiON SP IP Address or [Enter] to exit: Traceback (most recent call last):
  File "/usr/sbin/sosreport", line 25, in <module>
    main(sys.argv[1:])
  File "/usr/lib/python2.7/site-packages/sos/sosreport.py", line 1408, in main
    sos.execute()
  File "/usr/lib/python2.7/site-packages/sos/sosreport.py", line 1387, in execute
    self.setup()
  File "/usr/lib/python2.7/site-packages/sos/sosreport.py", line 1117, in setup
    plug.setup()
  File "/usr/lib/python2.7/site-packages/sos/plugins/navicli.py", line 72, in setup
    ans = input("CLARiiON SP IP Address or [Enter] to exit: ")
EOFError: EOF when reading a line

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
[docs] update man page for new options

The man page was missing:

  --verify
  --all-logs
  --log-size
  --plugin-option

And listed the old '--ticket' (now --ticket-number).

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
[openshift] Collect additional config files

Collect additional node web routing configuration files
from the rewrite and vhost frontends, and node district
information.

Fixes RHBZ#1166874

Signed-off-by: Pep Turró Mauri <pep@redhat.com>