Some tests fail sometimes, because of plugin loading exception

Bug #1617240 reported by David TARDIVEL on 2016-08-26
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description


Captured traceback:
    Traceback (most recent call last):
      File "watcher/tests/decision_engine/loading/", line 29, in test_endpoints
        loaded = self.loader.load(endpoint)
      File "watcher/common/loader/", line 59, in load
        raise exception.LoadingError(name=name)
    watcher.common.exception.LoadingError: Error loading plugin 'default'


Captured traceback:
    Traceback (most recent call last):
      File "/data/bcom/OPENSTACK/watcher/.tox/py27/local/lib/python2.7/site-packages/mock/", line 1305, in patched
        return func(*args, **keywargs)
      File "watcher/tests/decision_engine/loading/", line 82, in test_load_cluster_data_model_collectors
        collector = self.collector_loader.load(self.collector_name)
      File "watcher/common/loader/", line 59, in load
        raise exception.LoadingError(name=name)
    watcher.common.exception.LoadingError: Error loading plugin 'compute'

Fix proposed to branch: master

Changed in watcher:
status: Confirmed → In Progress
Changed in watcher:
status: In Progress → Fix Committed

Submitter: Jenkins
Branch: master

commit 32c13d00fe23161340e87aa38933475b3571c68f
Author: David TARDIVEL <email address hidden>
Date: Fri Aug 26 12:08:45 2016 +0200

    Fix loading of plugin configuration parameters

    When the load a plugin, we need to reload once the watcher
    configuration data, in order to include the plugin parameters in
    cfg.CONF data dict. To reload the conf, we just call self.conf().
    But every time we call this method, cfg.CONF is cleaned, and we
    lost previously loaded parameters. This generated the exception
    RequiredOptError and the plugin was not correctly loaded.

    To fix it, we have just to add the watcher configuration
    filename as argument of self.conf().

    Change-Id: Ic2384b68f6d604640127fe06893d0f808aee34b7
    Closes-Bug: #1617240

Changed in watcher:
status: Fix Committed → Fix Released

This issue was fixed in the openstack/watcher 0.29.0 release.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers