Allow sosreport to be run separately

Bug #1817816 reported by Pierre Equoy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bugit
Fix Released
High
Unassigned

Bug Description

qabro embeds sosreport, but sosreport cannot be run easily from the command line.

qabro launches it from python using a command such as:

sudo env SNAP=$SNAP PATH=$PATH sosreport --no-report --batch --tmp-dir <directory> -z gzip

which is very convoluted.

It would be better, if possible, to setup the snap so that running sosreport would work out of the box (by calling `qabro.sosreport`).

Pierre Equoy (pieq)
Changed in qabro:
milestone: none → 0.9
assignee: nobody → Pierre Equoy (pieq)
importance: Undecided → High
Revision history for this message
Pierre Equoy (pieq) wrote :

I modified the command in the snap, so that running:

$ sudo qabro.sosreport

will start sosreport with the following options:

--no-report --batch --tmp-dir $SNAP_USER_COMMON -z gzip

Which means the sosreport will gather data automatically, will generate a .tar.gz archive and will put it in `~/snap/qabro/common/`

Please note:

- You must launch this using `sudo`.
- The generated sosreport archive is owned by `root`, so you will need to run `sudo chown <user>:<user> <path/to/sosreport.tar.gz>`

Changed in qabro:
status: New → Fix Committed
Pierre Equoy (pieq)
Changed in qabro:
status: Fix Committed → Fix Released
assignee: Pierre Equoy (pieq) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.