Bug 1869118

Summary: [Regression] lvcreate fails to wipe signatures of logical volume
Product: Red Hat Enterprise Linux 8 Reporter: YongkuiGuo <yoguo>
Component: libguestfsAssignee: Virtualization Maintenance <virt-maint>
Status: CLOSED NOTABUG QA Contact: YongkuiGuo <yoguo>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.3CC: pasik, ptoscano, rjones, virt-maint
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: 8.0   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-08-17 11:23:35 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:

Description YongkuiGuo 2020-08-17 01:55:54 UTC
Description of problem:
lvcreate fails to wipe signatures of logical volume in RHEL-8.3.0-20200811.0 compose.


Version-Release number of selected component (if applicable):
libguestfs-1.40.2-25.module+el8.3.0+7421+642fe24f.x86_64
lvm2-2.03.09-4.el8.x86_64


How reproducible:
100%


Steps:

1. On rhel8 host with RHEL-8.3.0-20200811.0 compose
# qemu-img create -f raw test.img 1G
Formatting 'test.img', fmt=raw size=1073741824

2.
# guestfish -a test.img
><fs> run
><fs> pvcreate /dev/sda
><fs> vgcreate vol_test /dev/sda
><fs> lvcreate vol_file vol_test 1000
><fs> mkfs ext2 /dev/vol_test/vol_file
><fs> vgremove vol_test
><fs> vgcreate vol_test /dev/sda
><fs> lvcreate vol_file1 vol_test 500
libguestfs: error: lvcreate: WARNING: ext2 signature detected on /dev/vol_test/vol_file1 at offset 1080. Wipe it? [y/n]: [n]
  Aborted wiping of ext2.
  1 existing signature left on the device.
  Filed to wipe signatures of logical volume vol_test/vol_file1.
  Aborting. Failed to wipe start of new LV.
  Logical volume vol_test/vol_file1 in use.
  Unable to deactivate failed new LV vol_test/vol_file1. Manual intervention required.
><fs>

Actual results:
As above

Expected results:
The lvcreate command can be executed successfully.

Additional info:
No this issue with lvm2-2.03.09-3.el8 package.

Comment 1 Pino Toscano 2020-08-17 09:53:11 UTC
Can you please try with lvm2-2.03.09-5.el8? It looks like the changes that caused this behaviour changes were reverted, see bug 1868169.

Indeed I'm not able to reproduce the issue with lvm2-2.03.09-5.el8.

Comment 2 YongkuiGuo 2020-08-17 11:18:51 UTC
(In reply to Pino Toscano from comment #1)
> Can you please try with lvm2-2.03.09-5.el8? It looks like the changes that
> caused this behaviour changes were reverted, see bug 1868169.
> 
> Indeed I'm not able to reproduce the issue with lvm2-2.03.09-5.el8.

It works well with lvm2-2.03.09-5.el8. Thanks, pino.

Comment 3 Pino Toscano 2020-08-17 11:23:35 UTC
Thanks for noticing it in the first place, and for testing again.

Closing the bug, then.