]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mimic: common/config: parse --log-early but ignore it 33130/head
authorSage Weil <sage@redhat.com>
Fri, 7 Feb 2020 17:48:02 +0000 (11:48 -0600)
committerSage Weil <sage@redhat.com>
Fri, 7 Feb 2020 17:48:02 +0000 (11:48 -0600)
Ideally we woudl backport 933d5084cb66f299a7bf60f0a2a6382c0bd3cb2f, but
it does not apply cleanly to mimic.  Among other things, we modifies
behavior that changed in cd6a5b9c40779956629803f222c365bdb291a169 and
the related commits, which is non-trivial and not worth backporting.

We want this in mimic anyway because ceph_manager.py is now passing it
for all of the raw_cluster_cmds, and it would be even more awkward to
make that behavior conditional on version.

Fixes: https://tracker.ceph.com/issues/43946
Signed-off-by: Sage Weil <sage@redhat.com>
src/common/config.cc

index 24ac74c6dbd317bdbfc3e47384f6e72cdec42bfa..748e7d29bacc0ce4b87853f6fa3c8d09bf65a917 100644 (file)
@@ -575,6 +575,11 @@ int md_config_t::parse_argv(std::vector<const char*>& args, int level)
     else if (ceph_argparse_flag(args, i, "--no-mon-config", (char*)NULL)) {
       no_mon_config = true;
     }
+    else if (ceph_argparse_flag(args, i, "--log-early", (char*)NULL)) {
+      // parse but ignore this option
+      cerr << "WARNING: ignoring --log-early option (not implemented)"
+          << std::endl;
+    }
     else if (ceph_argparse_flag(args, i, "--mon-config", (char*)NULL)) {
       no_mon_config = false;
     }