Climate Manager crashes if a plugin crash during initialization
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Blazar |
Fix Released
|
Medium
|
Pablo Andres Fuente |
Bug Description
If any of the plugins loaded by Climate Manager crashes, the whole manager crashes. It would be better if a warning is shown telling which plugin fail and why, and load the rest of plugins that actually works.
This is an example of the actual output when a plugin crash during initialization:
2014-03-18 11:56:54.604 15875 ERROR stevedore.extension [-] Could not load 'physical.
2014-03-18 11:56:54.604 15875 ERROR stevedore.extension [-] no such option in group physical:host: climate_username
2014-03-18 11:56:54.604 15875 TRACE stevedore.extension Traceback (most recent call last):
2014-03-18 11:56:54.604 15875 TRACE stevedore.extension File "/opt/stack/
2014-03-18 11:56:54.604 15875 TRACE stevedore.extension verify_
2014-03-18 11:56:54.604 15875 TRACE stevedore.extension File "/opt/stack/
2014-03-18 11:56:54.604 15875 TRACE stevedore.extension verify_
2014-03-18 11:56:54.604 15875 TRACE stevedore.extension File "/opt/stack/
2014-03-18 11:56:54.604 15875 TRACE stevedore.extension obj = plugin(
2014-03-18 11:56:54.604 15875 TRACE stevedore.extension File "/opt/stack/
2014-03-18 11:56:54.604 15875 TRACE stevedore.extension self.username = config.
2014-03-18 11:56:54.604 15875 TRACE stevedore.extension File "/opt/stack/
2014-03-18 11:56:54.604 15875 TRACE stevedore.extension return self._conf.
2014-03-18 11:56:54.604 15875 TRACE stevedore.extension File "/opt/stack/
2014-03-18 11:56:54.604 15875 TRACE stevedore.extension value = self._do_get(name, group, namespace)
2014-03-18 11:56:54.604 15875 TRACE stevedore.extension File "/opt/stack/
2014-03-18 11:56:54.604 15875 TRACE stevedore.extension info = self._get_
2014-03-18 11:56:54.604 15875 TRACE stevedore.extension File "/opt/stack/
2014-03-18 11:56:54.604 15875 TRACE stevedore.extension raise NoSuchOptError(
2014-03-18 11:56:54.604 15875 TRACE stevedore.extension NoSuchOptError: no such option in group physical:host: climate_username
2014-03-18 11:56:54.604 15875 TRACE stevedore.extension
2014-03-18 11:56:54.606 15875 CRITICAL climate [-] PluginConfigura
2014-03-18 11:56:54.606 15875 TRACE climate Traceback (most recent call last):
2014-03-18 11:56:54.606 15875 TRACE climate File "/usr/local/
2014-03-18 11:56:54.606 15875 TRACE climate sys.exit(main())
2014-03-18 11:56:54.606 15875 TRACE climate File "/opt/stack/
2014-03-18 11:56:54.606 15875 TRACE climate manager_
2014-03-18 11:56:54.606 15875 TRACE climate File "/opt/stack/
2014-03-18 11:56:54.606 15875 TRACE climate self.plugins = self._get_plugins()
2014-03-18 11:56:54.606 15875 TRACE climate File "/opt/stack/
2014-03-18 11:56:54.606 15875 TRACE climate raise exceptions.
2014-03-18 11:56:54.606 15875 TRACE climate PluginConfigura
2014-03-18 11:56:54.606 15875 TRACE climate
Changed in climate: | |
assignee: | nobody → Pablo Andres Fuente (pablo-a-fuente) |
Changed in blazar: | |
milestone: | none → 0.1.1 |
Changed in blazar: | |
status: | Fix Committed → Fix Released |
Won't you mind to work on this bug?
Also there should be some kind of mechanism to reject requests coming to manager, if they refer to failed plugin.