Description of problem: Add some logs to help debugging when the storage admin adds non-disk file path to localvolume.spec.storageClassDevices[].devicePaths Version-Release number of selected component (if applicable): $ oc get clusterversion NAME VERSION AVAILABLE PROGRESSING SINCE STATUS version 4.5.0-0.nightly-2020-05-25-052746 True False 17h Cluster version is 4.5.0-0.nightly-2020-05-25-052746 $ oc get csv -n local-storage NAME DISPLAY VERSION REPLACES PHASE local-storage-operator.4.5.0-202005221637 Local Storage 4.5.0-202005221637 Succeeded How reproducible: Always Steps to Reproduce: 1. Create localvolume instance with non-disk filepath, such as dir(/tmp) or file. 2. 3. Actual results: No PVs are created, checked logs of diskmaker $ oc logs ds/example-local-diskmaker -n local-storage Found 3 pods, using pod/example-local-diskmaker-hxvrb I0526 09:16:42.558543 1 diskmaker.go:24] Go Version: go1.13.4 I0526 09:16:42.558796 1 diskmaker.go:25] Go OS/Arch: linux/amd64 I0526 09:16:42.558805 1 diskmaker.go:26] local-storage-diskmaker Version: v4.5.0-202005221637-0-g6f887cd-dirty E0526 09:16:47.720873 1 diskmaker.go:235] unable to find matching disk /dev/vdf E0526 09:16:47.720954 1 diskmaker.go:159] found empty matching device list E0526 09:16:52.715411 1 diskmaker.go:235] unable to find matching disk /dev/vdf E0526 09:16:52.715456 1 diskmaker.go:159] found empty matching device list E0526 09:16:57.712002 1 diskmaker.go:235] unable to find matching disk /dev/vdf E0526 09:16:57.712045 1 diskmaker.go:159] found empty matching device list E0526 09:17:02.712407 1 diskmaker.go:235] unable to find matching disk /dev/vdf E0526 09:17:02.712451 1 diskmaker.go:159] found empty matching device list E0526 09:17:07.714401 1 diskmaker.go:235] unable to find matching disk /dev/vdf E0526 09:17:07.714444 1 diskmaker.go:159] found empty matching device list Expected results: Add some logs such as: only block device is supported here, /tmp is a directory. Master Log: Node Log (of failed PODs): PV Dump: PVC Dump: StorageClass Dump (if StorageClass used by PV/PVC): Additional info:
E0724 07:25:56.962927 1 diskmaker.go:252] no file exists for specified device /dev/vde E0724 07:25:56.962977 1 diskmaker.go:252] no file exists for specified device /dev/vdf
Passed on below version oc get csv NAME DISPLAY VERSION REPLACES PHASE local-storage-operator.4.6.0-202007221854.p0 Local Storage 4.6.0-202007221854.p0 Succeeded oc get clusterversion NAME VERSION AVAILABLE PROGRESSING SINCE STATUS version 4.6.0-0.nightly-2020-07-23-220427 True False 7h57m Cluster version is 4.6.0-0.nightly-2020-07-23-220427
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.6 GA Images), 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-2020:4196