RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2040302 - [RHEL-9] /etc/lvm/devices/system.devices doesn't contain PVs from unselected disks
Summary: [RHEL-9] /etc/lvm/devices/system.devices doesn't contain PVs from unselected ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: anaconda
Version: 9.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Vladimír Slávik
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks: 1942219
TreeView+ depends on / blocked
 
Reported: 2022-01-13 12:14 UTC by Petr Zatko
Modified: 2022-05-17 12:43 UTC (History)
4 users (show)

Fixed In Version: anaconda-34.25.0.26-1.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-17 12:30:45 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
storage.log (279.14 KB, text/plain)
2022-01-13 12:14 UTC, Petr Zatko
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-107818 0 None None None 2022-01-13 12:18:12 UTC
Red Hat Issue Tracker RTT-4128 0 None None None 2022-01-18 10:43:25 UTC
Red Hat Issue Tracker RTT-4129 0 None None None 2022-01-18 10:43:31 UTC
Red Hat Product Errata RHBA-2022:2326 0 None None None 2022-05-17 12:30:56 UTC

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


Note You need to log in before you can comment on or make changes to this bug.