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

Tests verification fails on encrypted LVM on top of MD RAID

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

    • rhel-system-roles
    • 2
    • Dev ack
    • False
    • False
    • Hide

      None

      Show
      None
    • No
    • Red Hat Enterprise Linux
    • storage-management Sprint 1
    • Pass
    • Automated
    • Release Note Not Required
    • Unspecified
    • Unspecified
    • Unspecified
    • None

       

      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]

              vtrefny@redhat.com Vojtěch Trefný
              guazhang@redhat.com Guangwu Zhang
              Richard Megginson Richard Megginson
              Guangwu Zhang Guangwu Zhang
              Valentina Ashirova Valentina Ashirova
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated: