]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mon/OSDMonitor: let crimson handle ECPools
authorRadosław Zarzyński <rzarzyns@redhat.com>
Tue, 24 Oct 2023 10:40:15 +0000 (12:40 +0200)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Wed, 10 Jan 2024 17:30:28 +0000 (17:30 +0000)
Signed-off-by: Radosław Zarzyński <rzarzyns@redhat.com>
src/mon/OSDMonitor.cc

index f8e379326f25f4439e685e75cc18fb391c08ab30..09ff97e6748ee13e5d9ada6f512a3ecd3c7fcf24 100644 (file)
@@ -8013,10 +8013,7 @@ int OSDMonitor::prepare_new_pool(string& name,
     /* crimson-osd requires that the pool be replicated and that pg_num/pgp_num
      * be static.  User must also have specified set-allow-crimson */
     const auto *suffix = " (--crimson specified or osd_pool_default_crimson set)";
-    if (pool_type != pg_pool_t::TYPE_REPLICATED) {
-      *ss << "crimson-osd only supports replicated pools" << suffix;
-      return -EINVAL;
-    } else if (pg_autoscale_mode != "off") {
+    if (pg_autoscale_mode != "off") {
       *ss << "crimson-osd does not support changing pg_num or pgp_num, "
          << "pg_autoscale_mode must be set to 'off'" << suffix;
       return -EINVAL;