From: Kefu Chai Date: Fri, 1 May 2020 04:18:27 +0000 (+0800) Subject: qa/tasks/mgr: always add "application" label to pool X-Git-Tag: v16.1.0~2376^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a75d43efbff0747f5506b9fbbccc684e4e77cedb;p=ceph.git 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 --- 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,