-
Bug
-
Resolution: Done-Errata
-
Normal
-
4.13, 4.14
Description of problem:
There is bug preventing lvms operator to properly detect number of default device-classes.
Version-Release number of selected component (if applicable):
How reproducible:
always when specific config used.
Steps to Reproduce:
1.Apply config:
apiVersion: lvm.topolvm.io/v1alpha1
kind: LVMCluster
metadata:
finalizers:
- lvmcluster.topolvm.io
name: lvmcluster
namespace: openshift-storage
spec:
storage:
deviceClasses:
- default: true
deviceSelector:
paths:
- /dev/disk/by-id/scsi-3300xxxxabcde
fstype: xfs
name: vg1
nodeSelector:
nodeSelectorTerms:
- matchExpressions:
- key: topology.topolvm.io/node
operator: In
values:
- n1.openshift.fqdn
thinPoolConfig:
name: thin-pool-1
overprovisionRatio: 10
sizePercent: 90
- default: false
deviceSelector:
paths:
- /dev/disk/by-id/ata-TOSHIBA_MQ0abcdef
fstype: xfs
name: vg2
nodeSelector:
nodeSelectorTerms:
- matchExpressions:
- key: topology.topolvm.io/node
operator: In
values:
- n2.openshift.fqdn
thinPoolConfig:
name: thin-pool-1
overprovisionRatio: 10
sizePercent: 90
- default: false
deviceSelector:
paths:
- /dev/disk/by-id/ata-TOSHIBA_MQ0xxxyaT
fstype: xfs
name: vg3
nodeSelector:
nodeSelectorTerms:
- matchExpressions:
- key: topology.topolvm.io/node
operator: In
values:
- n3.openshift.fqdn
thinPoolConfig:
name: thin-pool-1
overprovisionRatio: 10
sizePercent: 90
Actual results:
topolvm-node pods failing because of wrong check condition
Expected results:
topolvm-node pods running with config presented
Additional info:
The issue is cause by wrong condition in file:
In line 135 there is a condition:
if countDefault != 1 {
which should be changed to:
if countDefault > 1 {
- relates to
-
OCPSTRAT-390 LVM Storage on multi node clusters
-
- Closed
-
- links to
-
RHBA-2024:126443
LVMS 4.15 Bug Fix and Enhancement update
- mentioned on
(1 mentioned on)