A [previous backport](https://github.com/ceph/ceph/pull/35367) from a
[master PR](https://github.com/ceph/ceph/pull/32829) changed the testing
condition for PG status from 'incomplete' to 'unknown'.
Fixes: https://tracker.ceph.com/issues/46815
Co-authored-by: Mykola Golub <mgolub@suse.com>
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
result = []
else: # pool config
pg_status = list(CephService.get_pool_pg_status(self._pool_name).keys())
- if len(pg_status) == 1 and 'unknown' in pg_status[0]:
+ if len(pg_status) == 1 and 'incomplete' in pg_status[0]:
# If config_list would be called with ioctx if it's a bad pool,
# the dashboard would stop working, waiting for the response
# that would not happen.
get.return_value = {
'by_pool': {
'1': {'active+clean': 32},
- '2': {'unknown': 32},
+ '2': {'creating+incomplete': 32},
}
}
config_list.return_value = [1, 2, 3]