From 4d79b53bee78dc8defc254ab4da3be0126b8ff10 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 27 Sep 2019 14:55:24 -0500 Subject: [PATCH] ceph-daemon: --config, not --conf Signed-off-by: Sage Weil --- src/ceph-daemon | 16 ++++++++-------- test_ceph_daemon.sh | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/ceph-daemon b/src/ceph-daemon index 848f9304f4a15..1886c3b0d3042 100755 --- a/src/ceph-daemon +++ b/src/ceph-daemon @@ -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( diff --git a/test_ceph_daemon.sh b/test_ceph_daemon.sh index 938874be9e33b..701319911e5be 100755 --- a/test_ceph_daemon.sh +++ b/test_ceph_daemon.sh @@ -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 -- 2.39.5