Bug 2027906
Summary: | 'pvcreate --test' should not be modifying the devices/system.devices file | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | 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: | medium | CC: | agk, heinzm, jbrassow, mcsontos, msnitzer, prajnoha, teigland, zkabelac | |
Version: | 8.6 | |||
Target Milestone: | rc | |||
Target Release: | --- | |||
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | lvm2-2.03.14-3.el8 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 2027913 (view as bug list) | Environment: | ||
Last Closed: | 2022-05-10 15:22:14 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: | 2027913 |
Description
Corey Marthaler
2021-12-01 02:52:53 UTC
fixed here https://sourceware.org/git/?p=lvm2.git;a=commit;h=d5402e55f6b9d3a5f407502ce5c7a8a5bfd12243 $ lvmdevices Device /dev/mapper/mpatha IDTYPE=mpath_uuid IDNAME=mpath-3690b11c0000438ad0000057150910423 DEVNAME=/dev/mapper/mpatha PVID=57s3g8IhD7pVpnPmffF2V1u1jL7spkdb Device /dev/sda2 IDTYPE=sys_wwid IDNAME=naa.50014ee058bfe7b3 DEVNAME=/dev/sda2 PVID=qaWEiaFIIGJwyAgTWucDK00wVFg0s3dj PART=2 $ pvcreate --test /dev/sdb1 TEST MODE: Metadata will NOT be updated and volumes will not be (de)activated. Physical volume "/dev/sdb1" successfully created. $ lvmdevices Device /dev/mapper/mpatha IDTYPE=mpath_uuid IDNAME=mpath-3690b11c0000438ad0000057150910423 DEVNAME=/dev/mapper/mpatha PVID=57s3g8IhD7pVpnPmffF2V1u1jL7spkdb Device /dev/sda2 IDTYPE=sys_wwid IDNAME=naa.50014ee058bfe7b3 DEVNAME=/dev/sda2 PVID=qaWEiaFIIGJwyAgTWucDK00wVFg0s3dj PART=2 $ pvcreate /dev/sdb1 Physical volume "/dev/sdb1" successfully created. $lvmdevices Device /dev/mapper/mpatha IDTYPE=mpath_uuid IDNAME=mpath-3690b11c0000438ad0000057150910423 DEVNAME=/dev/mapper/mpatha PVID=57s3g8IhD7pVpnPmffF2V1u1jL7spkdb Device /dev/sda2 IDTYPE=sys_wwid IDNAME=naa.50014ee058bfe7b3 DEVNAME=/dev/sda2 PVID=qaWEiaFIIGJwyAgTWucDK00wVFg0s3dj PART=2 Device /dev/sdb1 IDTYPE=sys_wwid IDNAME=naa.690b11c0000438ad0000056550910404 DEVNAME=/dev/sdb1 PVID=sMMfEo7rc7MFETOvDRDOF5FswEKWZbyQ PART=1 This fixed it verified in the latest build. kernel-4.18.0-355.el8.kpq0 BUILT: Wed Dec 15 13:27:55 CST 2021 lvm2-2.03.14-3.el8 BUILT: Tue Jan 4 14:54:16 CST 2022 lvm2-libs-2.03.14-3.el8 BUILT: Tue Jan 4 14:54:16 CST 2022 Without fix: 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/sdd1 creating PV on hayes-03 using device /dev/sdd1 pvcreate --yes -ff /dev/sdd1 Physical volume "/dev/sdd1" successfully created. creating VG on hayes-03 using PV(s) /dev/sdd1 vgcreate df /dev/sdd1 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-03 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:4mzoQPbCgIbg2f3jdP1eWA4H5LjENzIp post:4mzoQPbCgIbg2f3jdP1eWA4H5LjENzIp FILE pre:4mzoQPbCgIbg2f3jdP1eWA4H5LjENzIp post:9g3sa8K2xK7FDx3jG3ShcEqSIDLqC804 File PVIDs were altered by the command: pvcreate --test --config devices/scan_lvs=1 /dev/df/dflv (possible regression of bugs 2027906 2027913) With fix: 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/sdd1 creating PV on hayes-02 using device /dev/sdd1 pvcreate --yes -ff /dev/sdd1 Physical volume "/dev/sdd1" successfully created. creating VG on hayes-02 using PV(s) /dev/sdd1 vgcreate df /dev/sdd1 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:dykzDyH4YhaC67zJCeolHFrA7yLdfMSi post:dykzDyH4YhaC67zJCeolHFrA7yLdfMSi FILE pre:dykzDyH4YhaC67zJCeolHFrA7yLdfMSi post:dykzDyH4YhaC67zJCeolHFrA7yLdfMSi 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/sdd1 on hayes-02 Labels on physical volume "/dev/sdd1" successfully wiped. removing entry from the devices file for /dev/sdd1 These scenarios pass in the latest userspace/kernel as well, marking VERIFIED. kernel-4.18.0-360.el8 BUILT: Sun Jan 16 20:27:55 CST 2022 lvm2-2.03.14-3.el8 BUILT: Tue Jan 4 14:54:16 CST 2022 lvm2-libs-2.03.14-3.el8 BUILT: Tue Jan 4 14:54:16 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/sdd1 creating PV on hayes-02 using device /dev/sdd1 pvcreate --yes -ff /dev/sdd1 Physical volume "/dev/sdd1" successfully created. creating VG on hayes-02 using PV(s) /dev/sdd1 vgcreate df /dev/sdd1 Volume group "df" successfully created lvcreate --yes --type linear -n dflv -L 500M df Wiping LVM2_member signature on /dev/df/dflv. 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:O07UeCX0HvZNH9QvEU81hH9BuGrEy63Y post:O07UeCX0HvZNH9QvEU81hH9BuGrEy63Y FILE pre:O07UeCX0HvZNH9QvEU81hH9BuGrEy63Y post:O07UeCX0HvZNH9QvEU81hH9BuGrEy63Y 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/sdd1 on hayes-02 Labels on physical volume "/dev/sdd1" successfully wiped. removing entry from the devices file for /dev/sdd1 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 (lvm2 bug fix and enhancement update), 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:2038 |