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)
| 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 | """ |
nothing calls this directly
no test coverage detected