~pieq/bugit/+git/qabro:more-logs-in-reports

Last commit made on 2018-10-31
Get this branch:
git clone -b more-logs-in-reports https://git.launchpad.net/~pieq/bugit/+git/qabro
Only Pierre Equoy can upload to this branch. If you are Pierre Equoy please log in for upload directions.

Branch merges

Branch information

Name:
more-logs-in-reports
Repository:
lp:~pieq/bugit/+git/qabro

Recent commits

9f3de5b... by Pierre Equoy

Remove config part

The config part was originally used to host a default config file for
sosreport. Now that we use snap layouts, we can point to the default
conf file from sosreport package, so our config file becomes useless.

1e82d2b... by Pierre Equoy

Fix errors when submitting `snap list` output to launchpad

The output of `snap list` now contains Unicode characters. When trying
to decode this using the default TTY encoding (usually ASCII), it raises
an exception. We decode using 'utf-8' to avoid this error.

This commit also include a minor pep8 fix.

cb0db64... by Pierre Equoy

Gather logs from commands such as lsusb and lspci

Up until now, the archives generated by sosreport lacked a lot of
information (output files would basically be empty). This was the case
mostly for any logs gathered by calling a command (e.g. `lspci -nnvv`).

This is because sosreport hardcodes $PATH to some default values before
running these commands, and this is incompatible with the way snaps
work.

This commit does several things:

- Patch sosreport (currently v3.5 pulled from the repo) to include
$SNAP-related directories in $PATH
- Package tools needed by sosreport (lsusb, lspci, etc.)
- Use snap layouts to match config files (lsusb must have its usb.ids
file located at /var/lib/usbutils/usb.ids ...)
- Update qabro to make use of this

Note: for the time being (snapd < 2.36), the snap layouts feature is
still experimental and therefore, it must be activated before installing
qabro:

    $ sudo snap set core experimental.layouts=true

913ddf6... by Pierre Equoy

Use APPORT_LAUNCHPAD_INSTANCE env variable

Launchpad library uses this environment variable to select to
which instance of launchpad it should connect to.

For instance, to connect and send data to Staging LP instance:

    $ APPORT_LAUNCHPAD_INSTANCE=staging qabro

Other possible values are 'production' (default) and 'qastaging'.

0797764... by Pierre Equoy

Setup logging for better debugging

a19d414... by Pierre Equoy

flake8 cleanup

a592920... by PMR <pmr@pmr-lander>

Merge #354221 from ~pieq/qabro/+git/qabro:python3-port

b7786bc... by Pierre Equoy

Port to Python 3

Since bug lp:1729754 has been fixed and the fix is available in
both xenial and bionic, qabro can finally use Python 3. \o/

LP: #1783687

c941301... by PMR <pmr@pmr-lander>

Merge #351399 from ~pieq/qabro/+git/qabro:fix-lp1782526-acpidump

61f9e1a... by Pierre Equoy

Add acpidump attachment

LP: #1782526