Bug 1931765

Summary: LocalVolumeSet: PV is created on disk belonging to other provisioner
Product: OpenShift Container Platform Reporter: OpenShift BugZilla Robot <openshift-bugzilla-robot>
Component: StorageAssignee: Rohan CJ <rojoseph>
Storage sub component: Local Storage Operator QA Contact: Wei Duan <wduan>
Status: CLOSED ERRATA Docs Contact:
Severity: urgent    
Priority: urgent CC: aos-bugs, jsafrane, ocs-bugs, piqin, prsurve
Version: 4.6   
Target Milestone: ---   
Target Release: 4.7.z   
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: 2021-03-25 01:53:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1929175    
Bug Blocks: 1931766    

Comment 3 Wei Duan 2021-03-11 10:57:46 UTC
Verified pass on OCP4.7 with local-storage-operator.4.7.0-202103102028.p0

1. Two block pv created and not be provisioned by localvolumeset
$ oc get pv
NAME                                       CAPACITY   ACCESS MODES   RECLAIM POLICY   STATUS   CLAIM                                    STORAGECLASS   REASON   AGE
pvc-20deee69-0ab5-4c18-a25e-7af74a1a8bdf   3Gi        RWO            Delete           Bound    openshift-local-storage/mypvc-block      standard-csi            27m
pvc-24128d9c-c528-4bf3-9224-fb6b36f02057   10Gi       RWO            Delete           Bound    openshift-local-storage/pvc-block-test   standard-csi            28m

2. diskmaker-discovery log:
I0311 10:45:05.139291  627717 discovery.go:261] device "vdb" with mount point "/var/lib/kubelet/plugins/kubernetes.io/csi/volumeDevices/publish/pvc-24128d9c-c528-4bf3-9224-fb6b36f02057/d754f651-520c-4394-b324-638505e585a2" is not available
I0311 10:45:05.140660  627717 discovery.go:261] device "vdc" with mount point "/var/lib/kubelet/plugins/kubernetes.io/csi/volumeDevices/publish/pvc-20deee69-0ab5-4c18-a25e-7af74a1a8bdf/397af423-da6b-447b-9c41-3130be03d55c" is not available

3. diskmaker-manager log:
{"level":"info","ts":1615460071.4480598,"logger":"localvolumeset-symlink-controller","msg":"filter negative","Request.Namespace":"openshift-local-storage","Request.Name":"lvs","Device.Name":"vdb","filter.Name":"noBindMounts"}
{"level":"info","ts":1615460071.4502702,"logger":"localvolumeset-symlink-controller","msg":"filter negative","Request.Namespace":"openshift-local-storage","Request.Name":"lvs","Device.Name":"vdc","filter.Name":"noBindMounts"}

Change status to Verified.

Comment 6 errata-xmlrpc 2021-03-25 01:53:00 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (OpenShift Container Platform 4.7.3 bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:0821