]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/osd: write the 'ready' meta on OSD::mkfs().
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Wed, 29 Sep 2021 20:12:18 +0000 (20:12 +0000)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Wed, 29 Sep 2021 23:18:13 +0000 (23:18 +0000)
This is for the compliance with the classical OSD. No problem
with lack of this file has been identified yet.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/crimson/osd/osd.cc

index 43b67e37e4abfc85b37322a502e66bf378649e63..4bc1dda842e3c548758984293216f1c39a609cf7 100644 (file)
@@ -172,7 +172,8 @@ seastar::future<> OSD::mkfs(uuid_d osd_uuid, uuid_d cluster_fsid)
     return when_all_succeed(
       store.write_meta("ceph_fsid", cluster_fsid.to_string()),
       store.write_meta("whoami", std::to_string(whoami)),
-      _write_key_meta());
+      _write_key_meta(),
+      store.write_meta("ready", "ready"));
   }).then_unpack([cluster_fsid, this] {
     fmt::print("created object store {} for osd.{} fsid {}\n",
                local_conf().get_val<std::string>("osd_data"),