MCPcopy Create free account
hub / github.com/ceph/ceph / test_pool_removal

Method test_pool_removal

qa/tasks/mgr/test_progress.py:383–400  ·  view source on GitHub ↗

That a pool removed during OSD recovery causes the progress event to be correctly marked complete once there is no more data to move.

(self)

Source from the content-addressed store, hash-verified

381 self.assertEqual(self._osd_in_out_events_count(), 0)
382
383 def test_pool_removal(self):
384 """
385 That a pool removed during OSD recovery causes the
386 progress event to be correctly marked complete once there
387 is no more data to move.
388 """
389 self.mgr_cluster.mon_manager.raw_cluster_cmd(
390 'config', 'set', 'mgr',
391 'mgr/progress/allow_pg_recovery_event', 'true')
392
393 ev = self._simulate_failure()
394
395 self.mgr_cluster.mon_manager.remove_pool(self.POOL)
396
397 # Event should complete promptly
398 self.wait_until_true(lambda: self._is_complete(ev['id']),
399 timeout=self.RECOVERY_PERIOD)
400 self.assertEqual(self._osd_in_out_events_count(), 0)
401
402 def test_osd_came_back(self):
403 """

Callers

nothing calls this directly

Calls 6

_simulate_failureMethod · 0.95
_is_completeMethod · 0.95
raw_cluster_cmdMethod · 0.80
remove_poolMethod · 0.45
wait_until_trueMethod · 0.45

Tested by

no test coverage detected