]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-daemon: --config, not --conf
authorSage Weil <sage@redhat.com>
Fri, 27 Sep 2019 19:55:24 +0000 (14:55 -0500)
committerSage Weil <sage@redhat.com>
Wed, 2 Oct 2019 12:11:12 +0000 (07:11 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/ceph-daemon
test_ceph_daemon.sh

index 848f9304f4a1542a4fee9a4f4531dc51894c3ced..1886c3b0d30427bd9ce8d759f7fca7a535065bb4 100755 (executable)
@@ -106,7 +106,7 @@ def create_daemon_dirs(fsid, daemon_type, daemon_id, uid, gid,
     os.chown(log_dir, uid, gid)
 
     if config:
-        with open(data_dir + '/conf', 'w') as f:
+        with open(data_dir + '/config', 'w') as f:
             f.write(config)
             os.fchown(f.fileno(), uid, gid)
     if keyring:
@@ -159,7 +159,7 @@ def get_container(fsid, daemon_type, daemon_id):
         image=args.image,
         entrypoint='ceph-' + daemon_type,
         args=['-i', daemon_id,
-              '-c', cdata_dir + '/conf',
+              '-c', cdata_dir + '/config',
               '-f', # foreground
         ] + extra_args + get_daemon_args(fsid, daemon_type, daemon_id),
         volume_mounts=mounts,
@@ -215,7 +215,7 @@ def deploy_daemon(fsid, daemon_type, daemon_id, c, uid, gid,
         ).run()
 
         # write conf
-        with open(mon_dir + '/conf', 'w') as f:
+        with open(mon_dir + '/config', 'w') as f:
             f.write(config)
     else:
         # dirs, conf, keyring
@@ -490,7 +490,7 @@ def command_bootstrap():
         },
     ).run()
 
-    with open(mon_dir + '/conf', 'w') as f:
+    with open(mon_dir + '/config', 'w') as f:
         f.write(config)
 
     mon_c = get_container(fsid, 'mon', mon_id)
@@ -508,10 +508,10 @@ def command_bootstrap():
                     '\tkey = ' + admin_key + '\n')
             os.fchmod(f.fileno(), 0o600)
         logging.info('wrote keyring to %s' % args.output_keyring)
-    if args.output_conf:
-        with open(args.output_conf, 'w') as f:
+    if args.output_config:
+        with open(args.output_config, 'w') as f:
             f.write(config)
-        logging.info('wrote config to %s' % args.output_conf)
+        logging.info('wrote config to %s' % args.output_config)
 
     return 0
 
@@ -750,7 +750,7 @@ parser_bootstrap.add_argument(
     '--output-keyring',
     help='location to write keyring file with new cluster admin and mon keys')
 parser_bootstrap.add_argument(
-    '--output-conf',
+    '--output-config',
     help='location to write conf file to connect to new cluster')
 
 parser_deploy = subparsers.add_parser(
index 938874be9e33bb8058fb81e5eb9565355545ba77..701319911e5becb4418f88b3f0a3bd337dafe983 100755 (executable)
@@ -16,7 +16,7 @@ EOF
                   --mon-ip 10.3.64.23 \
                   --config c \
                   --output-keyring k \
-                  --output-conf c
+                  --output-config c
 chmod 644 k c
 
 # mon.b