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 1933640 - [Regression] lvcreate fails to wipe signatures again
Summary: [Regression] lvcreate fails to wipe signatures again
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: libguestfs
Version: 8.4
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Richard W.M. Jones
QA Contact: YongkuiGuo
URL:
Whiteboard:
Depends On: 1930996
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-03-01 10:30 UTC by Richard W.M. Jones
Modified: 2021-11-09 21:43 UTC (History)
5 users (show)

Fixed In Version: libguestfs-1.40.2-28.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1930996
Environment:
Last Closed: 2021-11-09 17:58:01 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2021:4191 0 None None None 2021-11-09 17:59:25 UTC

Description Richard W.M. Jones 2021-03-01 10:30:02 UTC
+++ This bug was initially created as a clone of Bug #1930996 +++

Description of problem:
lvcreate fails to wipe signatures of logical volume in rhel8.4. We hit this issue in rhel8.3 for the first time, and then it was fixed. Please refer to bug 1869118 and bug 1868169. Right now we encountered this issue again.


Version-Release number of selected component (if applicable):
libguestfs-1.44.0-1.module+el8.4.0+9398+f376ac33.x86_64
lvm2-2.03.11-4.el8.x86_64
kernel-4.18.0-287.el8.x86_64


How reproducible:
100%


Steps:

Here is the one-line reproducer:

$ guestfish -N lvfs vgremove VG : vgcreate VG /dev/sda1 : lvcreate LV2 VG 100
libguestfs: error: lvcreate: WARNING: ext2 signature detected on /dev/VG/LV2 at offset 1080. Wipe it? [y/n]: [n]
  Aborted wiping of ext2.
  1 existing signature left on the device.
  Failed to wipe signatures on logical volume VG/LV2.
  Aborting. Failed to wipe start of new LV.

Adding -vx options shows what command is actually run:

commandrvf: lvm lvcreate -L 100 -n LV2 VG

We don't use the --yes option, and perhaps we should.

There is bug https://bugzilla.redhat.com/show_bug.cgi?id=1894692 which is a new
regression against RHEL 8.4.  But it seems that LVM has not really been fixed
again, since QA is now always using the --yes option.

--- Additional comment from Richard W.M. Jones on 2021-02-22 11:05:21 UTC ---

Upstream fix:
https://github.com/libguestfs/libguestfs/commit/21cd97732c4973db835b8b6540c8ad582ebd2bda

Comment 3 YongkuiGuo 2021-04-19 06:41:07 UTC
rjones, do you plan to fix this bug in RHEL-8.5? The same bug has been fixed in RHEL-8.4 AV.

Comment 4 Richard W.M. Jones 2021-04-20 07:14:48 UTC
Yes, I'll build it now.

Comment 8 YongkuiGuo 2021-05-10 03:44:44 UTC
Verified with package:
libguestfs-1.40.2-28.module+el8.5.0+10717+67be7ac4.x86_64


Steps:

1.
$ guestfish -N lvfs vgremove VG : vgcreate VG /dev/sda1 : lvcreate LV2 VG 100

No error like "error: lvcreate: WARNING: ext2 signature detected on /dev/VG/LV2 at offset 1080. Wipe it? [y/n]: [n]"

Comment 10 errata-xmlrpc 2021-11-09 17:58:01 UTC
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 (Moderate: virt:rhel and virt-devel:rhel security, 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/RHSA-2021:4191


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