]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cephadm: mount keyring deployed for nvmeof daemon
authorAdam King <adking@redhat.com>
Thu, 27 Jul 2023 19:47:51 +0000 (15:47 -0400)
committerAdam King <adking@redhat.com>
Tue, 8 Aug 2023 14:49:28 +0000 (10:49 -0400)
Before, we were just using the client.admin keyring
as a temporary workaround while we figured out
how to get the keyring to work. We should swap
over to using the keyring we actually generated
for the nvmeof daemon.

Signed-off-by: Adam King <adking@redhat.com>
src/cephadm/cephadm.py

index 184316a63ca6468042e8f8bcde487175290e89e9..69bc3113e5fe1fed441d0323ac2f924567196f31 100755 (executable)
@@ -1024,8 +1024,7 @@ class CephNvmeof(object):
     def get_container_mounts(data_dir: str) -> Dict[str, str]:
         mounts = dict()
         mounts[os.path.join(data_dir, 'config')] = '/etc/ceph/ceph.conf:z'
-        # mounts[os.path.join(data_dir, 'keyring')] = '/etc/ceph/keyring:z'
-        mounts['/etc/ceph/ceph.client.admin.keyring'] = '/etc/ceph/keyring:z'  # TODO: FIXME
+        mounts[os.path.join(data_dir, 'keyring')] = '/etc/ceph/keyring:z'
         mounts[os.path.join(data_dir, 'ceph-nvmeof.conf')] = '/src/ceph-nvmeof.conf:z'
         mounts[os.path.join(data_dir, 'configfs')] = '/sys/kernel/config'
         mounts['/dev/hugepages'] = '/dev/hugepages'