SUSE / supportconfig-utils

Utilities for analyzing supportconfig tarballs
7 stars 7 forks source link

Utilities for analyzing supportconfig tarballs

This repository contains utilities which make it easier to inspect files gathered into a supportconfig tarball.

Contents

Project goals

The goals of this project are as follows:

Installation

It's strongly recommended to install these via packages. This will automatically take care of the setup and dependencies on tmux-lib and unpack.

It's possible to install manually, but there really isn't any point, so support for that will be provided reluctantly, if at all.

Configuration

By default, new terminal sessions will be launched using xdg-terminal, which in theory should open your preferred terminal emulator application. However if this doesn't work to your taste, it can be overridden by placing something like

SUPPORTCONFIG_UTILS_TMUX_TERMINAL="urxvt-256color -g 200x60 -e"

in either ~/.config/supportconfig-utils/tmux-window or /etc/sysconfig/supportconfig-utils.

In the future, other configuration options may be added. PRs are of course welcome!

Usage

You can launch a supportconfig analysis session in a few different ways:

  1. From your web browser, in a new terminal window

    Simply click a supportconfig tarball to download it, and the application MIME handler should kick in and launch a new terminal window with a new tmux session inside it. (You may have to click the file again once it's downloaded, depending on how your browser is configured.)

  2. From a CLI, in a new terminal window

    Run

    supportconfig-tmux-window my-supportconfig.tar.bz2

    on a supportconfig you've already downloaded. If it's already unpacked, you can run it directly on the unpacked directory:

    supportconfig-tmux-window my-unpacked-supportconfig/

    Again, this will create a new tmux session.

  3. From a CLI, in the same terminal window

    If you want to reuse an existing terminal window, follow the instructions in step 2 above, but replacing supportconfig-tmux-window with supportconfig-tmux.

The tmux session will launch various terminal windows depending on the contents of the supportconfig. Some may immediately launch lnav on log files which are commonly viewed during analysis sessions, and others may display other useful information as a starting point, and/or offer an interactive shell ready for performing further exploration.

Once the session is launched, there are various other utilities provided which may come in handy in certain situations. See below for details on the full suite of tools.

List of core utilities

Utilities for unpacking supportconfigs

Utilities for setting up analysis/debugging sessions

Utilities for viewing log files

Product-specific extensions

The above utilities are designed to be extensible, so that extra intelligence and automation can be added in order to further facilitate analysis and debugging of particular SUSE products.

Plugins live in the plugins/ subdirectory.

SUSE OpenStack Cloud

SUSE OpenStack Cloud plugins live in the plugins/SOC/ subdirectory.

It is first worth noting that SUSE OpenStack Cloud includes its own plugin for supportconfig which gathers extra product-specific information into a supportconfig tarball run on any node with the product installed. The extensions listed here take advantage of that extra information.

Crowbar-specific extensions (SOCC)

WARNING: some of these are probably ugly hacks which were coded in a hurry. Please help make them better ;-)

CLM-specific extensions

There aren't any Ardana / CLM extensions yet, but PRs are warmly welcomed ;-)