Decision engine logs an error if scope is None
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
watcher |
New
|
Undecided
|
licanwei |
Bug Description
I use Train version of OpenStack (and train version of watcher as well).
The error is logged not only when I issue command `watcher strategy state <strategy_name>` but also in other time when watcher tries to compute cluster data model.
Here is log attached.
2020-04-28 17:55:38.746 7 DEBUG watcher.
2020-04-28 17:55:38.748 7 ERROR watcher.
2020-04-28 17:55:38.748 7 ERROR watcher.
2020-04-28 17:55:38.748 7 ERROR watcher.
2020-04-28 17:55:38.748 7 ERROR watcher.
2020-04-28 17:55:38.748 7 ERROR watcher.
2020-04-28 17:55:38.748 7 ERROR watcher.
2020-04-28 17:55:38.748 7 ERROR watcher.
2020-04-28 17:55:38.748 7 ERROR watcher.
2020-04-28 17:55:38.748 7 ERROR watcher.
2020-04-28 17:55:38.748 7 ERROR watcher.
2020-04-28 17:55:38.748 7 ERROR watcher.
2020-04-28 17:55:38.748 7 ERROR watcher.
2020-04-28 17:55:38.748 7 ERROR watcher.
2020-04-28 17:55:38.748 7 ERROR watcher.
2020-04-28 17:55:38.748 7 ERROR watcher.
2020-04-28 17:55:38.748 7 ERROR watcher.
The following helped me:
https:/
Changed this line from `self._audit_scope = None` to `self._audit_scope = []`
Or little if here https:/
and on other places (for example https:/
summary: |
- Decision engine logs an error is scope is None + Decision engine logs an error if scope is None |
Changed in watcher: | |
assignee: | nobody → licanwei (li-canwei2) |
Fix proposed to branch: master /review. opendev. org/733938
Review: https:/