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 1049772

Summary: LVMError: lvactivate failed for pool00: running lvm lvchange -a y
Product: Red Hat Enterprise Linux 7 Reporter: Martin <mholec>
Component: python-blivetAssignee: David Lehman <dlehman>
Status: CLOSED CURRENTRELEASE QA Contact: Release Test Team <release-test-team-automation>
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.0CC: mbanas, pkotvan, tpelka
Target Milestone: rc   
Target Release: 7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-blivet-0.18.29-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-13 10:00:40 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
log none

Description Martin 2014-01-08 07:44:44 UTC
Created attachment 846996 [details]
log

Description of problem:
crash with: LVMError: lvactivate failed for pool00: running lvm lvchange -a y

Version-Release number of selected component (if applicable):
RHEL-7.0-20140107.n.0

How reproducible:
always

Steps to Reproduce:
1. Have machine with LVM thinp partitioning on top of LUKS
2. In custom paritioning unlock LUKS partition.

Actual results:

anaconda 19.31.41-1 exception report
Traceback (most recent call first):
  File "/usr/lib/python2.7/site-packages/blivet/devicelibs/lvm.py", line 439, in lvactivate
    raise LVMError("lvactivate failed for %s: %s" % (lv_name, msg))
  File "/usr/lib/python2.7/site-packages/blivet/devices.py", line 2684, in _setup
    lvm.lvactivate(self.vg.name, self._name)
  File "/usr/lib/python2.7/site-packages/blivet/devices.py", line 718, in setup
    self._setup(orig=orig)
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 1333, in addLV
    lv_device.setup()
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 1315, in addLV
    addLV(*lv_data[pidx])
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 1356, in handleVgLvs
    addLV(*lv_data[i])
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 1443, in handleUdevLVMPVFormat
    self.handleVgLvs(vg_device)
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 1730, in handleUdevDeviceFormat
    self.handleUdevLVMPVFormat(info, device)
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 1094, in addUdevDevice
    self.handleUdevDeviceFormat(info, device)
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 1956, in _populate
    self.addUdevDevice(dev)
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 1897, in populate
    self._populate()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 2814, in on_unlock_clicked
    self.__storage.devicetree.populate()
LVMError: lvactivate failed for pool00: running lvm lvchange -a y rhel_dhcp131-108/pool00 failed

Additional info:
see log

Comment 1 David Lehman 2014-01-13 18:42:33 UTC
This may be some sort of timing-related issue. Presumably opening the LUKS PV would have triggered automatic starting of the LVs, but apparently it isn't complete by the time we see the inactive pool LV and try to activate it.

Comment 2 David Lehman 2014-02-17 21:18:48 UTC
I tried to reproduce this. While I was unable to get the exact failure you got I did see some weirdness that suggested that udev and/or lvm weren't done reacting to the newly opened LUKS device. I made a simple patch that fixed the issues for me. If you'd like to verify it for yourself just let me know the blivet version and I will provide a URL to an updates image.

Comment 4 Peter Kotvan 2014-03-17 09:44:58 UTC
Verified on:
RHEL-7.0-20140314.0
python-blivet-0.18.32-1.el7

Comment 5 Ludek Smid 2014-06-13 10:00:40 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.