]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
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)
commita75d43efbff0747f5506b9fbbccc684e4e77cedb
treed110415db186da37128e464ab6babed6bcd3732d
parent84fbf1c5cddc096817472377fab4bed0d9434b6f
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 <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