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.
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
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.
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.
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.
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