mon entity needs to start with `client.`
Signed-off-by: Michael Fritch <mfritch@suse.com>
if 'UNITTEST' in os.environ:
import tests
-from .module import CephadmOrchestrator
+from .module import CephadmOrchestrator, name_to_config_section
Map from daemon names to ceph entity names (as seen in config)
"""
daemon_type = name.split('.', 1)[0]
- if daemon_type in ['rgw', 'rbd-mirror', 'crash']:
+ if daemon_type in ['rgw', 'rbd-mirror', 'nfs', 'crash']:
return 'client.' + name
elif daemon_type in ['mon', 'osd', 'mds', 'mgr', 'client']:
return name
def create_keyring(self):
# type: () -> str
- entity = 'client.' + self.get_rados_user()
+ entity = cephadm.name_to_config_section(self.get_rados_user())
osd_caps='allow rw pool=%s' % (self.pool)
if self.namespace: