]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: Use specified method for osd.default 65050/head
authorZack Cerza <zack@cerza.org>
Thu, 14 Aug 2025 16:29:47 +0000 (10:29 -0600)
committerZack Cerza <zack@cerza.org>
Wed, 27 Aug 2025 01:14:44 +0000 (19:14 -0600)
When creating the first OSD in a cluster, the method requested was being
ignored - meaning an LVM OSD would be created in all cases. If a given cluster
couldn't support LVM, it could not be deployed. If we relay the method value
requested by the cephadm invocation, we can create OSDs as expected.

Fixes: https://tracker.ceph.com/issues/72381
Signed-off-by: Zack Cerza <zack@cerza.org>
src/pybind/mgr/cephadm/module.py

index f6b3c49355a514c5f42537c65ac9bf92ab3c8fe6..cce2c6ce90fc88e5b8ae5e5cd4f0403ae4338c11 100644 (file)
@@ -3005,6 +3005,7 @@ Then run the following:
             placement=PlacementSpec(host_pattern=host),
             data_devices=DeviceSelection(paths=devices),
             unmanaged=False,
+            method=drive_group.method,
             objectstore=drive_group.objectstore
         )