]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
ceph-volume: refactor LvmBlueStore.setup_device()
authorGuillaume Abrioux <gabrioux@ibm.com>
Tue, 18 Mar 2025 14:20:51 +0000 (14:20 +0000)
committerGuillaume Abrioux <gabrioux@ibm.com>
Tue, 9 Sep 2025 11:39:38 +0000 (13:39 +0200)
commit1c648d2d0044cd5381d79aed5248dd363edbce55
tree9b0fb89dfeb5148faad85d15c8e240cc602bd17b
parent3d0d73aab0656e2d38a763964ba0e18e10d322ff
ceph-volume: refactor LvmBlueStore.setup_device()

This refactores redundant device setup calls in LvmBlueStore class:
Calling the same function twice with different arguments for WAL
and DB devices was inefficient and unnecessary.
The new implementation simplifies the logic by directly accessing
`self.args`, it removes the need for passing arguments manually.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit 7626c12e5fd4800187963f3b7f8691eb2847c119)
src/ceph-volume/ceph_volume/objectstore/lvmbluestore.py
src/ceph-volume/ceph_volume/tests/devices/lvm/test_prepare.py
src/ceph-volume/ceph_volume/tests/objectstore/test_lvmbluestore.py