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 1227046 - lvchange fails to activate thin snap when run quickly after creation
Summary: lvchange fails to activate thin snap when run quickly after creation
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: lvm2
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Zdenek Kabelac
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On:
Blocks: LVMThinFeatureTracker
TreeView+ depends on / blocked
 
Reported: 2015-06-01 19:38 UTC by Fabian Deutsch
Modified: 2021-09-03 12:56 UTC (History)
14 users (show)

Fixed In Version: lvm2-2.02.130-1.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-12-07 12:22:06 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Experimental patch (14.61 KB, text/plain)
2015-06-10 14:31 UTC, Zdenek Kabelac
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1164942 0 unspecified CLOSED LVM Thin: Improve fault handling and recovery 2021-09-03 12:54:32 UTC

Internal Links: 1164942

Description Fabian Deutsch 2015-06-01 19:38:50 UTC
Description of problem:
Activating thinp snapshots fails.

Version-Release number of selected component (if applicable):
Fedora 22 (all updates)

How reproducible:
always

Steps to Reproduce:
1. Install F22 with thinp layout
1.a reboot
1.b login
2. in the same pool:

lvcreate --thin --virtualsize 2629415424B --name Image-1.0 fedora/pool00

lvchange --activate y fedora/Image-1.0 --ignoreactivationskip
lvchange --activate n fedora/Image-1.0
# ^^ If you skip the two lines above, then the bug is not triggered

lvcreate --snapshot --name fedora/Image-1.1 fedora/Image-1.0
lvchange --activate y fedora/Image-1.1 --ignoreactivationskip
# ^^ Fails

Actual results:
# lvchange --activate y fedora/Image-1.1 --ignoreactivationskip
  device-mapper: reload ioctl on  failed: No data available
#

Expected results:
# lvchange --activate y fedora/Image-1.1 --ignoreactivationskip
#

Additional info:
Workaround is to enable the parent before:
# lvchange --activate y fedora/Image-1.0 --ignoreactivationskip
# lvchange --activate y fedora/Image-1.1 --ignoreactivationskip
# 

-vvvv output:
https://paste.fedoraproject.org/227816/33185971/

Comment 1 Fabian Deutsch 2015-06-02 06:32:05 UTC
This is also reproducible on RHEL 7.

Comment 3 Zdenek Kabelac 2015-06-10 14:31:47 UTC
Created attachment 1037334 [details]
Experimental patch

Adding initial version of patch to fight with ordering of messaging to thin-pool.

It has in fact appeared to be a more complex problem how to deal with error states.

Current proposal moves message sending from 'resume' phase to 'suspend' phase.
Resume always resume thin-pool 'as-is' and only validates transaction_id.

The patch itself does not yet improve of error paths and possible automatic fixing of 'easy-to-fix issues' - will follow later possibly, but with this switched order it will get fairly easier since it will not leave thin-pool suspend when we detect some error in the middle of message creation.

Comment 4 Zdenek Kabelac 2015-07-08 15:12:08 UTC
Updated patch is now upstream  (lvm 2.02.124)

https://www.redhat.com/archives/lvm-devel/2015-July/msg00015.html

But it still left couple issue for resolving.
Complexity with some pool online renaming for external users got a bit more complicated so still some further patches are needed and are under development and testing.

Comment 5 Zdenek Kabelac 2015-12-07 11:51:13 UTC
Fixed upstream for a while.
Surely a member of 2.02.130.


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