]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
ceph-volume: lvm.Lvm.setup_metadata_devices refactor
authorGuillaume Abrioux <gabrioux@ibm.com>
Thu, 9 Oct 2025 07:31:58 +0000 (09:31 +0200)
committerYuri Weinstein <yweinste@redhat.com>
Wed, 15 Oct 2025 17:33:14 +0000 (17:33 +0000)
commita098a5eae84d08c847dc1a4720230e5fe3fb3729
tree1914ecf837b4a826e6dd18639c6b3237a399aa46
parent109a036fd46bef9ddd7fdff801911e07390ebd8c
ceph-volume: lvm.Lvm.setup_metadata_devices refactor

This commit refactors setup_metadata_devices into smaller helper methods.
It keeps the distinction between existing logical volumes and raw devices
explicit, centralizes tag handling and path assignment to make the
control flow obvious and separates responsibilities for checking, creating,
and tagging devices.

Fixes: https://tracker.ceph.com/issues/73445
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit f6d2b20dbb7ba18dcd137990dd1637794a8f0d70)
(cherry picked from commit 7fa9223335a58ba2c8782d7bec99c8fe29dd09df)
src/ceph-volume/ceph_volume/objectstore/lvm.py