← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1886494] Re: sosreport does not correctly enable the maas plugin for a snap install

 

This bug was fixed in the package sosreport - 3.9.1-1ubuntu0.20.04.2

---------------
sosreport (3.9.1-1ubuntu0.20.04.2) focal; urgency=medium

  * d/p/0004-maas-add-snap-support.patch (LP: #1886494)
    From 2.7.0 onwards, MAAS is using snaps for it's
    releases, and this changes the location of files
    and logs.

 -- Eric Desrochers <eric.desrochers@xxxxxxxxxxxxx>  Tue, 07 Jul 2020
19:19:09 +0000

** Changed in: sosreport (Ubuntu Focal)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1886494

Title:
  sosreport does not correctly enable the maas plugin for a snap install

Status in sosreport package in Ubuntu:
  Fix Released
Status in sosreport source package in Xenial:
  In Progress
Status in sosreport source package in Bionic:
  Fix Committed
Status in sosreport source package in Focal:
  Fix Released
Status in sosreport source package in Groovy:
  Fix Released

Bug description:
  [Impact]

  sosreport doesn't exercise the MAAS plugin if it is installed as a SNAP.
  Only work if installed as a DEB package.

  [Test Case]

  * snap install maas
  * sosreport -a
  * Looking the sosreport archive content and validate that MAAS information haven't been collected (e.g. /path_to_sosreport/sos_commands/maas)

  [Regression Potential]

  No regression expected.
  If a regression happens it will only be isolated to the plugin itself.
  It won't affect/impact other plugin nor sosreport core functionalities.

  Worst case scenario, the MAAS plugin won't be exercised as expected,
  and one would need to request MAAS information manually.

  https://wiki.ubuntu.com/SosreportUpdates

  [Other Info]

  Upstream commit:
  - [maas] Add snap support to maas plugin
  - https://github.com/sosreport/sos/commit/1417827a

  [Original Description]

  Installing maas via snap on a focal machine (in my case lxd container)
  following:

  sudo snap install maas-test-db
  sudo snap install maas
  sudo maas init region --database-uri maas-test-db:///

  Then running sosreport, sosreport does not correctly enable the maas
  plugin.  I tested with version 3.9.1-1ubuntu0.20.04.1 of sosreport and
  also the upstream package from source.  Here are the results:

  root@testing:/sos# dpkg -l | grep sosreport
  ii  sosreport                      3.9.1-1ubuntu0.20.04.1             amd64        Set of tools to gather troubleshooting data from a system
  root@testing:/sos# sosreport -l | grep maas
   maas                 inactive       Ubuntu Metal-As-A-Service
  root@testing:/sos# ./bin/sosreport -l | grep maas
   maas                 Ubuntu Metal-As-A-Service
   maas.profile-name                         The name with which you will later refer to this remote
   maas.url                                  The URL of the remote API
   maas.credentials                          The credentials, also known as the API key

  As you can see the version of sosreport from the package lists the
  maas plugin as inactive but from source it is enabled.

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