Bug 1967212

Summary: [RFE] Use LVM devices file instead of filter regex
Product: Red Hat Enterprise Linux 9 Reporter: David Lehman <dlehman>
Component: python-blivetAssignee: Vojtech Trefny <vtrefny>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: medium Docs Contact:
Priority: high    
Version: 9.0CC: bstinson, djez, guazhang, jharuda, jstodola, jwboyer, rmeggins, teigland
Target Milestone: betaKeywords: FutureFeature, Triaged
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: python-blivet-3.4.0-10.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-17 13:20:54 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: 1983705, 2031775    
Bug Blocks: 2011329    

Description David Lehman 2021-06-02 15:54:25 UTC
Description of problem:
Blivet should be capable of adjusting LVM's devices file while configuring storage.

Expected results:
Blivet adjusts the LVM devices file, if desired, instead of passing filter regex on the command line. It would probably be useful to provide calls to explicitly manipulate the list of allowed devices and to write the file on demand.

Additional Information:
If the devices file is the default/preferred method of device filtering we should be writing the file out as part of OS installation.

Comment 4 David Teigland 2021-06-24 16:51:26 UTC
> Blivet adjusts the LVM devices file, if desired, instead of passing filter
> regex on the command line. 

To use a limited set of devices for just one command (i.e. on the command line), and not made a persistent change to the set of devices that are visible to the OS, then you can use the new command line option "--devices /dev/foo".  The command will only look at devices named by this option.  (The option can be repeated to make more than one device visible to the command.)

Comment 7 Vojtech Trefny 2021-10-06 12:51:48 UTC
upstream PR: https://github.com/storaged-project/blivet/pull/972

Comment 8 Vojtech Trefny 2021-10-13 14:09:42 UTC
*** Bug 2013063 has been marked as a duplicate of this bug. ***

Comment 19 Jan Stodola 2022-01-20 09:46:13 UTC
python3-blivet-3.4.0-11.el9 is included in RHEL-9.0.0-20220117.0.
There was one issue found during testing of this feature and it has been reported as bug 2040302 (against anaconda).
Possible regressions found later in the test cycle will be reported as new bugs.

Moving this bug to VERIFIED.

Comment 21 errata-xmlrpc 2022-05-17 13:20:54 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: python-blivet), 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:2494