]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Merge PR #31141 into master
authorSage Weil <sage@redhat.com>
Fri, 25 Oct 2019 19:30:33 +0000 (14:30 -0500)
committerSage Weil <sage@redhat.com>
Fri, 25 Oct 2019 19:30:33 +0000 (14:30 -0500)
* refs/pull/31141/head:
ceph-daemon: fix warning message
ceph-daemon: fix enable with conflicting ceph.target files
test_ceph_daemon.sh: use same fsid as qa/standalone/test_ceph_daemon.sh
test_ceph_daemon.sh: use other latest-master image
ceph-daemon: fix pathify (fix shell --config/--keyring)
ceph-daemon: /var/run/ceph -> /var/run/ceph/$fsid

Reviewed-by: Sebastian Wagner <swagner@suse.com>
1  2 
src/ceph-daemon

diff --cc src/ceph-daemon
index c7bfcd55f65a2710dd4587a538363a9335dcb2fa,3ae8d8feb816c776fa727d4b46cc33be6e742b38..6dfc456c004732a889fbafc92ec2363cd341dad8
@@@ -337,11 -333,10 +333,12 @@@ def get_config_and_both_keyrings()
  def get_container_mounts(fsid, daemon_type, daemon_id):
      mounts = {}
      if fsid:
+         mounts['/var/run/ceph/%s' % fsid] = '/var/run/ceph:z'
          log_dir = get_log_dir(fsid)
          mounts[log_dir] = '/var/log/ceph:z'
 -        mounts['/var/lib/ceph/%s/crash' % fsid] = '/var/lib/ceph/crash:z'
 +        crash_dir = '/var/lib/ceph/%s/crash' % fsid
 +        if os.path.exists(crash_dir):
 +            mounts[crash_dir] = '/var/lib/ceph/crash:z'
  
      if daemon_id:
          data_dir = get_data_dir(fsid, daemon_type, daemon_id)