Bug 1800475

Summary: Symlink to cache pool metadata LV not removed after removing the cache pool
Product: [Community] LVM and device-mapper Reporter: Vojtech Trefny <vtrefny>
Component: lvm2Assignee: Zdenek Kabelac <zkabelac>
lvm2 sub component: Udev QA Contact: cluster-qe <cluster-qe>
Status: NEW --- Docs Contact:
Severity: unspecified    
Priority: high CC: agk, heinzm, jbrassow, msnitzer, prajnoha, zkabelac
Version: unspecifiedFlags: pm-rhel: lvm-technical-solution?
pm-rhel: lvm-test-coverage?
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Vojtech Trefny 2020-02-07 08:02:01 UTC
Description of problem:

There is some race condition between LVM and udev that results in the /dev/<vg>/<cachepool>_meta symlink not being removed after removing the cache pool using `lvconvert --uncache`. We see this only occasionally in our CI and only with RHEL/CentOS 8 and Debian 10.


Version-Release number of selected component (if applicable):

  LVM version:     2.03.05(2)-RHEL8 (2019-06-15)
  Library version: 1.02.163-RHEL8 (2019-06-15)
  Driver version:  4.39.0

How reproducible:


Steps to Reproduce:

lvcreate -L512m -n testLV testVG
lvcreate -L512m -n testCache testVG
lvcreate -L8m -n testCache_meta testVG
lvconvert -y --type cache-pool --poolmetadata testCache_meta --cachemode writethrough testVG/testCache
lvconvert -y --type cache --cachepool testVG/testCache testVG/testLV
lvconvert -y -f --uncache testVG/testLV

ls /dev/testVG/testCache*
/dev/testVG/testCache_meta