]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
setup daemongroup to use systemd by default when cluster is setup using
authorVasu Kulkarni <vasu@redhat.com>
Mon, 30 Apr 2018 21:41:10 +0000 (14:41 -0700)
committerVasu Kulkarni <vasu@redhat.com>
Mon, 30 Apr 2018 21:41:10 +0000 (14:41 -0700)
ceph-ansible.

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
teuthology/task/ceph_ansible.py

index e79d9ea291f5d4b4febf493979614a17be619776..6235e6cf4c4bf1beffea1391ac0fab42734cac25 100644 (file)
@@ -12,6 +12,7 @@ from ..config import config as teuth_config
 from ..misc import get_scratch_devices
 from teuthology import contextutil
 from teuthology.orchestra import run
+from teuthology.orchestra.daemon import DaemonGroup
 from teuthology import misc
 log = logging.getLogger(__name__)
 
@@ -133,6 +134,8 @@ class CephAnsible(Task):
             self.run_rh_playbook()
         else:
             self.run_playbook()
+        # setup deamongroup to use systemd
+        self.ctx.daemons = DaemonGroup(use_systemd=True)
 
     def generate_hosts_file(self):
         hosts_dict = dict()
@@ -304,7 +307,7 @@ class CephAnsible(Task):
                 out = StringIO()
                 remote.run(
                     args=['sudo', 'ceph', '--cluster', self.cluster_name,
-                          'health'], 
+                          'health'],
                     stdout=out,
                 )
                 out = out.getvalue().split(None, 1)[0]