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

Unable to load upgraded collector with reduced set of metrics #1052

Closed
marcintao opened this issue Jul 7, 2016 · 3 comments
Closed

Unable to load upgraded collector with reduced set of metrics #1052

marcintao opened this issue Jul 7, 2016 · 3 comments

Comments

@marcintao
Copy link
Contributor

When new version of collector is exposes a reduced set of metrics (doesn't export them from GetMetricTypes()) , it's impossible to restart a task involving that collector. Snap will complain about missing metric during task creation, even though:

  • task was removed,
  • plugin was unloaded and loaded in new version (with version number changed),
  • list of metrics reflects tracks the current state of plugins.

OS Version: Ubuntu 16.04
Snap version: snapd version master-cc4eda7 (tip of master)

Steps to reproduce:

  • start snap
  • load a mock collector (snap-collector-mock1) and file collector,
  • start a task involving mock collector,
  • verify list of metrics,
  • stop 'n' remove the task,
  • unload mock1 plugin,
  • load 'upgraded' mock1 plugin (missing metric /intel/mock/foo),
  • start a task involving mock1.

Actual results:

  • task fails to load due to missing metric /intel/mock/foo

Expected results:

  • task starts successfully

Complete report of activity:
bug_upgrading_log.txt

@geauxvirtual
Copy link
Contributor

Can you add the task manifest you were using to this issue?

@marcintao
Copy link
Contributor Author

Added task manifest:
bug_task.txt

@andrzej-k
Copy link
Contributor

Closing - fixed by #1146

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants