Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In MAAS 3.5, system journal is used by all the services, therefore the log size is significantly increased compared to the previous MAAS versions. For snap this means that `journalctl` might need a long time to collect and filter the log files before outputting them. This sometimes leads to `maas` plugin timeouts with 3.5 snap, as `sos` performs automatic log collection for services listed in `services` tuple without any filters other than unit name, unless explicitly specified by user. We want the plugin to work without additional params, so we service declaration for 3.5 snap is ommitted. Instead, `check_enabled` is used to activate the plugin. Logs are then collected via `add_journal` call with a sane default limit to avoid timeouts. Signed-off-by: Igor Brovtsin <[email protected]>
- Loading branch information