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

device lookup appears to be broken in certain cases allowing them to be added using invalid idtypes

    • lvm2-2.03.27-1.el10
    • Yes
    • Moderate
    • rhel-sst-logical-storage
    • ssg_filesystems_storage_and_HA
    • 12
    • 15
    • 3
    • QE ack, Dev ack
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Pass
    • Automated
    • x86_64
    • None

      The dm uuid being found for /dev/sda is allowing it to be entered into the devicesfile as invalid idtypes: crypt_uuid, mpath_uuid, lvmlv_uuid

      This is with the latest rhel10.0 scratch build.

      kernel-6.10.0-15.el10    BUILT: Tue Jul 16 08:47:11 PM CEST 2024
      lvm2-2.03.25-0.1    BUILT: Thu Jul 25 03:45:24 PM CEST 2024
      lvm2-libs-2.03.25-0.1    BUILT: Thu Jul 25 03:45:24 PM CEST 2024
      
      [root@virt-021 ~]# lvmdevices
        Device /dev/rhel_virt-021/root IDTYPE=lvmlv_uuid IDNAME=LVM-PdcdpFYOejshdsfjHTiCMeB28Eu1g1C8b8HNIAEuX915yAFUzXqH3rNVSucVmSiN DEVNAME=/dev/rhel_virt-021/root PVID=none
       
      [root@virt-021 ~]# cat /etc/lvm/devices/system.devices
      # LVM uses devices listed in this file.
      # Created by LVM command lvmdevices pid 88889 at Thu Aug  1 17:15:06 2024
      # HASH=3936282368
      PRODUCT_UUID=952cead7-7ba6-4c44-886f-2c7a994952ff
      VERSION=1.1.32
      IDTYPE=lvmlv_uuid IDNAME=LVM-PdcdpFYOejshdsfjHTiCMeB28Eu1g1C8b8HNIAEuX915yAFUzXqH3rNVSucVmSiN DEVNAME=/dev/rhel_virt-021/root PVID=.
       
      [root@virt-021 ~]# lvmdevices --deviceidtype crypt_uuid --adddev /dev/sda
      [root@virt-021 ~]# lvmdevices --deviceidtype mpath_uuid --adddev /dev/sda
      [root@virt-021 ~]# lvmdevices --deviceidtype lvmlv_uuid --adddev /dev/sda
        WARNING: adding device /dev/sda with idname LVM-PdcdpFYOejshdsfjHTiCMeB28Eu1g1C8b8HNIAEuX915yAFUzXqH3rNVSucVmSiN which is already used for /dev/rhel_virt-021/root.
       
      [root@virt-021 ~]# cat /etc/lvm/devices/system.devices
      # LVM uses devices listed in this file.
      # Created by LVM command lvmdevices pid 88932 at Thu Aug  1 17:16:35 2024
      # HASH=4155037063
      PRODUCT_UUID=952cead7-7ba6-4c44-886f-2c7a994952ff
      VERSION=1.1.35
      IDTYPE=lvmlv_uuid IDNAME=LVM-PdcdpFYOejshdsfjHTiCMeB28Eu1g1C8b8HNIAEuX915yAFUzXqH3rNVSucVmSiN DEVNAME=/dev/rhel_virt-021/root PVID=.
      IDTYPE=crypt_uuid IDNAME=LVM-PdcdpFYOejshdsfjHTiCMeB28Eu1g1C8b8HNIAEuX915yAFUzXqH3rNVSucVmSiN DEVNAME=/dev/sda PVID=.
      IDTYPE=mpath_uuid IDNAME=LVM-PdcdpFYOejshdsfjHTiCMeB28Eu1g1C8b8HNIAEuX915yAFUzXqH3rNVSucVmSiN DEVNAME=/dev/sda PVID=.
      IDTYPE=lvmlv_uuid IDNAME=LVM-PdcdpFYOejshdsfjHTiCMeB28Eu1g1C8b8HNIAEuX915yAFUzXqH3rNVSucVmSiN DEVNAME=/dev/sda PVID=.
       
      [root@virt-021 ~]# lvmdevices --deviceidtype md_uuid --adddev /dev/sda
        The specified --deviceidtype md_uuid is not available for /dev/sda.
      [root@virt-021 ~]# lvmdevices --deviceidtype loop_file --adddev /dev/sda
        The specified --deviceidtype loop_file is not available for /dev/sda.
       
      [root@virt-021 ~]# cat /etc/lvm/devices/system.devices
      # LVM uses devices listed in this file.
      # Created by LVM command lvmdevices pid 88932 at Thu Aug  1 17:16:35 2024
      # HASH=4155037063
      PRODUCT_UUID=952cead7-7ba6-4c44-886f-2c7a994952ff
      VERSION=1.1.35
      IDTYPE=lvmlv_uuid IDNAME=LVM-PdcdpFYOejshdsfjHTiCMeB28Eu1g1C8b8HNIAEuX915yAFUzXqH3rNVSucVmSiN DEVNAME=/dev/rhel_virt-021/root PVID=.
      IDTYPE=crypt_uuid IDNAME=LVM-PdcdpFYOejshdsfjHTiCMeB28Eu1g1C8b8HNIAEuX915yAFUzXqH3rNVSucVmSiN DEVNAME=/dev/sda PVID=.
      IDTYPE=mpath_uuid IDNAME=LVM-PdcdpFYOejshdsfjHTiCMeB28Eu1g1C8b8HNIAEuX915yAFUzXqH3rNVSucVmSiN DEVNAME=/dev/sda PVID=.
      IDTYPE=lvmlv_uuid IDNAME=LVM-PdcdpFYOejshdsfjHTiCMeB28Eu1g1C8b8HNIAEuX915yAFUzXqH3rNVSucVmSiN DEVNAME=/dev/sda PVID=.
      

              cmarthal@redhat.com Corey Marthaler
              cmarthal@redhat.com Corey Marthaler
              lvm-team lvm-team
              Cluster QE Cluster QE
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated: