victim = standbys.pop()
self.fs.mds_stop(victim)
log.info("waiting for insufficient standby daemon warning")
- self.wait_for_health("insufficient standby daemons available", grace*2)
+ self.wait_for_health("MDS_INSUFFICIENT_STANDBY", grace*2)
# restart the standby, see that he becomes a standby, check health clears
self.fs.mds_restart(victim)
self.assertGreaterEqual(len(standbys), 1)
self.fs.mon_manager.raw_cluster_cmd('fs', 'set', self.fs.name, 'standby_count_wanted', str(len(standbys)+1))
log.info("waiting for insufficient standby daemon warning")
- self.wait_for_health("insufficient standby daemons available", grace*2)
+ self.wait_for_health("MDS_INSUFFICIENT_STANDBY", grace*2)
# Set it to 0
self.fs.mon_manager.raw_cluster_cmd('fs', 'set', self.fs.name, 'standby_count_wanted', '0')
# Create FS alpha and get mds_a to come up as active
fs_a = self.mds_cluster.newfs("alpha")
- fs_a.set_allow_multimds(True)
fs_a.set_max_mds(2)
self.mds_cluster.mds_restart(mds_a)
def test_grow_shrink(self):
# Usual setup...
fs_a, fs_b = self._setup_two()
- fs_a.set_allow_multimds(True)
- fs_b.set_allow_multimds(True)
# Increase max_mds on fs_b, see a standby take up the role
fs_b.set_max_mds(2)
# Create two filesystems which should have two ranks each
fs_a = self.mds_cluster.newfs("alpha")
- fs_a.set_allow_multimds(True)
fs_b = self.mds_cluster.newfs("bravo")
- fs_b.set_allow_multimds(True)
fs_a.set_max_mds(2)
fs_b.set_max_mds(2)