]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
[RM-13847] Using full paths for ceph and ceph-disk executables.
authorMartin Palma <martin@palma.bz>
Fri, 8 Jan 2016 10:26:18 +0000 (11:26 +0100)
committerMartin Palma <martin@palma.bz>
Fri, 8 Jan 2016 10:26:18 +0000 (11:26 +0100)
Signed-off-by: Martin Palma <martin@palma.bz>
ceph_deploy/osd.py

index e797fb92783f22a2fe3650743836c5b0c3cff7eb..40d09eaaecc01659eefda25239eca5508d01a568 100644 (file)
@@ -107,8 +107,9 @@ def osd_status_check(conn, cluster):
     Note how the booleans are actually strings, so we need to take that into
     account and fix it before returning the dictionary. Issue #8108
     """
+    ceph_executable = system.executable_path(conn, 'ceph')
     command = [
-        'ceph',
+        ceph_executable,
         '--cluster={cluster}'.format(cluster=cluster),
         'osd',
         'stat',
@@ -191,8 +192,9 @@ def prepare_disk(
     """
     Run on osd node, prepares a data disk for use.
     """
+    ceph_disk_executable = system.executable_path(conn, 'ceph-disk')
     args = [
-        'ceph-disk',
+        ceph_disk_executable,
         '-v',
         'prepare',
         ]
@@ -362,11 +364,12 @@ def activate(args, cfg):
 
         LOG.debug('activating host %s disk %s', hostname, disk)
         LOG.debug('will use init type: %s', distro.init)
-
+        
+        ceph_disk_executable = system.executable_path(distro.conn, 'ceph-disk')
         remoto.process.run(
             distro.conn,
             [
-                'ceph-disk',
+                ceph_disk_executable,
                 '-v',
                 'activate',
                 '--mark-init',