From 28cb4bb2e68298a8a307eb2de6121b60db43cb86 Mon Sep 17 00:00:00 2001 From: John Spray Date: Thu, 7 Sep 2017 09:42:29 -0400 Subject: [PATCH] qa/tasks/mgr: regression test for 21260 (aka http://tracker.ceph.com/issues/21260) Fixes: http://tracker.ceph.com/issues/21260 Signed-off-by: John Spray --- qa/tasks/mgr/test_failover.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/qa/tasks/mgr/test_failover.py b/qa/tasks/mgr/test_failover.py index c3ac7fb78be..0dd9cb7e8ba 100644 --- a/qa/tasks/mgr/test_failover.py +++ b/qa/tasks/mgr/test_failover.py @@ -1,5 +1,6 @@ import logging +import json from tasks.mgr.mgr_test_case import MgrTestCase @@ -92,6 +93,15 @@ class TestFailover(MgrTestCase): timeout=10 ) + # Both daemons should have fully populated metadata + # (regression test for http://tracker.ceph.com/issues/21260) + meta = json.loads(self.mgr_cluster.mon_manager.raw_cluster_cmd( + "mgr", "metadata")) + id_to_meta = dict([(i['id'], i) for i in meta]) + for i in [original_active] + original_standbys: + self.assertIn(i, id_to_meta) + self.assertIn('ceph_version', id_to_meta[i]) + # We should be able to fail back over again: the exercises # our re-initialization of the python runtime within # a single process lifetime. -- 2.47.3