Bug 2049306 - Example group config has two storageClasses but policyGen only includes one in output policy
Summary: Example group config has two storageClasses but policyGen only includes one i...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Telco Edge
Version: 4.10
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.12.0
Assignee: Angie Wang
QA Contact: yliu1
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-02-01 21:40 UTC by Ian Miller
Modified: 2024-04-30 18:04 UTC (History)
1 user (show)

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.
Clone Of:
Environment:
Last Closed: 2024-04-30 18:04:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift-kni cnf-features-deploy pull 1222 0 None Merged Bug 2049306: ztp: Fix the user overrides for a list 2022-08-23 19:19:56 UTC

Description Ian Miller 2022-02-01 21:40:19 UTC
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

Comment 2 yliu1 2022-10-31 19:22:26 UTC
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

Comment 3 Rory Thrasher 2024-04-30 18:04:53 UTC
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


Note You need to log in before you can comment on or make changes to this bug.