]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: provide meta during bootstrap
authorSage Weil <sage@newdream.net>
Wed, 24 Feb 2021 16:59:44 +0000 (11:59 -0500)
committerSebastian Wagner <sebastian.wagner@suse.com>
Tue, 9 Mar 2021 14:29:32 +0000 (15:29 +0100)
This is slightly gross, but we need ctx.meta_json for the bootstrap case,
which deploys a mon and mgr.

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 42d11d46b5f0b6707befd0e3fbf51926290df004)

src/cephadm/cephadm

index e316f0a7b94e5ce63e42bf1ecd70823aef48dc67..8125461714f1167a435026578748cbd997712248 100755 (executable)
@@ -3469,6 +3469,7 @@ def create_mon(
     fsid: str, mon_id: str
 ) -> None:
     mon_c = get_container(ctx, fsid, 'mon', mon_id)
+    ctx.meta_json = json.dumps({"service_name": "mon"})
     deploy_daemon(ctx, fsid, 'mon', mon_id, mon_c, uid, gid,
                   config=None, keyring=None)
 
@@ -3514,6 +3515,7 @@ def create_mgr(
     mgr_keyring = '[mgr.%s]\n\tkey = %s\n' % (mgr_id, mgr_key)
     mgr_c = get_container(ctx, fsid, 'mgr', mgr_id)
     # Note:the default port used by the Prometheus node exporter is opened in fw
+    ctx.meta_json = json.dumps({"service_name": "mgr"})
     deploy_daemon(ctx, fsid, 'mgr', mgr_id, mgr_c, uid, gid,
                   config=config, keyring=mgr_keyring, ports=[9283])