]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: PVolumes.filter shouldn't purge itself
authorRishabh Dave <ridave@redhat.com>
Thu, 3 Oct 2019 11:18:46 +0000 (16:48 +0530)
committerJan Fajerski <jfajerski@suse.com>
Wed, 9 Oct 2019 11:50:20 +0000 (13:50 +0200)
commitcccd89d039a80c0c4ae6ca4e66cb1a4da4dcefee
tree55038970629a67f7128a54250775e4a88716e3ec
parent26e8c88924b3d1c1b894af319cc98ca129bef3cd
ceph-volume: PVolumes.filter shouldn't purge itself

PVolumes.filter removes the PVs that do not match the filters from its
list. This approach is problematic since the code calling this method
has to create a copy beforehand. Therefore, it's better to return a new
object that contains PVs that matches the filters.

Fixes: https://tracker.ceph.com/issues/42170
Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit fcec33ee50457d43add844aef3b81bbf9dd2ad58)
src/ceph-volume/ceph_volume/api/lvm.py
src/ceph-volume/ceph_volume/util/device.py