Commits on Jul 15, 2016
  1. @bmr-cymru

    [monit] fix add_copy_spec() arguments

    Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
    bmr-cymru committed Jul 15, 2016
Commits on Jul 13, 2016
  1. @bmr-cymru

    [atomichost] improve 'atomic info' collection loop

    Remove redundant code from the loop that drives 'atomic info'
    collection and make the bracketing and indenting style match
    other plugins.
    
    Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
    bmr-cymru committed Jul 13, 2016
  2. @bmr-cymru

    [atomichost] replace custom logic with Policy.in_container()

    Don't reinvent the wheel by inspecting file system paths: rely on
    the existing policy class in_container() method.
    
    Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
    bmr-cymru committed Jul 13, 2016
  3. @bmr-cymru

    [atomichost] fix option list style

    Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
    bmr-cymru committed Jul 13, 2016
Commits on Jul 8, 2016
  1. @bmr-cymru

    [networking] single quote innermost strings in nmcli commands

    Network Manager names may contain embedded quotes (" and ').  These will
    cause an exception in shlex.split() if the quotes are unbalanced. This
    may happen with names like: "Foobar's Wireless Network". Although the
    problen will occur for both single and double quote characters the
    former is considerably more likely in object names since it is
    syntactically valid in many human languages.
    
    Reverse the normal sos quoting convention here and place double quotes
    around the innermost quoted string.
    
    RHBZ# 1353992
    
    Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
    bmr-cymru committed Jul 8, 2016
Commits on Jul 7, 2016
  1. @bmr-cymru

    [virtwho] add new plugin for virt-who agent

    Add a new plugin for the virtual guest ID reporting agent.
    
    RHBZ#1353552
    
    Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
    bmr-cymru committed Jul 7, 2016
Commits on Jun 29, 2016
  1. @bmr-cymru

    [sos] bump version to 3.3

    Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
    bmr-cymru committed Jun 29, 2016
  2. @codificat @bmr-cymru

    [origin] New plugin for OpenShift Origin / OSE 3.x

    Add a new plugin to collect information about OpenShift Origin:
    
      https://github.com/openshift/origin
      https://www.openshift.org
    
    and related products like Atomic Platform / OpenShift Enterprise 3+.
    
    Fixes: #612
    Fixes: RHBZ 1246423
    
    Signed-off-by: Pep Turró Mauri <pep@redhat.com>
    codificat committed with bmr-cymru Jun 28, 2016
  3. @bmr-cymru

    [kubernetes] fix string substitution

    Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
    bmr-cymru committed Jun 29, 2016
  4. @TurboTurtle @bmr-cymru

    [kubernetes] new data, namespace support, and options

    This patch collects additional data from kubernetes masters, changes the
    available plugin options, and makes collection namespace aware.
    
    By default, json output will be collected for events, limitranges, pods, pvcs,
    replicationcontrollers, resourcequotas and services on a per-namespace basis.
    
    Note that the 'serviceaccount' and 'secrets' resources are not collected due to
    the high risk of exposing secure information.
    
    Version and 'config view' output is now collected.
    
    The 'all' option (default enabled) will collect a non-json listing of each
    resource across all namespaces for ease of reference.
    
    The 'describe' option (default enabled) will collect 'kubectl describe' output,
    non-json, for each object of each resource in each namespace, if present.
    
    The 'podslog' option has been renamed to 'podlogs' and is disabled by default.
    
    Note that while this will run on OpenShift v3 masters, only resources shared by
    OpenShift and 'plain' Kubernetes are collected by this plugin. OpenShift routes
    for example are not collected.
    
    Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
    TurboTurtle committed with bmr-cymru Jun 28, 2016
  5. @TurboTurtle @bmr-cymru

    [Plugin] Add mechanism to remove certificates and keys from output

    This adds a 'do_cmd_private_sub()' function that removes collected certificates
    and keys. This function takes a cmd name to match against output collected, but
    does not take a regexp or substituting string as does do_cmd_output_sub(). Any
    found certificates or keys are replaced by a '-----SCRUBBED' line, e.g.:
    
    "-----SCRUBBED CERTIFICATE-----"
    or
    "-----SCRUBBED RSA PRIVATE KEY-----"
    
    Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
    TurboTurtle committed with bmr-cymru Jun 28, 2016
  6. @karibou @bmr-cymru

    [lxd] Use add_copy_spec_limit

    sizelimit is only available with add_copy_spec_limit. Replace it.
    Closes: #843
    
    Signed-off-by: Louis Bouchard <louis.bouchard@canonical.com>
    karibou committed with bmr-cymru Jun 24, 2016
  7. @pmoravec @bmr-cymru

    [reporting] html_report skips plugins .. with nonASCII

    [reporting] html_report skips plugins that collected file with
    nonASCII character in their name
    
    Converting all html report strings to unicode with utf-8 encoding.
    
    Does not work ideally on py2 where the report does not skip a plugin
    but breaks encoding of most nonASCII characters.
    
    Resolves: #835
    
    Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
    pmoravec committed with bmr-cymru Jun 19, 2016
  8. @karibou @bmr-cymru

    [gdm] Fix misspelled units

    unit= should be units=
    
    Closes: #841
    
    Signed-off-by: Louis Bouchard <louis.bouchard@canonical.com>
    karibou committed with bmr-cymru Jun 24, 2016
  9. @csutherl @bmr-cymru

    [tomcat] Added collection of all tomcat* logs

    Optionally collect all tomcat logs, in addition to catalina.out,
    with the use of the --all-logs option and update tomcat paths for
    versions 7 and 8 (as packaged in Red Hat JBoss).
    
    Resolves #836.
    
    Signed-off-by: Coty Sutherland <csutherl@redhat.com>
    Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
    csutherl committed with bmr-cymru Jun 15, 2016
  10. @pmoravec @bmr-cymru

    [gluster] limit size of logs collected

    Apply global parameters when collecting gluster logs.
    
    Resolves: #834
    
    Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
    pmoravec committed with bmr-cymru Jun 11, 2016
Commits on Jun 27, 2016
  1. @bmr-cymru

    [policies/redhat] update container detection test

    Between Docker, systemd, and the various other components used to
    manage docker-style containers on Red Hat's Atomic-based distros
    the agreed upon environment variable used to detect a container
    has changed:
    
      container_uuid="" is no longer exported.
    
      container="docker"|"..." is now exported instead.
    
    Update the in container checks to use the new variable name.
    
    Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
    bmr-cymru committed Jun 27, 2016
  2. @pmoravec @bmr-cymru

    [reporting] deal with UTF-8 characters

    replace str class functions by unicode variants:
    1) "\n".join(buf) needs to pass decoded UTF-8 text
    2) uniform python2 and python3 str/unicode type
    3) fd.write needs to replace str(..) by some other function name
    4) fd.write needs to encode UTF-8
    5) update tests/report_tests.py like 2)
    
    Resolves: #722, #723.
    
    Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
    pmoravec committed with bmr-cymru Jan 13, 2016
Commits on Jun 3, 2016
  1. [lightdm] Add missing "" to command

    Signed-off-by: Bryan Quigley <bryan.quigley@canonical.com>
    Bryan Quigley committed Jun 3, 2016
  2. @sbradley7777 @bmr-cymru

    [processor] Capture turbostat output

    The turbostat command is a topological report. This report will show
    what cstate and pstate processors are in, what the processor frequency
    is during that timeand how busy each core is. The cstate %'s tell us
    when we are saving power at the expense of performance which is useful
    for knowing if the host is optimally configured.
    
    Fixes: #802
    
    Signed-off-by: Shane Bradley <sbradley@redhat.com>
    sbradley7777 committed with bmr-cymru Apr 11, 2016
  3. @sbradley7777 @bmr-cymru

    [memory] Capture status of hugepages

    Determing if hugepages is enabled is useful to know when
    trouble-shooting applications that can take advantage of
    huge pages.
    
    Fixes: #798
    
    Signed-off-by: Shane Bradley <sbradley@redhat.com>
    sbradley7777 committed with bmr-cymru Apr 11, 2016
  4. @sbradley7777 @bmr-cymru

    [block] Capture the scheduler used by all block devices

    Fixes: #799
    
    Signed-off-by: Shane Bradley <sbradley@redhat.com>
    sbradley7777 committed with bmr-cymru Apr 11, 2016
  5. @bmr-cymru

    [ipmi] Fix ipmitool options

    As per ipmitool man page 'bmc' option is deprecreated. Instead use 'mc'
    option to get BMC information.
    
    Also we don't have 'sel log' option. Use 'sel list' option to get SEL
    log information.
    
    Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
    Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
    ---
     sos/plugins/ipmitool.py |    4 ++--
     1 file changed, 2 insertions(+), 2 deletions(-)
    bmr-cymru committed Jun 3, 2016
Commits on Jun 2, 2016
  1. @pmoravec @bmr-cymru

    [pacemaker] Call crm_report with --sos-mode option

    crm_report should be called with --sos-mode option for preffered
    collection of log files.
    
    Closes: #795, #826.
    
    Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
    Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
    pmoravec committed with bmr-cymru Jun 2, 2016
  2. @bmr-cymru

    [targetcli] convert to add_journal interface

    Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
    bmr-cymru committed Jun 1, 2016
  3. @bmr-cymru

    [openvswitch] convert to add_journal interface

    Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
    bmr-cymru committed Jun 1, 2016
  4. @bmr-cymru

    [openstack_sahara] convert to add_journal interface

    Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
    bmr-cymru committed Jun 1, 2016
  5. @bmr-cymru

    [openstack_ironic] convert to add_journal interface

    Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
    bmr-cymru committed Jun 1, 2016
  6. @bmr-cymru

    [lightdm] convert to add_journal interface

    Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
    bmr-cymru committed Jun 1, 2016
  7. @bmr-cymru

    [kubernetes] convert to add_journal interface

    Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
    bmr-cymru committed Jun 1, 2016
  8. @bmr-cymru

    [docker] convert to add_journal interface

    Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
    bmr-cymru committed Jun 1, 2016
  9. @bmr-cymru

    [chrony] convert to add_journal interface

    Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
    bmr-cymru committed Jun 1, 2016
  10. @bmr-cymru

    [gdm] convert to add_journal interface

    Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
    bmr-cymru committed Jun 1, 2016
  11. @bmr-cymru

    [logs] convert to add_journal interface

    Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
    bmr-cymru committed Jun 1, 2016
  12. @bmr-cymru

    [plugin] Add add_journal() to collect journald logs

    Add a new Plugin method to collect journald logs.
    
    Closes: #825.
    
    Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
    bmr-cymru committed Jun 1, 2016