Public bug reported:

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-cloudserver-r024n17-20191111115506.tar.xz

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-cloudserver-r024n17.456-20191111120325.tar.xz

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.

** Affects: sosreport (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1852104

Title:
  Passing --label or --name (deprecated) does nothing

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sosreport/+bug/1852104/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to