Bug 2049306
| Summary: | Example group config has two storageClasses but policyGen only includes one in output policy | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Ian Miller <imiller> |
| Component: | Telco Edge | Assignee: | Angie Wang <angwang> |
| Telco Edge sub component: | ZTP | QA Contact: | yliu1 |
| Status: | CLOSED WONTFIX | Docs Contact: | |
| Severity: | medium | ||
| Priority: | medium | CC: | angwang |
| Version: | 4.10 | ||
| Target Milestone: | --- | ||
| Target Release: | 4.12.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Release Note | |
| Doc Text: |
When specifying overlay content in your PolicyGenTemplate for the LocalVolume CR (referenced from the StorageLV.yaml sourceCR) only one entry may be included in the storageClassDevices section. Additional entries included in your overlay content will not be included in the generated Policy.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2024-04-30 18:04:53 UTC | 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: | |||
Verified using 4.12 ZTP.
- 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/vol1
- /dev/new_vol_group/vol2
- /dev/new_vol_group/vol3
- /dev/new_vol_group/vol4
- /dev/new_vol_group/vol5
- /dev/new_vol_group/vol6
- /dev/new_vol_group/vol7
- /dev/new_vol_group/vol8
- /dev/new_vol_group/vol9
- /dev/new_vol_group/vol10
- /dev/new_vol_group/vol11
- /dev/new_vol_group/vol12
- /dev/new_vol_group/vol13
- /dev/new_vol_group/vol14
- /dev/new_vol_group/vol15
- /dev/new_vol_group/vol16
- /dev/new_vol_group/vol17
- /dev/new_vol_group/vol18
- /dev/new_vol_group/vol19
- /dev/new_vol_group/vol20
fsType: xfs
storageClassName: local-sc
volumeMode: Filesystem
- devicePaths:
- /dev/new_vol_group/vol21
- /dev/new_vol_group/vol22
- /dev/new_vol_group/vol23
- /dev/new_vol_group/vol24
- /dev/new_vol_group/vol25
- /dev/new_vol_group/vol26
fsType: xfs
storageClassName: local-sc1
volumeMode: Filesystem
OCP is no longer using Bugzilla and this bug appears to have been left in an orphaned state. If the bug is still relevant, please open a new issue in the OCPBUGS Jira project: https://issues.redhat.com/projects/OCPBUGS/summary |
Description of problem: The group-du-sno-ranGen.yaml reference PolicyGenTemplate includes two StorageClass entries, however the generated policy includes only one. Version-Release number of selected component (if applicable): 4.10 How reproducible: always Steps to Reproduce: 1. Run policyGen tool against reference group-du-sno-ranGen PolicyGenTemplate 2. Observe generated results 3. Actual results: Section from input PGT: - fileName: StorageLV.yaml policyName: "config-policy" spec: storageClassDevices: - storageClassName: "example-storage-class-1" volumeMode: Filesystem fsType: xfs devicePaths: - /dev/sdb1 - storageClassName: "example-storage-class-2" volumeMode: Filesystem fsType: xfs devicePaths: - /dev/sdb2 Generated Policy: - complianceType: musthave objectDefinition: apiVersion: local.storage.openshift.io/v1 kind: LocalVolume metadata: annotations: ran.openshift.io/ztp-deploy-wave: "10" name: local-disks namespace: openshift-local-storage spec: logLevel: Normal managementState: Managed storageClassDevices: - devicePaths: - /dev/sdb1 fsType: xfs storageClassName: example-storage-class-1 volumeMode: Filesystem Expected results: Both example-storage-class-1 and example-storage-class-2 included