]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/mgr: always add "application" label to pool 34871/head
authorKefu Chai <kchai@redhat.com>
Fri, 1 May 2020 04:18:27 +0000 (12:18 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 1 May 2020 04:20:15 +0000 (12:20 +0800)
otherwise monitor complains like
```
 health={'status': 'HEALTH_WARN', 'checks': [{'severity': 'HEALTH_WARN', 'summary': {'message': '1 pool(s) do not have an application enabled', 'count': 1}, 'detail': [{'message': "application not
enabled on pool 'dashboard_pool3'"}, {'message': "use 'ceph osd pool application enable <pool-name> <app-name>', where <app-name> is 'cephfs', 'rbd', 'rgw', or freeform for custom applications."}],
'muted': False, 'type': 'POOL_APP_NOT_ENABLED'}], 'mutes': []}
```

and if test checks for the healthy status, the test fails like:
```
2020-04-30T17:29:54.498 INFO:tasks.cephfs_test_runner:    self.assertEqual(health['status'], 'HEALTH_OK', msg='health={}'.format(health))
2020-04-30T17:29:54.498 INFO:tasks.cephfs_test_runner:AssertionError: 'HEALTH_WARN' != 'HEALTH_OK'
```

Signed-off-by: Kefu Chai <kchai@redhat.com>
qa/tasks/mgr/dashboard/test_pool.py

index 969318d2a94b3b79496cf1396cf7e992ecd05093..745886d670aec9cb37b47de517cc4ff128f519d8 100644 (file)
@@ -245,6 +245,7 @@ class PoolTest(DashboardTestCase):
             'compression_mode': 'aggressive',
             'compression_max_blob_size': '10000000',
             'compression_required_ratio': '0.8',
+            'application_metadata': ['rbd'],
             'configuration': {
                 'rbd_qos_bps_limit': 2048,
                 'rbd_qos_iops_limit': None,