Bug 2027913
| Summary: | 'pvcreate --test' should not be modifying the devices/system.devices file | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Corey Marthaler <cmarthal> |
| Component: | lvm2 | Assignee: | David Teigland <teigland> |
| lvm2 sub component: | Devices, Filtering and Stacking | QA Contact: | cluster-qe <cluster-qe> |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | medium | ||
| Priority: | high | CC: | agk, cluster-qe, heinzm, jbrassow, lvm-team, mcsontos, msnitzer, prajnoha, teigland, zkabelac |
| Version: | 9.0 | Flags: | pm-rhel:
mirror+
|
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | lvm2-2.03.15-0.1.20211115git4a1f617.el9 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 2027906 | Environment: | |
| Last Closed: | 2022-05-17 15:56:27 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: | 2027906 | ||
| Bug Blocks: | |||
|
Description
Corey Marthaler
2021-12-01 03:24:28 UTC
Both scenarios pass now in the latest LVM rpms. Marking Verified:Tested. kernel-5.14.0-58.el9 BUILT: Thu Feb 10 11:18:21 AM CST 2022 lvm2-2.03.14-4.el9 BUILT: Wed Feb 16 06:01:21 AM CST 2022 lvm2-libs-2.03.14-4.el9 BUILT: Wed Feb 16 06:01:21 AM CST 2022 lvm2-dbusd-2.03.14-4.el9 BUILT: Wed Feb 16 07:23:08 AM CST 2022 SCENARIO - pvcreate_test_on_linear_alteration_check: Test for the alteration of the devicesfiles when pvcreate --test is used on linear device (bug 2027906 2027913) adding entry to the devices file for /dev/sdc1 creating PV on hayes-02 using device /dev/sdc1 pvcreate --yes -ff /dev/sdc1 Physical volume "/dev/sdc1" successfully created. creating VG on hayes-02 using PV(s) /dev/sdc1 vgcreate df /dev/sdc1 Volume group "df" successfully created lvcreate --yes --type linear -n dflv -L 500M df Logical volume "dflv" created. adding entry to the devices file for /dev/df/dflv creating PV on hayes-02 using device /dev/df/dflv pvcreate --yes -ff --config devices/scan_lvs=1 /dev/df/dflv Physical volume "/dev/df/dflv" successfully created. pvcreate --test --config devices/scan_lvs=1 /dev/df/dflv TEST MODE: Metadata will NOT be updated and volumes will not be (de)activated. Physical volume "/dev/df/dflv" successfully created. LVM pre:1tYnl5HZatxNN0PsnaHb2CYqRkH1KbPO post:1tYnl5HZatxNN0PsnaHb2CYqRkH1KbPO FILE pre:1tYnl5HZatxNN0PsnaHb2CYqRkH1KbPO post:1tYnl5HZatxNN0PsnaHb2CYqRkH1KbPO removing pv /dev/df/dflv on hayes-02 Labels on physical volume "/dev/df/dflv" successfully wiped. removing entry from the devices file for /dev/df/dflv lvremove -f df/dflv Logical volume "dflv" successfully removed. removing vg df from hayes-02 Volume group "df" successfully removed removing pv /dev/sdc1 on hayes-02 Labels on physical volume "/dev/sdc1" successfully wiped. removing entry from the devices file for /dev/sdc1 SCENARIO - pvcreate_test_alteration_check: Test for the alteration of the devicesfiles when pvcreate --test is used on device (bug 2027906 2027913) adding entry to the devices file for /dev/sdc1 creating PV on hayes-02 using device /dev/sdc1 pvcreate --yes -ff /dev/sdc1 Physical volume "/dev/sdc1" successfully created. pvcreate --test /dev/sdc1 TEST MODE: Metadata will NOT be updated and volumes will not be (de)activated. Physical volume "/dev/sdc1" successfully created. LVM pre:OXm3ekIc0dK7eOw7myvGviEOBVICGdnx post:OXm3ekIc0dK7eOw7myvGviEOBVICGdnx FILE pre:OXm3ekIc0dK7eOw7myvGviEOBVICGdnx post:OXm3ekIc0dK7eOw7myvGviEOBVICGdnx removing pv /dev/sdc1 on hayes-02 Labels on physical volume "/dev/sdc1" successfully wiped. removing entry from the devices file for /dev/sdc1 Marking VERIFIED based on comment #1 run on the latest build. 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: lvm2), 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:3972 |