summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/cephadm/services
diff options
context:
space:
mode:
authorJuan Miguel Olmo Martínez <jolmomar@redhat.com>2020-05-27 13:24:38 +0200
committerJuan Miguel Olmo Martínez <jolmomar@redhat.com>2020-06-23 12:52:27 +0200
commit68cfa109b46bb627cfdfe624815aa01ed6b6c39b (patch)
tree732435ee4dde1b491ba357a128c123bc5f573c10 /src/pybind/mgr/cephadm/services
parentMerge pull request #35668 from bk201/wip-46105 (diff)
downloadceph-68cfa109b46bb627cfdfe624815aa01ed6b6c39b.tar.xz
ceph-68cfa109b46bb627cfdfe624815aa01ed6b6c39b.zip
cephadm: error trying to get ceph auth entry for crash daemon
If your cluster has nodes with a . in the name. This will happen. Signed-off-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
Diffstat (limited to 'src/pybind/mgr/cephadm/services')
-rw-r--r--src/pybind/mgr/cephadm/services/iscsi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pybind/mgr/cephadm/services/iscsi.py b/src/pybind/mgr/cephadm/services/iscsi.py
index 5e63c4788bf..5a7d765fe1b 100644
--- a/src/pybind/mgr/cephadm/services/iscsi.py
+++ b/src/pybind/mgr/cephadm/services/iscsi.py
@@ -23,7 +23,7 @@ class IscsiService(CephadmService):
def create(self, igw_id, host, spec) -> str:
ret, keyring, err = self.mgr.check_mon_command({
'prefix': 'auth get-or-create',
- 'entity': utils.name_to_auth_entity('iscsi') + '.' + igw_id,
+ 'entity': utils.name_to_auth_entity('iscsi', igw_id),
'caps': ['mon', 'profile rbd, '
'allow command "osd blacklist", '
'allow command "config-key get" with "key" prefix "iscsi/"',