(self)
| 232 | 'osd', 'unset', 'norecover') |
| 233 | |
| 234 | def setUp(self): |
| 235 | super(TestProgress, self).setUp() |
| 236 | # Ensure we have at least four OSDs |
| 237 | if self._osd_count() < 4: |
| 238 | self.skipTest("Not enough OSDS!") |
| 239 | |
| 240 | # Remove any filesystems so that we can remove their pools |
| 241 | if self.mds_cluster: |
| 242 | self.mds_cluster.mds_stop() |
| 243 | self.mds_cluster.mds_fail() |
| 244 | self.mds_cluster.delete_all_filesystems() |
| 245 | |
| 246 | # Remove all other pools |
| 247 | for pool in self.mgr_cluster.mon_manager.get_osd_dump_json()['pools']: |
| 248 | # There might be some pools that wasn't created with this test. |
| 249 | # So we would use a raw cluster command to remove them. |
| 250 | pool_name = pool['pool_name'] |
| 251 | if pool_name in self.mgr_cluster.mon_manager.pools: |
| 252 | self.mgr_cluster.mon_manager.remove_pool(pool_name) |
| 253 | else: |
| 254 | self.mgr_cluster.mon_manager.raw_cluster_cmd( |
| 255 | 'osd', 'pool', 'rm', pool_name, pool_name, |
| 256 | "--yes-i-really-really-mean-it") |
| 257 | |
| 258 | self._load_module("progress") |
| 259 | self.mgr_cluster.mon_manager.raw_cluster_cmd('progress', 'clear') |
| 260 | |
| 261 | def _simulate_failure(self, osd_ids=None): |
| 262 | """ |
nothing calls this directly
no test coverage detected