If we are upgrading to pacific, we need to restart the mgr *after* the
mons have a pacific quorum so that they can get the kv subscriptions.
Signed-off-by: Sage Weil <sage@newdream.net>
mgr_map.dump(&f);
return f.get();
});
+ } else if (what == "have_local_config_map") {
+ with_gil_t with_gil{no_gil};
+ f.dump_bool("have_local_config_map", have_local_config_map);
+ return f.get();
} else {
derr << "Python module requested unknown data '" << what << "'" << dendl;
with_gil_t with_gil{no_gil};
})
return
+ # complete mon upgrade?
+ if daemon_type == 'mon':
+ if not self.mgr.get("have_local_config_map"):
+ logger.info('Upgrade: Restarting mgr now that mons are runnig pacific')
+ need_upgrade_self = True
+
if need_upgrade_self:
try:
self.mgr.mgr_service.fail_over()