]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Add workaround for http://tracker.ceph.com/issues/20950 16826/head
authorVasu Kulkarni <vasu@redhat.com>
Thu, 24 Aug 2017 18:02:20 +0000 (11:02 -0700)
committerVasu Kulkarni <vasu@redhat.com>
Thu, 7 Sep 2017 19:22:57 +0000 (12:22 -0700)
mgr bootstrap key differs on disk, rewrite the new key
using auth get.

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
qa/tasks/ceph_deploy.py

index 189fd32e8f226f354e67ce4b1e023168de0661e3..56d451c2970ee02e5742784920014ff8e1236791 100644 (file)
@@ -749,6 +749,21 @@ def upgrade(ctx, config):
                 ]
             )
             ceph_admin.run(args=['sudo', 'ceph', '-s'])
+
+    # workaround for http://tracker.ceph.com/issues/20950
+    # write the correct mgr key to disk
+    if config.get('setup-mgr-node', None):
+        mons = ctx.cluster.only(teuthology.is_type('mon'))
+        for remote, roles in mons.remotes.iteritems():
+            remote.run(
+                args=[
+                    run.Raw('sudo ceph auth get client.bootstrap-mgr'),
+                    run.Raw('|'),
+                    run.Raw('sudo tee'),
+                    run.Raw('/var/lib/ceph/bootstrap-mgr/ceph.keyring')
+                ]
+            )
+
     if config.get('setup-mgr-node', None):
         mgr_nodes = get_nodes_using_role(ctx, 'mgr')
         mgr_nodes = " ".join(mgr_nodes)