[sos-devel] Help requested getting sosreport to run with custom build of supported plugin

Bryn M. Reeves bmr at redhat.com
Tue May 28 22:00:56 UTC 2019


On Tue, May 28, 2019 at 04:35:42PM -0500, William Konitzer wrote:
> I’m looking for some assistance on the best way to get sosreport working on my system. 
> 
> Specifically we’re running a custom build of OpenStack on top of Ubuntu, so for instance if I take something like the “openstack_nova" plugin, I see it does a check to see if the “openstack-nova-api.service” is running, but on my system it’s called “nova-api.service”. 
> 
> I'm trying to understand how to override this as I’m not really running on a unique Linux distribution but I’d like to keep the separation between DebianNova and our custom system so it doesn’t break anything for existing users.
> 
> Any guidance and insights very much appreciated.

You need to create a new policy that will trigger on your custom build,
and then either create new tagged plugins for that policy, or hack
around the differences between your environment and one of the existing
supported distributions.

This is probably the best there is in terms of documentation for this
kind of work:

  https://github.com/sosreport/sos/wiki/How-to-Write-a-Policy

Regards,
Bryn.




More information about the sos-devel mailing list