Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.

Commit

Permalink
Active manager is required as Ceph upgrades. Also fix a bug when call…
Browse files Browse the repository at this point in the history
…s translate_to_id() function.

Signed-off-by: Li Ning <[email protected]>
  • Loading branch information
ningli16 committed Jun 15, 2018
1 parent 43d539e commit 5d8dadf
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions deploy/mod/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def __init__(self, tunings=""):
self.cluster["mdss"][mds] = ip_handler.getIpByHostInSubnet(mds)

for osd in self.cluster["osds"]:
devices_id = self.translate_to_id(self.all_conf_data.get_list(osd))
devices_id = self.translate_to_id(osd, self.all_conf_data.get_list(osd))
self.cluster[osd] = devices_id

self.cluster["fs"] = "xfs"
Expand Down Expand Up @@ -917,11 +917,8 @@ def start_mgr(self, force=False):
formatted_outStr = common.format_pdsh_return(outStr)
ceph_status = formatted_outStr[head]
#outList = [x.strip() for x in outStr.split('\n')]
if "no active mgr" in outStr:
common.pdsh(user, [head], "ceph auth get-or-create mgr.admin mon 'allow *' && ceph-mgr -i %s" % ceph_status["fsid"], option="console")
common.printout("LOG", "create mgr success: admin")
else:
common.printout("LOG", "not need create mgr")
common.pdsh(user, [head], "ceph auth get-or-create mgr.$name mon 'allow profile mgr' osd 'allow *' mds 'allow *' && ceph-mgr -i %s" % ceph_status["fsid"], option="console")
common.printout("LOG", "create mgr success: admin")

def osd_perf_reset(self):
osd_list = self.get_daemon_info_from_ceph_conf("osd")
Expand Down

0 comments on commit 5d8dadf

Please sign in to comment.