Bug 2040937
Summary: | lvmdevices segfault attempting to re-add devices file entry after an altered PART value | ||
---|---|---|---|
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, zkabelac |
Version: | 9.0 | Keywords: | Triaged |
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: | 2040491 | Environment: | |
Last Closed: | 2022-05-17 15:56:34 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: | 2040491 | ||
Bug Blocks: |
Description
Corey Marthaler
2022-01-14 23:06:16 UTC
in main branch: https://sourceware.org/git/?p=lvm2.git;a=commit;h=8f50c5e79b6ce619a53d51353dded2f84953af00 improves adding/removing devices when the file has bad entries. (I have been mixing up this bz with related lvmdevices bug 2040482 that was filed about the same time. All the lvmdevices fixes and both bz's should be handled together since they are all related. This appears fixed in the latest build. This can be marked Modified and the Fixed In Version updated. kernel-5.14.0-55.el9 BUILT: Fri Feb 4 05:27:31 PM CST 2022 lvm2-2.03.15-0.1.20211115git4a1f617.el9 BUILT: Tue Feb 8 02:56:52 PM CST 2022 lvm2-libs-2.03.15-0.1.20211115git4a1f617.el9 BUILT: Tue Feb 8 02:56:52 PM CST 2022 SCENARIO - altered_partition_check_and_repair: Test the discovery and repair of an altered partition value in devicesfile entry (bug 2039977|2040482) Copying out blanked system.devices file to begin with /tmp/system1688.devices -> hayes-01:/etc/lvm/devices/system.devices lvmdevices --adddev /dev/sdc1 Altered entry: IDTYPE=sys_wwid IDNAME=naa.6d094660575ece002291b9e01bad8691 DEVNAME=/dev/sdc1 PVID=YBfQDSEbkjJaK9db9RQcFjAfrFlOSoF3 PART=9 Copying out altered system.devices file to hayes-01 /tmp/system433.devices -> hayes-01:/etc/lvm/devices/system.devices lvmdevices --check Devices file sys_wwid naa.6d094660575ece002291b9e01bad8691 PVID YBfQDSEbkjJaK9db9RQcFjAfrFlOSoF3 last seen on /dev/sdc1 not found. lvmdevices should have properly added /dev/sdc1 entry lvmdevices should have properly returned non zero for a check issue lvmdevices --adddev /dev/sdc1 Devices file sys_wwid naa.6d094660575ece002291b9e01bad8691 PVID YBfQDSEbkjJaK9db9RQcFjAfrFlOSoF3 last seen on /dev/sdc1 not found. WARNING: adding device /dev/sdc1 with PVID YBfQDSEbkjJaK9db9RQcFjAfrFlOSoF3 which is already used for missing device. WARNING: adding device /dev/sdc1 with idname naa.6d094660575ece002291b9e01bad8691 which is already used for missing device. Checking for segfault notification (bug 2040491) lvmdevices --update No update for devices file is needed. lvmdevices should have updated the partition change back 1.1.447 == 1.1.448 Altered entry: IDTYPE=sys_wwid IDNAME=naa.6d094660575ece002291b9e01bad8691 DEVNAME=/dev/sdc1 PVID=YBfQDSEbkjJaK9db9RQcFjAfrFlOSoF3 PART=1 Copying out altered system.devices file to hayes-01 /tmp/system591.devices -> hayes-01:/etc/lvm/devices/system.devices lvmdevices --deldev /dev/sdc1 Marking Verified:Tested in the latest rpms. 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 SCENARIO - altered_partition_check_and_repair: Test the discovery and repair of an altered partition value in devicesfile entry bugs 2039977|2040482 and --adddev segfault bugs 2040491|2040937 Copying out blanked system.devices file to begin with /tmp/system597.devices -> hayes-02:/etc/lvm/devices/system.devices lvmdevices --adddev /dev/sdc1 Altered entry: IDTYPE=sys_wwid IDNAME=naa.6d094660650d1e0022bd29ee1e0945a8 DEVNAME=/dev/sdc1 PVID=. PART=9 Copying out altered system.devices file to hayes-02 /tmp/system37.devices -> hayes-02:/etc/lvm/devices/system.devices lvmdevices --check Devices file sys_wwid naa.6d094660650d1e0022bd29ee1e0945a8 PVID none last seen on /dev/sdc1 not found. lvmdevices should have properly returned non zero for a check issue lvmdevices --update No update for devices file is needed. lvmdevices should have updated the partition change back lvmdevices --adddev /dev/sdc1 Devices file sys_wwid naa.6d094660650d1e0022bd29ee1e0945a8 PVID none last seen on /dev/sdc1 not found. WARNING: adding device /dev/sdc1 with idname naa.6d094660650d1e0022bd29ee1e0945a8 which is already used for missing device. Checking for segfault notification (bug 2040491|2040937) 1.1.16 == 1.1.17 Altered entry: IDTYPE=sys_wwid IDNAME=naa.6d094660650d1e0022bd29ee1e0945a8 DEVNAME=/dev/sdc1 PVID=. PART=1 Altered entry: IDTYPE=sys_wwid IDNAME=naa.6d094660650d1e0022bd29ee1e0945a8 DEVNAME=/dev/sdc1 PVID=. PART=1 Copying out altered system.devices file to hayes-02 /tmp/system389.devices -> hayes-02:/etc/lvm/devices/system.devices lvmdevices --deldev /dev/sdc1 Marking VERIFIED based on comment #3 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 The needinfo request[s] on this closed bug have been removed as they have been unresolved for 365 days |