[Bug 2018270] Re: [sru] sos upstream 4.5.3

David Negreira 2018270 at bugs.launchpad.net
Wed May 31 15:30:35 UTC 2023


I have found a regression on the juju plugin while testing the package
in proposed.

The sosreport run informs that there is an error in the juju plugin and
an error file can be found on sos_logs/juju-plugin-errors.txt with the
error:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/sos/report/__init__.py", line 1459, in postproc
    plug.postproc()
  File "/usr/lib/python3/dist-packages/sos/report/plugins/juju.py", line 69, in postproc
    self.do_file_private_sub(agents_path)
  File "/usr/lib/python3/dist-packages/sos/report/plugins/__init__.py", line 1257, in do_file_private_sub
    self.do_file_sub(path, _certmatch, replace)
  File "/usr/lib/python3/dist-packages/sos/report/plugins/__init__.py", line 1287, in do_file_sub
    result, replacements = re.subn(regexp, subst, content,
  File "/usr/lib/python3.8/re.py", line 221, in subn
    return _compile(pattern, flags).subn(repl, string, count)
  File "/usr/lib/python3.8/re.py", line 299, in _compile
    raise ValueError(
ValueError: cannot process flags argument with a compiled pattern

This specific function is used to censor sensitive data on the juju
agents.conf file, and because of this error, the cacert data is not
censored and sensitive data is written into the agents.conf file.

I have raised the issue upstream:
https://github.com/sosreport/sos/issues/3261

** Bug watch added: github.com/sosreport/sos/issues #3261
   https://github.com/sosreport/sos/issues/3261

** Tags removed: verification-done verification-done-focal verification-done-jammy verification-done-kinetic verification-done-lunar
** Tags added: verification-needed verification-needed-focal verification-needed-jammy verification-needed-kinetic verification-needed-lunar

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

Title:
  [sru] sos upstream 4.5.3

Status in sosreport package in Ubuntu:
  Fix Released
Status in sosreport source package in Bionic:
  Fix Committed
Status in sosreport source package in Focal:
  Fix Committed
Status in sosreport source package in Jammy:
  Fix Committed
Status in sosreport source package in Kinetic:
  Fix Committed
Status in sosreport source package in Lunar:
  Fix Committed
Status in sosreport source package in Mantic:
  Fix Released

Bug description:
  [IMPACT]

  The sos team is pleased to announce the release of sos-4.5.3. This
  release follows our recent changes to adopt a faster release cadence,
  and as such is smaller in scope than previous releases for the
  project. The next release is slated for May 26.

  [TEST PLAN]

  Documentation for Special Cases:
  https://wiki.ubuntu.com/SosreportUpdates

  [WHERE PROBLEMS COULD OCCUR]

  The changes in sosreport are described below. There are a number of
  changes related to report, plugins and policy. The changes in
  sosreport content may break existing tooling, so that will need
  extensive testing.

  Global changes

  Policy Changes
  Added a policy for CBL-Mariner Linux
  Fixed an issue in the ubuntu policy that could prevent archive uploads when users specified a manual --upload-url

  Report Changes
  Usage of --enable-plugins, --skip-plugins, and --only-plugins from the command line will now properly override those values set by a preset if the preset added them to a conflicting option

  Plugin Changes
  The lustre plugin will now collect ldiskfs information
  The zfs plugin will now collect from /proc/spl
  The firewalld plugin will now collect the ipsets, policies, and helpers subdirectories within /etc/firewalld/
  The iscsi plugin will now properly obfuscate password_in strings in collected files
  The ceph plugin will now collect a dump of mon's config database
  The powerpc plugin will now collect lsslot, amsstat, and opal elogs output
  The virsh plugin will now scrub spice passwords in virt-manager logs

  Collect changes
  Added both a new transport and cluster profile for Juju environments
  For full information on the changes contained in this release, please refer to the Git commit logs. Further release information and tarballs are available at:
  https://github.com/sosreport/sos/releases/tag/4.5.3

  Please report any problems to the sos-devel mailing list, or the
  GitHub issue tracker:

  https://github.com/sosreport/sos/issues/

  The team would like to thank everyone who contributed fixes, new
  features, testing, and feedback for this release.

  Release notes:
  https://github.com/sosreport/sos/releases/tag/4.5.3

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




More information about the Ubuntu-sponsors mailing list