This is per https://tracker.ceph.com/issues/64333#note-17 describing
driving factors of a catastrophic cluster failure.
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
(cherry picked from commit
629ba7bd349d48cdaa6d094751e7cfce651ba2bc)
``--force``
:Description: Override an existing profile by the same name, and allow
- setting a non-4K-aligned stripe_unit.
+ setting a non-4K-aligned stripe_unit. Overriding an existing
+ profile can be dangerous, and thus ``--yes-i-really-mean-it``
+ must be used as well.
:Type: String
:Required: No.
err = 0;
goto reply_no_propose;
}
+ bool force_no_fake = false;
+ cmd_getval(cmdmap, "yes_i_really_mean_it", force_no_fake);
if (!force) {
err = -EPERM;
ss << "will not override erasure code profile " << name
<< " is different from the proposed profile "
<< profile_map;
goto reply_no_propose;
+ } else if (!force_no_fake) {
+ err = -EPERM;
+ ss << "overriding erasure code profile can be DANGEROUS"
+ << "; add --yes-i-really-mean-it to do it anyway";
+ goto reply_no_propose;
}
}