]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
use the new executable path helper in osd 210/head
authorAlfredo Deza <alfredo.deza@inktank.com>
Tue, 8 Jul 2014 14:08:22 +0000 (10:08 -0400)
committerAlfredo Deza <alfredo.deza@inktank.com>
Tue, 8 Jul 2014 14:54:42 +0000 (10:54 -0400)
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
ceph_deploy/osd.py

index 960dfd3ac9a64ff9a6eb11816ce3f2e09b83d15d..0f31a5dd680f6cc1da38d44d533c021dc3f4d3e0 100644 (file)
@@ -10,7 +10,7 @@ from textwrap import dedent
 from cStringIO import StringIO
 
 from ceph_deploy import conf, exc, hosts
-from ceph_deploy.util import constants
+from ceph_deploy.util import constants, system
 from ceph_deploy.cliutil import priority
 from ceph_deploy.lib import remoto
 
@@ -71,8 +71,9 @@ def osd_tree(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',
         'tree',
@@ -424,10 +425,11 @@ def disk_list(args, cfg):
         )
 
         LOG.debug('Listing disks on {hostname}...'.format(hostname=hostname))
+        ceph_disk_executable = system.executable_path(distro.conn, 'ceph-disk')
         remoto.process.run(
             distro.conn,
             [
-                'ceph-disk',
+                ceph_disk_executable,
                 'list',
             ],
         )
@@ -459,10 +461,11 @@ def osd_list(args, cfg):
         remote_module = distro.conn.remote_module
         osds = distro.conn.remote_module.listdir(constants.osd_path)
 
+        ceph_disk_executable = system.executable_path(distro.conn, 'ceph-disk')
         output, err, exit_code = remoto.process.check(
             distro.conn,
             [
-                'ceph-disk',
+                ceph_disk_executable,
                 'list',
             ]
         )