summaryrefslogtreecommitdiffstats
path: root/qa/tasks/cephadm.py
diff options
context:
space:
mode:
Diffstat (limited to 'qa/tasks/cephadm.py')
-rw-r--r--qa/tasks/cephadm.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/qa/tasks/cephadm.py b/qa/tasks/cephadm.py
index 19258f216e1..166ea9537ee 100644
--- a/qa/tasks/cephadm.py
+++ b/qa/tasks/cephadm.py
@@ -1086,8 +1086,18 @@ def ceph_osds(ctx, config):
short_dev = dev
log.info('Deploying %s on %s with %s...' % (
osd, remote.shortname, dev))
- _shell(ctx, cluster_name, remote, [
- 'ceph-volume', 'lvm', 'zap', dev])
+ remote.run(
+ args=[
+ 'sudo',
+ ctx.cephadm,
+ '--image', ctx.ceph[cluster_name].image,
+ 'ceph-volume',
+ '-c', '/etc/ceph/{}.conf'.format(cluster_name),
+ '-k', '/etc/ceph/{}.client.admin.keyring'.format(cluster_name),
+ '--fsid', ctx.ceph[cluster_name].fsid,
+ '--', 'lvm', 'zap', dev
+ ]
+ )
add_osd_args = ['ceph', 'orch', 'daemon', 'add', 'osd',
remote.shortname + ':' + short_dev]
osd_method = config.get('osd_method')