Bug 2061610
| Summary: | vdo pool test conversion should not be writing out vdo signature; can lead to looping wipe attempts | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Corey Marthaler <cmarthal> | |
| Component: | lvm2 | Assignee: | Zdenek Kabelac <zkabelac> | |
| lvm2 sub component: | VDO | QA Contact: | cluster-qe <cluster-qe> | |
| Status: | CLOSED ERRATA | Docs Contact: | ||
| Severity: | medium | |||
| Priority: | unspecified | CC: | agk, awalsh, heinzm, jbrassow, mcsontos, prajnoha, zkabelac | |
| Version: | 9.0 | Keywords: | Triaged | |
| Target Milestone: | rc | Flags: | pm-rhel:
mirror+
|
|
| Target Release: | --- | |||
| Hardware: | x86_64 | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | lvm2-2.03.17-1.el9 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 2061800 (view as bug list) | Environment: | ||
| Last Closed: | 2023-05-09 08:23:40 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: | 2061800 | |||
Marking Verified:Tested in the latest rpms. 5.14.0-176.el9.x86_64 kernel-5.14.0-176.el9 BUILT: Wed Oct 12 03:57:18 AM CDT 2022 lvm2-2.03.17-1.el9 BUILT: Thu Nov 10 10:02:16 AM CST 2022 creating VG on hayes-03 using PV(s) /dev/sdm1 /dev/sde1 /dev/sdf1 /dev/sdg1 /dev/sdl1 vgcreate vdo_sanity /dev/sdm1 /dev/sde1 /dev/sdf1 /dev/sdg1 /dev/sdl1 Devices file /dev/sda is excluded: device is partitioned. Volume group "vdo_sanity" successfully created Test that vdo pool and virt creation works with '--test' lvcreate --test --yes --type vdo --name vdo_lv --vdopool vdo_pool -L 6G --virtualsize 6G -ay vdo_sanity TEST MODE: Metadata will NOT be updated and volumes will not be (de)activated. Devices file /dev/sda is excluded: device is partitioned. lvcreate --yes --type linear -n vdo_pool -L 25G vdo_sanity Logical volume "vdo_pool" created. Test that vdo pool conversion of existing pool works with '--test' lvconvert --test --yes --type vdo-pool --name vdo_lv --virtualsize 5G vdo_sanity/vdo_pool TEST MODE: Metadata will NOT be updated and volumes will not be (de)activated. Devices file /dev/sda is excluded: device is partitioned. WARNING: Converting logical volume vdo_sanity/vdo_pool to VDO pool volume with formating. THIS WILL DESTROY CONTENT OF LOGICAL VOLUME (filesystem etc.) Repeat the above --test vdo convserion to ensure no signature had been written (a deadlock here is likely bug 2061610|2061800) lvconvert --test --yes --type vdo-pool --name vdo_lv --virtualsize 5G vdo_sanity/vdo_pool lvremove -f vdo_sanity/vdo_pool Logical volume "vdo_pool" successfully removed. Marking VERIFIED in the latest rpms as well. kernel-5.14.0-231.el9 BUILT: Mon Jan 9 08:32:41 PM CET 2023 lvm2-2.03.17-4.el9 BUILT: Tue Jan 10 06:40:12 PM CET 2023 lvm2-libs-2.03.17-4.el9 BUILT: Tue Jan 10 06:40:12 PM CET 2023 SCENARIO - test_vdo_create_and_convert_attempts: Attempt to use the --test cmd varieties to create or convert a vdo pool volume (bug 2061610|2061800) adding entry to the devices file for /dev/sda creating PV on virt-558.cluster-qe.lab.eng.brq.redhat.com using device /dev/sda pvcreate --yes -ff /dev/sda Physical volume "/dev/sda" successfully created. adding entry to the devices file for /dev/sdb creating PV on virt-558.cluster-qe.lab.eng.brq.redhat.com using device /dev/sdb pvcreate --yes -ff /dev/sdb Physical volume "/dev/sdb" successfully created. adding entry to the devices file for /dev/sdc creating PV on virt-558.cluster-qe.lab.eng.brq.redhat.com using device /dev/sdc pvcreate --yes -ff /dev/sdc Physical volume "/dev/sdc" successfully created. adding entry to the devices file for /dev/sdd creating PV on virt-558.cluster-qe.lab.eng.brq.redhat.com using device /dev/sdd pvcreate --yes -ff /dev/sdd Physical volume "/dev/sdd" successfully created. adding entry to the devices file for /dev/sde creating PV on virt-558.cluster-qe.lab.eng.brq.redhat.com using device /dev/sde pvcreate --yes -ff /dev/sde WARNING: Heartbeat did not respond at start of command. Check btimed service on remote host Physical volume "/dev/sde" successfully created. creating VG on virt-558.cluster-qe.lab.eng.brq.redhat.com using PV(s) /dev/sda /dev/sdb /dev/sdc /dev/sdd /dev/sde vgcreate vdo_sanity /dev/sda /dev/sdb /dev/sdc /dev/sdd /dev/sde Volume group "vdo_sanity" successfully created Test that vdo pool and virt creation works with '--test' lvcreate --test --yes --type vdo --name vdo_lv --vdopool vdo_pool -L 6G --virtualsize 6G -ay vdo_sanity TEST MODE: Metadata will NOT be updated and volumes will not be (de)activated. lvcreate --yes --type linear -n vdo_pool -L 25G vdo_sanity Wiping vdo signature on /dev/vdo_sanity/vdo_pool. Logical volume "vdo_pool" created. Test that vdo pool conversion of existing pool works with '--test' lvconvert --test --yes --type vdo-pool --name vdo_lv --virtualsize 5G vdo_sanity/vdo_pool TEST MODE: Metadata will NOT be updated and volumes will not be (de)activated. WARNING: Converting logical volume vdo_sanity/vdo_pool to VDO pool volume with formating. THIS WILL DESTROY CONTENT OF LOGICAL VOLUME (filesystem etc.) Repeat the above --test vdo convserion to ensure no signature had been written (a deadlock here is likely bug 2061610|2061800) lvconvert --test --yes --type vdo-pool --name vdo_lv --virtualsize 5G vdo_sanity/vdo_pool lvremove -f vdo_sanity/vdo_pool Logical volume "vdo_pool" successfully removed. removing vg vdo_sanity from virt-558.cluster-qe.lab.eng.brq.redhat.com Volume group "vdo_sanity" successfully removed removing pv /dev/sda on virt-558.cluster-qe.lab.eng.brq.redhat.com Labels on physical volume "/dev/sda" successfully wiped. removing entry from the devices file for /dev/sda removing pv /dev/sdb on virt-558.cluster-qe.lab.eng.brq.redhat.com Labels on physical volume "/dev/sdb" successfully wiped. removing entry from the devices file for /dev/sdb removing pv /dev/sdc on virt-558.cluster-qe.lab.eng.brq.redhat.com Labels on physical volume "/dev/sdc" successfully wiped. removing entry from the devices file for /dev/sdc removing pv /dev/sdd on virt-558.cluster-qe.lab.eng.brq.redhat.com Labels on physical volume "/dev/sdd" successfully wiped. removing entry from the devices file for /dev/sdd removing pv /dev/sde on virt-558.cluster-qe.lab.eng.brq.redhat.com Labels on physical volume "/dev/sde" successfully wiped. removing entry from the devices file for /dev/sde 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-2023:2544 |
Description of problem: [root@hayes-02 ~]# lvcreate --yes --type linear -n vdo_pool -L 25G vdo_sanity Wiping vdo signature on /dev/vdo_sanity/vdo_pool. Logical volume "vdo_pool" created. [root@hayes-02 ~]# lvs LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert vdo_pool vdo_sanity -wi-a----- 25.00g # VDO signature wiped from prior attempt through lvcreate [root@hayes-02 ~]# lvconvert --test --yes --type vdo-pool --name vdo_lv --virtualsize 5G vdo_sanity/vdo_pool TEST MODE: Metadata will NOT be updated and volumes will not be (de)activated. WARNING: Converting logical volume vdo_sanity/vdo_pool to VDO pool volume with formating. THIS WILL DESTROY CONTENT OF LOGICAL VOLUME (filesystem etc.) The VDO volume can address 22 GB in 11 data slabs, each 2 GB. It can grow to address at most 16 TB of physical storage in 8192 slabs. If a larger maximum size might be needed, use bigger slabs. Logical volume "vdo_lv" created. Converted vdo_sanity/vdo_pool to VDO pool volume and created virtual vdo_sanity/vdo_lv VDO volume. # This --test lvconvert attempt appears to place that vdo signature back on the device and as a result an additional conversion attempt will spin attempting to wipe it. [root@hayes-02 ~]# lvs LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert vdo_pool vdo_sanity -wi-a----- 25.00g [root@hayes-02 ~]# lvconvert --test --yes --type vdo-pool --name vdo_lv --virtualsize 5G vdo_sanity/vdo_pool [...] Wiping vdo signature on /dev/vdo_sanity/vdo_pool. Wiping vdo signature on /dev/vdo_sanity/vdo_pool. Wiping vdo signature on /dev/vdo_sanity/vdo_pool. Wiping vdo signature on /dev/vdo_sanity/vdo_pool. Wiping vdo signature on /dev/vdo_sanity/vdo_pool. Wiping vdo signature on /dev/vdo_sanity/vdo_pool. Wiping vdo signature on /dev/vdo_sanity/vdo_pool. Wiping vdo signature on /dev/vdo_sanity/vdo_pool. Wiping vdo signature on /dev/vdo_sanity/vdo_pool. Wiping vdo signature on /dev/vdo_sanity/vdo_pool. Wiping vdo signature on /dev/vdo_sanity/vdo_pool. Wiping vdo signature on /dev/vdo_sanity/vdo_pool. Wiping vdo signature on /dev/vdo_sanity/vdo_pool. Wiping vdo signature on /dev/vdo_sanity/vdo_pool. Wiping vdo signature on /dev/vdo_sanity/vdo_pool. Wiping vdo signature on /dev/vdo_sanity/vdo_pool.Killed Version-Release number of selected component (if applicable): 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 How reproducible: Every time