mirror of
https://github.com/ceph/ceph
synced 2025-02-21 18:17:42 +00:00
ceph_manager: don't add an osd to live_osds until it's been revived
also waits to remove it from dead_osds. this fixes an issue where do_sighup tries to send a signal to an osd that has not been revived yet. Signed-off-by: Andrew Schoen <aschoen@redhat.com>
This commit is contained in:
parent
b2187b79f3
commit
a3c9a763b1
@ -355,9 +355,9 @@ class Thrasher:
|
||||
if osd is None:
|
||||
osd = random.choice(self.dead_osds)
|
||||
self.log("Reviving osd %s" % (str(osd),))
|
||||
self.live_osds.append(osd)
|
||||
self.dead_osds.remove(osd)
|
||||
self.ceph_manager.revive_osd(osd, self.revive_timeout)
|
||||
self.dead_osds.remove(osd)
|
||||
self.live_osds.append(osd)
|
||||
|
||||
def out_osd(self, osd=None):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user