Skip to content

Commit

Permalink
Rados id, make sure includes client prefix
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Indenbaum <[email protected]>
  • Loading branch information
Alexander Indenbaum committed Nov 30, 2023
1 parent 391ab8a commit 5eee6f4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion control/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,15 @@ def _start_monitor_client(self):
self.logger.info("CEPH monitor client is disabled")
return
monitor_client = '/usr/local/bin/ceph-nvmeof'
client_prefix = "client."
rados_id = self.config.get_with_default("ceph", "id", "client.admin")
if not rados_id.startswith(client_prefix):
rados_id = client_prefix + rados_id
cmd = [ monitor_client,
"--gateway-name", self.name,
"--gateway-address", self._gateway_address(),
'-c', '/etc/ceph/ceph.conf',
'-n', 'client.nvmeof',
'-n', rados_id,
'-k', '/etc/ceph/keyring']
self.logger.info(f"Starting {' '.join(cmd)}")
try:
Expand Down

0 comments on commit 5eee6f4

Please sign in to comment.