Make sure all running OSDs support the feature before we start using it
(even if the config option is on!).
Fixes: #7642
Signed-off-by: Sage Weil <sage@inktank.com>
err = -EPERM;
goto reply;
}
+ err = check_cluster_features(CEPH_FEATURE_OSD_PRIMARY_AFFINITY, ss);
+ if (err < 0)
+ goto reply;
if (osdmap.exists(id)) {
pending_inc.new_primary_affinity[id] = ww;
ss << "set osd." << id << " primary-affinity to " << w << " (" << ios::hex << ww << ios::dec << ")";