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
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',
)
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',
],
)
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',
]
)