Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-7295

ZTP - policy generated from ZTP only contains one storage class device when multiple are configured under the same LocalVolume CR

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • 4.11.z
    • GitOps ZTP
    • Moderate
    • False
    • Hide

      None

      Show
      None

      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.

            saskari@redhat.com Saeid Askari
            rhn-support-yliu1 Yang Liu
            Periyamaruthu Mohanraj Periyamaruthu Mohanraj
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: