]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cephadm: provide meta during bootstrap
authorSage Weil <sage@newdream.net>
Wed, 24 Feb 2021 16:59:44 +0000 (11:59 -0500)
committerSage Weil <sage@newdream.net>
Thu, 25 Feb 2021 19:44:26 +0000 (14:44 -0500)
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>
src/cephadm/cephadm

index 477ebfe616110b17544695fcf98f413b0c389f9b..a00081a87697bcac7fd7d1fa14608c8686ce3ba9 100755 (executable)
@@ -3458,6 +3458,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)
 
@@ -3503,6 +3504,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])