Tell stevedore not to force verify requirements

Disable the strict requirements checking in pkg_resources by telling
stevedore to bypass it. This avoids issues with devstack configurations
where the "wrong" version of a library is installed, even though it is
functional.

Closes-Bug: #1454572
Change-Id: Idbdbdd2548ad39325d8058eb19ee398f732c2e44
This commit is contained in:
Doug Hellmann 2015-04-22 04:21:36 +00:00 committed by Steven Hardy
parent a6438833da
commit 46fb19bb3a
3 changed files with 3 additions and 3 deletions

View File

@ -156,4 +156,4 @@ def initialise():
_mgr = extension.ExtensionManager(
namespace='heat.clients',
invoke_on_load=False,
verify_requirements=True)
verify_requirements=False)

View File

@ -38,7 +38,7 @@ def _get_mapping(namespace):
mgr = extension.ExtensionManager(
namespace=namespace,
invoke_on_load=False,
verify_requirements=True)
verify_requirements=False)
return [[name, mgr[name].plugin] for name in mgr.names()]

View File

@ -52,7 +52,7 @@ def _get_template_extension_manager():
return extension.ExtensionManager(
namespace='heat.templates',
invoke_on_load=False,
verify_requirements=True,
verify_requirements=False,
on_load_failure_callback=raise_extension_exception)