]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
ceph-daemon: bind config to default location
authorSage Weil <sage@redhat.com>
Fri, 27 Sep 2019 22:00:13 +0000 (17:00 -0500)
committerSage Weil <sage@redhat.com>
Wed, 2 Oct 2019 12:11:12 +0000 (07:11 -0500)
This is one less thing on the command line, and an easier time when inside
the container.

Signed-off-by: Sage Weil <sage@redhat.com>
src/ceph-daemon

index 33ef14a489455a6911cb1d8a4b87535b6b74cda1..7e1b14e02145dae5304327aa523bc37ed01fadc8 100755 (executable)
@@ -148,6 +148,7 @@ def get_container(fsid, daemon_type, daemon_id):
     mounts = {
         log_dir: '/var/log/ceph:z',
         data_dir: cdata_dir + ':z',
+        data_dir + '/config': '/etc/ceph/ceph.conf:z',
     }
     if daemon_type in ['mon', 'osd']:
         mounts['/run/udev'] = '/run/udev:z'
@@ -159,7 +160,6 @@ def get_container(fsid, daemon_type, daemon_id):
         image=args.image,
         entrypoint='ceph-' + daemon_type,
         args=['-i', daemon_id,
-              '-c', cdata_dir + '/config',
               '-f', # foreground
         ] + extra_args + get_daemon_args(fsid, daemon_type, daemon_id),
         volume_mounts=mounts,