charm_tests/ceph/rbd_mirror: Workaround upstream Ceph Luminous bug

Fixes #208
This commit is contained in:
Frode Nordahl
2019-03-28 17:25:46 +01:00
parent d93c0cd267
commit 7b7dc7ec55

View File

@@ -97,7 +97,9 @@ class CephRBDMirrorBase(test_utils.OpenStackBaseTest):
break
if check_entries_behind_master:
m = rep.match(image['description'])
if m and m.group(1) != '0':
# NOTE(fnordahl): Tactical fix for upstream Ceph
# Luminous bug https://tracker.ceph.com/issues/23516
if m and int(m.group(1)) > 42:
logging.info('entries_behind_master={}'
.format(m.group(1)))
break