Do not add an osd attempting to boot to the map if NOUP is sent. Instead,
send it the latest osdmap so it knows that it's not allowed to boot.
Signed-off-by: Sage Weil <sage@newdream.net>
return true;
}
+ // noup?
+ if (osdmap.test_flag(CEPH_OSDMAP_NOUP)) {
+ dout(7) << "preprocess_boot NOUP set, informing " << m->get_orig_source_inst() << dendl;
+ send_latest(m, m->sb.current_epoch+1);
+ return true;
+ }
+
dout(10) << "preprocess_boot from " << m->get_orig_source_inst() << dendl;
return false;