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:
Andrew Schoen 2015-07-28 17:02:28 -05:00
parent b2187b79f3
commit a3c9a763b1

View File

@ -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):
"""