Check for usable temporary directory

A user may override the sos temporary directory via --tmp-dir to
a non-existent or unwritable location. Check for this before
initialising temporary files and exit with an error message.

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Fix --alloptions

During the re-organisation of sosreport.py the code to apply all
boolean options to plug-ins was factored out into its own
function, _set_all_options() however this was never called from
the main execute() method. Fix this to allow the option to work
as previously.

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
This patch defines a new PowerPC Plugin to collect generic Power logs.
Based on further platform checks,IBM Power System specific logs and
commands will be collected. This would help IBM Power system users to
collect system data in one shot by running sosreport.

Signed-off-by: Bharani C.V. <bharanve@linux.vnet.ibm.com>
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>

---
 sos/plugins/powerpc.py |   73 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 73 insertions(+)
 create mode 100644 sos/plugins/powerpc.py
Fix config file regression

Changes in the organisation of sos in commit 6ea48cb broke the
reading of custom configuration files (either the default
/etc/sos.conf or one specified on the command line using
--config-file):

Traceback (most recent call last):
  File "/usr/sbin/sosreport", line 23, in <module>
    main(sys.argv[1:])
  File "/usr/lib/python2.7/site-packages/sos/sosreport.py", line 1167, in main
    sos.execute()
  File "/usr/lib/python2.7/site-packages/sos/sosreport.py", line 1133, in execute
    self._set_tunables()
  File "/usr/lib/python2.7/site-packages/sos/sosreport.py", line 798, in _set_tunables
    if not opt.split('.')[0] in self.disabled:
AttributeError: 'SoSReport' object has no attribute 'disabled'

The code attempts to reference the obsolete 'disabled' list of
plug-ins (rather than calling self._get_disabled_plugins()) and
failed to initialise the plugopts list to an empty deque.

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Change add_copy_spec calls that are passed array to use add_copy_specs

Signed-off-by: Jeff Dutton <jeff.r.dutton@gmail.com>
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
Add IBM contributors to AUTHORS

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
Scrub credentials from openssl plugin

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
Include Brent Eagles into authors file

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
Add check_enabled for neutron plugin
Signed-off-by: Jeff Dutton <jeff.r.dutton@gmail.com>
Merge branch 'add-neutron-check-enabled' of github.com:jdutton/sosreport into jdutton-add-neutron-check-enabled

Fixes #211

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
Do not copy ceph keyring files

Fixes #200

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
Generate report by default

Fixes #2

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
Add a few more contributors to AUTHORS

Guy, Flavio, and Jeremy

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>