RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1869118 - [Regression] lvcreate fails to wipe signatures of logical volume
Summary: [Regression] lvcreate fails to wipe signatures of logical volume
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: libguestfs
Version: 8.3
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: rc
: 8.0
Assignee: Virtualization Maintenance
QA Contact: YongkuiGuo
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-08-17 01:55 UTC by YongkuiGuo
Modified: 2021-02-22 09:58 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-08-17 11:23:35 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.