]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: set lvm membership for mpath type devices 52080/head
authorGuillaume Abrioux <gabrioux@ibm.com>
Wed, 14 Jun 2023 14:08:07 +0000 (14:08 +0000)
committerGuillaume Abrioux <gabrioux@ibm.com>
Thu, 15 Jun 2023 11:46:54 +0000 (13:46 +0200)
commitf41b55722eb0853349de2ff8f813c9744c13e296
tree92dc415403fcc69872403c9fd40cb68ba1fd1b20
parent8c43c677d158b5e9f935b49dc88ba15f47f93e49
ceph-volume: set lvm membership for mpath type devices

If any lvs is present, self.lvs should be set accordingly for mpath
type devices as well.
Otherwise, when re-running a command like following:

```
ceph-volume lvm batch --bluestore --no-auto  /dev/mapper/mpatha /dev/mapper/mpathb
```

fails with error : "Device /dev/mapper/mpatha has a filesystem."

where the expected behavior is:

```
--> passed data devices: 2 physical, 0 LVM
--> relative data size: 1.0
--> All data devices are unavailable

Total OSDs: 0

  Type            Path                                                    LV Size         % of device
```

Fixes: https://tracker.ceph.com/issues/61673
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit 27e39e172c79e490dec0570b39c84b2354b5266b)
src/ceph-volume/ceph_volume/util/device.py