From a75d43efbff0747f5506b9fbbccc684e4e77cedb Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 1 May 2020 12:18:27 +0800 Subject: [PATCH] qa/tasks/mgr: always add "application" label to pool 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 ', where 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 --- qa/tasks/mgr/dashboard/test_pool.py | 1 + 1 file changed, 1 insertion(+) diff --git a/qa/tasks/mgr/dashboard/test_pool.py b/qa/tasks/mgr/dashboard/test_pool.py index 969318d2a94..745886d670a 100644 --- a/qa/tasks/mgr/dashboard/test_pool.py +++ b/qa/tasks/mgr/dashboard/test_pool.py @@ -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, -- 2.47.3