]> git-server-git.apps.pok.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:53 +0000 (13:50 +0200)
commitbc7248ded1dc17a63d79f6d5a98f8b37c3c61303
treede3de17d291924ff5dea044f6c0efbdfa9072b30
parent86c183157335d306c8d383c2f7ecbf08446ce401
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