-
Bug
-
Resolution: Done
-
Undefined
-
None
-
4.11.z
-
Moderate
-
False
-
-
Description of problem:
When configuring more than one storage devices using the same LocalVolume CR in PGT, only the first one will be added to generated policy.
Version-Release number of selected component (if applicable):
ZTP 4.11.z
How reproducible:
100%
Steps to Reproduce:
1. Deploy cluster via ZTP with 2 storage class devices added under the same LV CR: http://registry.kni-qe-0.lab.eng.rdu2.redhat.com:3000/kni-qe/ztp-site-configs/src/b40ccdee526fecc724f9cb52755d50845f960c1a/policygentemplates/group-du-sno-ranGen.yaml#L139-L183 2. Check generated policy
Actual results:
Generated policy contains only 1 storageClassDevice - complianceType: musthave objectDefinition: apiVersion: local.storage.openshift.io/v1 kind: LocalVolume metadata: name: local-disks namespace: openshift-local-storage spec: logLevel: Normal managementState: Managed storageClassDevices: - devicePaths: - /dev/new_vol_group/vol26 - /dev/new_vol_group/vol27 - /dev/new_vol_group/vol28 - /dev/new_vol_group/vol29 - /dev/new_vol_group/vol30 - /dev/new_vol_group/vol31 fsType: xfs storageClassName: local-sc1 volumeMode: Filesystem remediationAction: inform severity: low
Expected results:
Generated policy includes both storage devices
Additional info:
Workaround: use two LVs in PGT, each contains only 1 storage class device.
- duplicates
-
OCPBUGS-7348 Example group config has two storageClasses but policyGen only includes one in output policy
- Closed