]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
tasks/cephadm: Add 'osd_method' config item 48215/head
authorZack Cerza <zack@redhat.com>
Thu, 4 Aug 2022 19:58:56 +0000 (13:58 -0600)
committerZack Cerza <zack@redhat.com>
Mon, 26 Sep 2022 21:35:08 +0000 (15:35 -0600)
Since the default of None gets interpreted as 'lvm', the only useful
value would be 'raw'. This will enable us to use loop devices inside
containers for OSDs.

Signed-off-by: Zack Cerza <zack@redhat.com>
qa/tasks/cephadm.py

index 97906b8a684c598c9d0ca1119ceee6d59df9ec88..73b0f08115f41c61ee35c1c1b1e04b0efbad6a48 100644 (file)
@@ -853,10 +853,12 @@ def ceph_osds(ctx, config):
                 osd, remote.shortname, dev))
             _shell(ctx, cluster_name, remote, [
                 'ceph-volume', 'lvm', 'zap', dev])
-            _shell(ctx, cluster_name, remote, [
-                'ceph', 'orch', 'daemon', 'add', 'osd',
-                remote.shortname + ':' + short_dev
-            ])
+            add_osd_args = ['ceph', 'orch', 'daemon', 'add', 'osd',
+                            remote.shortname + ':' + short_dev]
+            osd_method = config.get('osd_method')
+            if osd_method:
+                add_osd_args.append(osd_method)
+            _shell(ctx, cluster_name, remote, add_osd_args)
             ctx.daemons.register_daemon(
                 remote, 'osd', id_,
                 cluster=cluster_name,