Skip to content

Commit

Permalink
discovery: use rados_id to connect to ceph cluster
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Indenbaum <[email protected]>
  • Loading branch information
Alexander Indenbaum committed Oct 24, 2023
1 parent e1bed1c commit 6308d4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion control/discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,8 @@ def __init__(self, config):

ceph_pool = self.config.get("ceph", "pool")
ceph_conf = self.config.get("ceph", "config_file")
conn = rados.Rados(conffile=ceph_conf)
rados_id = self.config.get_with_default("ceph", "id", "")
conn = rados.Rados(conffile=ceph_conf, rados_id=rados_id)
conn.connect()
self.ioctx = conn.open_ioctx(ceph_pool)

Expand Down

0 comments on commit 6308d4f

Please sign in to comment.