Bug 2040302

Summary: [RHEL-9] /etc/lvm/devices/system.devices doesn't contain PVs from unselected disks
Product: Red Hat Enterprise Linux 9 Reporter: Petr Zatko <pzatko>
Component: anacondaAssignee: Vladimír Slávik <vslavik>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0CC: jikortus, jkonecny, jstodola, vslavik
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: anaconda-34.25.0.26-1.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-17 12:30:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1942219    
Attachments:
Description Flags
storage.log none

Description Petr Zatko 2022-01-13 12:14:28 UTC
Created attachment 1850579 [details]
storage.log

Description of problem:
This bug is based on RFE from bz2011329.
After installing rhel on a system with multiple disks, where one of the disks contains a PV and the disk is not used (not selected in installation destination spoke) the PV from the disk is not displayed in /etc/lvm/devices/system.devices

Version-Release number of selected component (if applicable):
anaconda-34.25.0.24-1.el9

How reproducible:
Always

Steps to Reproduce:
1. Do a following installation setup:

System with 2 disks, the 2nd disk contains a PV/VG/LV. In the installer, select only the first disk for the installation (keep the 2nd disk deselected). Let anaconda create the partitions and finish the installation.

2. Check /etc/lvm/devices/system.devices

Actual results:
[root@localhost ~]# lsblk
NAME          MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
sr0            11:0    1  760M  0 rom  
vda           252:0    0   12G  0 disk 
vdb           252:16   0   10G  0 disk 
├─vdb1        252:17   0    1G  0 part /boot
└─vdb2        252:18   0    9G  0 part 
  ├─rhel-root 253:0    0    8G  0 lvm  /
  └─rhel-swap 253:1    0    1G  0 lvm  [SWAP]

[root@localhost ~]# blkid
/dev/mapper/rhel-root: UUID="7a20938a-fc68-4ab8-9cb3-6c83fdd24a6a" BLOCK_SIZE="512" TYPE="xfs"
/dev/vdb2: UUID="KtRFFc-nN5T-gWgE-o1DP-K80k-qW3i-orGkFC" TYPE="LVM2_member" PARTUUID="f9466214-02"
/dev/mapper/rhel-swap: UUID="dc6d8aaa-5cd3-48a3-8340-cdfb591606b6" TYPE="swap"
/dev/vdb1: UUID="a00d7983-8a59-46e4-8ebd-e55027e6a681" BLOCK_SIZE="512" TYPE="xfs" PARTUUID="f9466214-01"
/dev/sr0: BLOCK_SIZE="2048" UUID="2022-01-11-19-49-38-00" LABEL="RHEL-9-0-0-BaseOS-x86_64" TYPE="iso9660" PTUUID="453592f2" PTTYPE="dos"
/dev/vda: UUID="j2JlHj-PSNj-PDfM-khxr-rCuE-Uv5Q-oNZQA1" TYPE="LVM2_member"   <<<< missing PV

[root@localhost ~]# cat /etc/lvm/devices/system.devices 
# LVM uses devices listed in this file.
# Created by LVM command lvmdevices pid 2886 at Thu Jan 13 11:21:48 2022
VERSION=1.1.2
IDTYPE=devname IDNAME=/dev/vdb2 DEVNAME=/dev/vdb2 PVID=KtRFFcnN5TgWgEo1DPK80kqW3iorGkFC PART=2

Expected results:
/etc/lvm/devices/system.devices (also) contains PVs from unselected disks

Additional info:

Comment 2 Vladimír Slávik 2022-01-24 10:03:57 UTC
https://github.com/rhinstaller/anaconda/pull/3792

Comment 6 Jan Stodola 2022-02-14 09:15:35 UTC
Checked that anaconda-34.25.0.26-1.el9 is in nightly compose RHEL-9.0.0-20220210.0
There's no documentation needed for this bug - not checking
No further testing is needed during verification based on comment 1

Moving to VERIFIED

Comment 8 errata-xmlrpc 2022-05-17 12:30:45 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (new packages: anaconda), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:2326