Passing --label or --name (deprecated) does nothing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sosreport (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
When using v3.6 of sosreport and creating a sosreport with the default values, for example an hourly sosreport that is created via cron, using a syntax like the following:
sosreport --batch -a --all-logs -z xz -t 16 --verify --label hourly
The '--label' option here doesn't actually apply the label it claims to, per the manpage:
--label LABEL
Specify an arbitrary identifier to associate with the archive.
Labels will be appended after the system's short hostname and may
contain alphanumeric characters.
The resulting sosreport gets named as follows:
sosreport-
I would expect to see 'hourly' in the resulting report name as the intended label.
While testing this, I also noticed that --case-id is ignored as well:
sosreport --batch -z xz -t 16 --verify --label foo --case-id 123 --ticket-number 456
This generates a sosreport with the following name, but is missing the '123' passed above:
sosreport-
My intent was to create an hourly sosreport that can be overwritten, because it will always be created with the same name, vs. creating a directory of pooled sosreports that have to be cleaned up later on with another reaping script.
Indeed, I also recently found this issue.
This is fixed from this PR: https:/ /github. com/sosreport/ sos/pull/ 1819