Old modules may be in the mgrmap (and always_on) but no longer exist. Do
not try to load those or raise errors about them.
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit
a59f4e5deb49536af23473658e0f04d0f495829f)
#undef dout_prefix
#define dout_prefix *_dout << "mgr[py] "
-
+std::set<std::string> obsolete_modules = {
+ "orchestrator_cli",
+};
void PyModuleRegistry::init()
{
// report failed always_on modules as health errors
for (const auto& name : mgr_map.get_always_on_modules()) {
+ if (obsolete_modules.count(name)) {
+ continue;
+ }
if (!active_modules->module_exists(name)) {
if (failed_modules.find(name) == failed_modules.end() &&
dependency_modules.find(name) == dependency_modules.end()) {