Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-106918

[Epic]: Tests verification fails on encrypted LVM on top of MD RAID [rhel-9]

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • [Epic]: Tests verification fails on encrypted LVM on top of MD RAID [rhel-9]
    • Low
    • Red Hat Enterprise Linux
    • 0% To Do, 0% In Progress, 100% Done
    • rhel-system-roles
    • False
    • Hide

      None

      Show
      None
    • Dev ack
    • Release Note Not Required

      This is a clone of issue RHEL-95719 to use for version rhel-9.7

      Original description:
       

      TASK [Check the type of each PV] **********************************************************************************************************
      failed: [localhost] (item=/dev/mapper/luks-1c25a17e-1ab1-4d65-90d0-4b440fbeb8af) => {
          "ansible_loop_var": "pv",
          "assertion": "storage_test_blkinfo.info[pv]['type'] == _storage_test_expected_pv_type",
          "changed": false,
          "evaluated_to": false,
          "msg": "Incorrect type for PV /dev/mapper/luks-1c25a17e-1ab1-4d65-90d0-4b440fbeb8af (has: 'crypt' expected: 'raid1)' in pool 'raid1_encrypted_pool'",
          "pv": "/dev/mapper/luks-1c25a17e-1ab1-4d65-90d0-4b440fbeb8af"
      }PLAY RECAP ********************************************************************************************************************************
      localhost                  : ok=75   changed=7    unreachable=0    failed=1    skipped=25   rescued=0    ignored=0   
       
      [root@storageqe-109 tests]# lsblk
      NAME                                          MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINTS
      sda                                             8:0    0 744.6G  0 disk  
      └─md127                                         9:127  0 744.5G  0 raid1 
        └─luks-1c25a17e-1ab1-4d65-90d0-4b440fbeb8af 253:3    0 744.5G  0 crypt 
          └─raid1_encrypted_pool-raid1_vol          253:4    0     3G  0 lvm   /opt/test_raid_encryption_raid1
      sdb                                             8:16   0 744.6G  0 disk  
      └─md127                                         9:127  0 744.5G  0 raid1 
        └─luks-1c25a17e-1ab1-4d65-90d0-4b440fbeb8af 253:3    0 744.5G  0 crypt 
          └─raid1_encrypted_pool-raid1_vol          253:4    0     3G  0 lvm   /opt/test_raid_encryption_raid1
      sdc                                             8:32   0 744.6G  0 disk  
       

       

          # Test encrypted RAID1 at pool level  
          - name: Create encrypted RAID1 LVM pool
            include_role:
              name: linux-system-roles.storage
            vars:
              storage_pools:
                - name: raid1_encrypted_pool
                  type: lvm
                  disks: "{{ unused_disks[:2] }}"
                  raid_level: raid1
                  encryption: true
                  encryption_password: raid1encryptedpassword
                  volumes:
                    - name: raid1_vol
                      size: 3g
                      mount_point: "{{ mount_location }}_raid1" 

      [root@storageqe-109 tests]# rpm -qa |grep role
      rhel-system-roles-1.101.1-0.1.el10.noarch
      [root@storageqe-109 tests]# uname -a
      Linux storageqe-109.rhts.eng.pek2.redhat.com 6.12.0-89.el10.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 27 00:52:07 EDT 2025 x86_64 GNU/Linux
      [root@storageqe-109 tests]

              rmeggins@redhat.com Richard Megginson
              rmeggins@redhat.com Richard Megginson
              Richard Megginson Richard Megginson
              David Jez David Jez
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: