self.assertStatus(403)
def test_pool_configuration(self):
- pool_name = 'device_health_metrics'
+ pool_name = '.mgr'
data = self._get('/api/pool/{}/configuration'.format(pool_name))
self.assertStatus(200)
self.assertSchema(data, JList(JObj({
def test_devicehealth(self):
self._selftest_plugin("devicehealth")
- # Clean up the pool that the module creates, because otherwise
- # it's low PG count causes test failures.
- pool_name = "device_health_metrics"
- self.mgr_cluster.mon_manager.raw_cluster_cmd(
- "osd", "pool", "delete", pool_name, pool_name,
- "--yes-i-really-really-mean-it")
def test_selftest_run(self):
self._load_module("selftest")
npx cypress verify
npx cypress info
-# Remove device_health_metrics pool
-# Low pg count causes OSD removal failure.
-ceph device monitoring off
-ceph tell mon.\* injectargs '--mon-allow-pool-delete=true'
-ceph osd pool rm device_health_metrics device_health_metrics --yes-i-really-really-mean-it
-
# Take `orch device ls` and `orch ps` as ground truth.
ceph orch device ls --refresh
ceph orch ps --refresh