Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1790905

Summary: LVM Thin: transaction ids differ after bulk snapshot creations/deletions
Product: Red Hat Enterprise Linux 8 Reporter: Heinz Mauelshagen <heinzm>
Component: lvm2Assignee: Zdenek Kabelac <zkabelac>
lvm2 sub component: Thin Provisioning QA Contact: cluster-qe <cluster-qe>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: medium CC: agk, cmackows, cmarthal, heinzm, jbrassow, mcsontos, msnitzer, pasik, prajnoha, rbednar, thornber, zkabelac
Version: 8.0Keywords: Triaged
Target Milestone: rcFlags: heinzm: needinfo-
pm-rhel: mirror+
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: lvm2-2.03.12-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-09 19:45:20 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:
Attachments:
Description Flags
LVM2 metadata archives
none
Thin pool metadata image none

Description Heinz Mauelshagen 2020-01-14 14:11:05 UTC
Description of problem:
After a bunch of snapshot creations and deletions (each 30 snapshots of 2 origins), kernel and userspace transaction ids differed by 2 thus preventing further pool updates, also pool and hence thin reactivations don't work.

Version-Release number of selected component (if applicable):


How reproducible:
Create/remove snapshots as described above.

Steps to Reproduce:
1.
2.
3.

Actual results:
# lvremove rhel_bp-07/rhel-7_group-0_node-0
  Thin pool rhel_bp--07-vm_pool-tpool (253:23) transaction_id is 391, while expected 392.
  Failed to suspend rhel_bp-07/vm_pool with queued messages.
  Failed to update pool rhel_bp-07/vm_pool.

Also creation of new snapshot fail alike.

Expected results:
lv(create|remove) of thin snapshots work.

Additional info:
Relative to uspace and kspace transaction differing, see related https://bugzilla.redhat.com/show_bug.cgi?id=1069364.

Kernel log example of failed creation:
[5447619.705068] device-mapper: thin: Creation of new snapshot 11 of device 1 failed.
[5447620.934856] device-mapper: table: 253:46: thin: Couldn't open thin internal device

Comment 1 Heinz Mauelshagen 2020-01-14 14:13:27 UTC
LVM
  LVM version:     2.03.02(2)-RHEL8 (2019-01-04)
  Library version: 1.02.155-RHEL8 (2019-01-04)
  Driver version:  4.39.0
  Configuration:   ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-default-dm-run-dir=/run --with-default-run-dir=/run/lvm --with-default-pid-dir=/run --with-default-locking-dir=/run/lock/lvm --with-usrlibdir=/usr/lib64 --enable-fsadm --enable-write_install --with-user= --with-group= --with-device-uid=0 --with-device-gid=6 --with-device-mode=0660 --enable-pkgconfig --enable-cmdlib --enable-dmeventd --enable-blkid_wiping --with-cluster=internal --enable-cmirrord --with-udevdir=/usr/lib/udev/rules.d --enable-udev_sync --with-thin=internal --with-cache=internal --enable-lvmpolld --enable-lvmlockd-dlm --enable-lvmlockd-sanlock --enable-dbus-service --enable-notify-dbus --enable-dmfilemapd --with-vdo=internal --with-vdo-format=/usr/bin/vdoformat --disable-silent-rules

Kernel 4.18.0-80.el8.x86_64

Comment 2 Heinz Mauelshagen 2020-01-14 14:20:48 UTC
Created attachment 1652217 [details]
LVM2 metadata archives

Comment 3 Heinz Mauelshagen 2020-01-14 14:44:00 UTC
Created attachment 1652231 [details]
Thin pool metadata image

Comment 5 Roman Bednář 2020-04-09 09:56:32 UTC
Adding QA ack for 8.3. Reproducer seems straightforward. In addition QE thinpool regression suite should be run as well before verifying.

Comment 8 Jonathan Earl Brassow 2020-08-20 14:53:25 UTC
pushing to 8.4 since we don't have a reproducer for this yet... need a way to investigate.

Comment 11 Zdenek Kabelac 2021-04-26 14:20:29 UTC
This patch is now upstream:
https://listman.redhat.com/archives/lvm-devel/2021-March/msg00102.html

Under some circumstances it might be giving the observed behavior as lvm2 might
have tried to submit creation and destruction of same pool due to this reverted test.

Moving to post state - the race likely must have been very hard to hit even before.

Comment 25 errata-xmlrpc 2021-11-09 19:45:20 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 (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-2021:4431