Improve error message when plugin detection fails.

The previous message didn't give much detail, which has led to
some confusion and questions from users. This change attempts to
add some more detail and help in debugging why a plugin detection
might fail.

Story: 2004696
Task: 28712
Change-Id: Ifc0a1bca747f655765aaa23b23751b52d4586133
This commit is contained in:
Joseph Davis 2019-01-03 11:15:35 -08:00 committed by Witold Bedyk
parent 785b769179
commit 710253232f
1 changed files with 6 additions and 2 deletions

View File

@ -469,8 +469,12 @@ def plugin_detection(
plugin_config.merge(new_config)
elif not skip_failed:
LOG.warning("Failed detection of plugin %s."
"\n\tPossible causes: Service not found or missing"
"arguments.", detect.name)
"\n\tPossible causes: Service not found or missing arguments. "
"\n\tFor services, the service is required to be running at "
"detection time. For other plugins, check the args (paths, "
"urls, etc)."
"\n\tDetection may also fail if monasca-agent services "
"(statsd, forwarder, collector) are not running.", detect.name)
return None
return plugin_config