]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Uncomment osd_disk_info uncomment_osd_disk_info
authorShylesh Kumar <shmohan@redhat.com>
Wed, 20 Feb 2019 18:57:42 +0000 (10:57 -0800)
committerShylesh Kumar <shmohan@redhat.com>
Thu, 21 Feb 2019 02:06:44 +0000 (18:06 -0800)
Signed-off-by: Shylesh Kumar <shmohan@redhat.com>
teuthology/task/ceph_ansible.py

index 8b8c45f2b20d05f06a49908920b560984079a755..c5b824ba6c7a1e08006e1204f0ed4a2e118981cf 100644 (file)
@@ -80,7 +80,8 @@ class CephAnsible(Task):
         if 'cluster' in config:
             self.cluster_name = self.config.get('cluster')
         else:
-            self.cluster_name = None
+            self.cluster_name = "ceph"
+        log.info("init CLUSTER NAME: {}".format(self.cluster_name))
 
         # Legacy option set to true in case we are running a test
         # which was earlier using "ceph" task for configuration
@@ -329,7 +330,7 @@ class CephAnsible(Task):
     def begin(self):
         super(CephAnsible, self).begin()
         self.execute_playbook()
-#        self.set_diskinfo_ctx()
+        self.set_diskinfo_ctx()
 
     def _write_hosts_file(self, prefix, content):
         """
@@ -926,9 +927,11 @@ class CephAnsible(Task):
             for role in teuthology.cluster_roles_of_type(
                     roles_for_host, 'client', self.cluster_name):
                 name = teuthology.ceph_role(role)
+                log.info("creating keyring CLUSTER NAME: {}".format(\
+                                                            self.cluster_name))
                 log.info("Creating keyring for {}".format(name))
-                client_keyring = '/etc/ceph/{0}.{1}.keyring'.format(
-                    self.cluster_name, name)
+                client_keyring = '/etc/ceph/ceph.{1}.keyring'.format(\
+                                                            name)
                 remote.run(
                     args=[
                         'sudo',