]> git.proxmox.com Git - ceph.git/blobdiff - ceph/qa/tasks/mgr/test_failover.py
update sources to v12.2.1
[ceph.git] / ceph / qa / tasks / mgr / test_failover.py
index c3ac7fb78be6e5baa19a9c2df5a1bc25e531dfa4..0dd9cb7e8bacb02e9c522020468ce927401bd716 100644 (file)
@@ -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.