[python] new plugin for python runtime

Python runtime details are required for developers for various
diagnostic and development purposes. Collect the Python version of the
'python' executable.

Signed-off-by: Poornima M. Kshirsagar <pkshiras@redhat.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
[python] add package check and make portable

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
[juju] Adds 'juju get' output, exposes export-mongodb

This commit extends the plugin to include the resulting 'juju get
${service}' for each deployed service, also it exposes the
export-mongodb option, which includes on the report a json file
containing each data collection used by juju-core.

Signed-off-by: Jorge Niedbalski R <niedbalski@gmail.com>
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
[rpm] capture BuildHost tag for installed rpms

The RPM BuildHost tag may be of use in identifying 3rd party
packages present on a system.

Based on a patch from Chandan Kumar.

Fixes #368.

Signed-off-by:Chandan Kumar chkumar@redhat.com
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
[sos] update version template

Updated `__init__.py.in` to be pep8 compliant. Also updated the version string
to match that of whats defined in `sos.spec`. The alpha release 1 was manually
appended since our Makefile only deals in release version.

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
[postgresql] obtain PGPASSWORD from the environment

Allow the value of PGPASSWORD to be inherited from the
environment. This prevents the password being exposed in command
line parameters that may be visible to other users on the system.

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
[sosreport] handle KeyboardInterrupt while importing sos

Fixes #376

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
[networking] add 'brctl showmacs' output

Fixes #371.

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
[networking] fix 'nmcli con show' usage

Fixes #377.

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
[networking] additional nmcli commands

Collect 'nmcli con show active' and 'nmcli dev show'.

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
[plugins] New ubuntu-support-status plugin

This ubuntu-specific plugin exposes the ubuntu-support-status
command for gathering package support status information.

Fixes #378

Signed-off-by: Jorge Niedbalski R <niedbalski@gmail.com>
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
[policies] Add dist_version to policy class

Exposes a `dist_version` to be inherited by policy classes to provide
distribution release numbers.

For example, on Ubuntu calling this method would return with `14.04`.

Fixes #216

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
[openstack-*,ubuntu_support_status] fix plugin_name

We previously fixed an issue where plugin names needed to have underscores
in the actual filename otherwise they wouldn't be resolved. The `plugin_name`
attribute was never updated to reflect that. This change fixes to match
that of the filename so that when calling something like

sosreport -o ubuntu_support_status

Will work rather than fail with unable to find plugin errors.

Fixes #379

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
[general] remove tree and ls captures

Ubuntu specifically was seeing general plugin times of ~19 seconds which
most of that time spent running `tree /var/lib`. Was decided to remove this
capture output and to be re-evaluated of its importance at a later date.

Fixes #374

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