]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/ceph.py: tolerate flush pg stats exception 16905/head
authorSage Weil <sage@redhat.com>
Tue, 8 Aug 2017 16:08:31 +0000 (12:08 -0400)
committerSage Weil <sage@redhat.com>
Tue, 8 Aug 2017 16:08:31 +0000 (12:08 -0400)
If the OSD doesn't see IO, it won't flush more pg/osd stats when the
luminous flag is not yet set (legacy pgmonitor mode).

Signed-off-by: Sage Weil <sage@redhat.com>
qa/tasks/ceph.py

index 04f5737bc68d85533b732e1627551527aee9f5d7..358ec8d648e99555adf05ce5290ab418408e910a 100644 (file)
@@ -1248,8 +1248,8 @@ def healthy(ctx, config):
 
     try:
         manager.flush_all_pg_stats()
-    except run.CommandFailedError:
-        log.info('ignoring flush pg stats error, probably testing upgrade')
+    except (run.CommandFailedError, Exception) as e:
+        log.info('ignoring flush pg stats error, probably testing upgrade: %s', e)
     manager.wait_for_clean()
 
     log.info('Waiting until ceph cluster %s is healthy...', cluster_name)