Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 2208342

Summary: Default use_devicesfile value results in non bootable system after upgrade
Product: Red Hat Enterprise Linux 9 Reporter: Jon Magrini <jmagrini>
Component: lvm2Assignee: LVM Team <lvm-team>
lvm2 sub component: Devices, Filtering and Stacking QA Contact: cluster-qe <cluster-qe>
Status: CLOSED MIGRATED Docs Contact:
Severity: high    
Priority: unspecified CC: agk, byodlows, heinzm, jbrassow, msnitzer, prajnoha, rmadhuso, teigland, zkabelac
Version: 9.2Keywords: MigratedToJIRA
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-09-23 19:04:00 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:

Description Jon Magrini 2023-05-18 16:17:52 UTC
Description of problem:
The use_devicesfile was initially introduced in RHEL-9.0 via BZ#2012830 as a means to manage LVM devices and replace the traditional filter method. However, the old filter regex default to "accept all" devices. Only a blacklist was needed. 

The introduction of use_devicesfile is enabled by default per BZ#2129176. This value results in non-bootable systems after upgrade and requires manual whitelisting of devices. 

Version-Release number of selected component (if applicable):
9.0, 9.1, 9.2

How reproducible:
Very

Steps to Reproduce:
1. Install 9.1 (single disk, multiple disk, does not matter)
2. Upgrade to 9.2
3. System drops to maintenance mode
4. The system devices file does not contain all PV's. 

Actual results:
System fails to boot and drops to maintenance mode. Requires manual intervention to either set `use_devicesfile = 0` or to manually add devices. 

Expected results:
All devices get added to system devices, or set use_devicesfile to default to off. 

Additional info:
This has affected multiple customers now, creating high visibility Sev 1 cases for support due to non bootable systems.

Comment 1 David Teigland 2023-05-18 16:31:31 UTC
Do you have some specific examples of the system.devices file prior to the update and a recreated system.devices file after the update?

Comment 2 David Teigland 2023-05-18 17:23:44 UTC
One bug has been identified in bug 2208039 that would cause this -- a change in how 9.2 handles line feed characters in wwids.

Comment 5 David Teigland 2023-05-19 19:12:13 UTC
(In reply to David Teigland from comment #2)
> One bug has been identified in bug 2208039 that would cause this -- a change
> in how 9.2 handles line feed characters in wwids.

The other bug was actually a change in handling trailing spaces in t10 wwids.  In 9.0/9.1 trailing spaces where replaced by _ and in 9.2 they are ignored.  If system.devices on 9.0 or 9.1 contains an IDNAME starting with "t10" and ending with "_" then it's likely to run into bug 2208039 on upgrade.

Comment 17 RHEL Program Management 2023-09-23 19:02:41 UTC
Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug.

Comment 18 RHEL Program Management 2023-09-23 19:04:00 UTC
This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there.

Due to differences in account names between systems, some fields were not replicated.  Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information.

To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "RHEL-" followed by an integer.  You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like:

"Bugzilla Bug" = 1234567

In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information.