Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Error reported when plugin catalog is empty #1229

@marcin-krolik

Description

@marcin-krolik

Reproduction steps:

  1. Start snapd eg. snapd -t 0 -l 1&
  2. Check metric catalog (no collectors loaded) snapctl metric list

Results:
Snapctl reports error

$ snapctl metric list
Error getting metrics: metric catalog is empty, no plugin loaded

Snapd reports error

ERRO[2016-09-22T12:56:08+02:00] error fetching metrics                        _block=fetch _file=metrics.go, _module=control error=metric catalog is empty, no plugin loaded

This should not be reported as error, maybe just info, or warning?

During large tests pytest module checks snap output for any error, and fails the test if any error was found. While this could be easily changed to omit/discard errors returned by snapd, I think it's not beneficial to large tests in general

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions