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 1170550

Summary: LVMError: lvdeactivate failed for root: running lvm lvchange -a n rhel/root --config devices { preferred_names=["^/dev/mapper/", "^/dev/md/", "^/dev/sd"] } failed
Product: Red Hat Enterprise Linux 7 Reporter: Alexander Todorov <atodorov>
Component: anacondaAssignee: Vratislav Podzimek <vpodzime>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.1CC: jstancek, mkovarik, tlavigne
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:39cb66d165644df7294d55ffe92fc9f2d12488d6ec3f5942690fd8cce037a903
Fixed In Version: anaconda-21.48.22.3-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-19 09:49:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1112660    
Attachments:
Description Flags
File: anaconda-tb
none
File: anaconda.log
none
File: environ
none
File: ks.cfg
none
File: lsblk_output
none
File: nmcli_dev_list
none
File: os_info
none
File: program.log
none
File: storage.log
none
File: syslog
none
File: ifcfg.log
none
File: packaging.log none

Description Alexander Todorov 2014-12-04 10:14:56 UTC
Description of problem:
I've had a VM guest with a single disk installed with:

zerombr
clearpart --all --initlabel
autopart

Then I started a second VM install using the same disk image and the same kickstart. For some reason installation didn't proceed automatically (full ks.cfg will be attached) but stopped at the hub spoke, telling me to configure the installation target. I've selected the single disk available, deleted ll existing partitions and proceeded with the defaults. Then hit this traceback.

Version-Release number of selected component:
anaconda-19.31.111-1

The following was filed automatically by anaconda:
anaconda 19.31.111-1 exception report
Traceback (most recent call first):
  File "/usr/lib/python2.7/site-packages/blivet/devicelibs/lvm.py", line 529, in lvdeactivate
    raise LVMError("lvdeactivate failed for %s: %s" % (lv_name, msg))
  File "/usr/lib/python2.7/site-packages/blivet/devices.py", line 3146, in _teardown
    lvm.lvdeactivate(self.vg.name, self._name)
  File "/usr/lib/python2.7/site-packages/blivet/devices.py", line 914, in teardown
    self._teardown(recursive=recursive)
  File "/usr/lib/python2.7/site-packages/blivet/devices.py", line 970, in _preDestroy
    self.teardown()
  File "/usr/lib/python2.7/site-packages/blivet/devices.py", line 3187, in _preDestroy
    StorageDevice._preDestroy(self)
  File "/usr/lib/python2.7/site-packages/blivet/devices.py", line 979, in destroy
    self._preDestroy()
  File "/usr/lib/python2.7/site-packages/blivet/deviceaction.py", line 337, in execute
    self.device.destroy()
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 360, in processActions
    action.execute(callbacks)
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 368, in doIt
    self.devicetree.processActions(callbacks)
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 219, in turnOnFilesystems
    storage.doIt(callbacks)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/install.py", line 185, in doInstall
    turnOnFilesystems(storage, mountOnly=flags.flags.dirInstall, callbacks=callbacks_reg)
  File "/usr/lib64/python2.7/threading.py", line 764, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/threads.py", line 211, in run
    threading.Thread.run(self, *args, **kwargs)
LVMError: lvdeactivate failed for root: running lvm lvchange -a n rhel/root --config  devices { preferred_names=["^/dev/mapper/", "^/dev/md/", "^/dev/sd"] }  failed

Additional info:
cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   method=http://download.eng.rdu.redhat.com/rel-eng/RHEL-7.1-20141203.0/compose/Server/x86_64/os  ks=http://ibm-hs21-12.lab.eng.rdu.redhat.com/ks.cfg
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.10.0-210.el7.x86_64
product:        Red Hat Enterprise Linux 7"
release:        Red Hat Enterprise Linux Workstation release 7.1 Beta (Maipo)
release_type:   pre-release
type:           anaconda
version:        Red Hat Enterprise Linux Workstation"

Comment 1 Alexander Todorov 2014-12-04 10:14:57 UTC
Created attachment 964540 [details]
File: anaconda-tb

Comment 2 Alexander Todorov 2014-12-04 10:14:58 UTC
Created attachment 964541 [details]
File: anaconda.log

Comment 3 Alexander Todorov 2014-12-04 10:14:59 UTC
Created attachment 964542 [details]
File: environ

Comment 4 Alexander Todorov 2014-12-04 10:14:59 UTC
Created attachment 964543 [details]
File: ks.cfg

Comment 5 Alexander Todorov 2014-12-04 10:15:00 UTC
Created attachment 964544 [details]
File: lsblk_output

Comment 6 Alexander Todorov 2014-12-04 10:15:01 UTC
Created attachment 964545 [details]
File: nmcli_dev_list

Comment 7 Alexander Todorov 2014-12-04 10:15:03 UTC
Created attachment 964546 [details]
File: os_info

Comment 8 Alexander Todorov 2014-12-04 10:15:04 UTC
Created attachment 964547 [details]
File: program.log

Comment 9 Alexander Todorov 2014-12-04 10:15:05 UTC
Created attachment 964548 [details]
File: storage.log

Comment 10 Alexander Todorov 2014-12-04 10:15:06 UTC
Created attachment 964549 [details]
File: syslog

Comment 11 Alexander Todorov 2014-12-04 10:15:07 UTC
Created attachment 964550 [details]
File: ifcfg.log

Comment 12 Alexander Todorov 2014-12-04 10:15:07 UTC
Created attachment 964551 [details]
File: packaging.log

Comment 13 Alexander Todorov 2014-12-04 10:16:34 UTC
My ks.cfg

keyboard --vckeymap=us --xlayouts='us'
auth --useshadow  --enablemd5
reboot
firstboot --disable
lang en_US.UTF-8
network  --bootproto=dhcp
rootpw redhat
timezone America/New_York
bootloader --location=mbr 

zerombr
clearpart --all --initlabel
autopart

%packages
@core
%end

Comment 15 David Lehman 2015-03-18 18:25:24 UTC
09:43:17,778 INFO program: Running... lvm lvchange -a y rhel/root --config  devices { preferred_names=["^/dev/mapper/", "^/dev/md/", "^/dev/sd"] } 
09:43:18,255 DEBUG program: Return code: 0
09:43:18,259 INFO program: Running... udevadm settle --timeout=300
09:43:18,367 DEBUG program: Return code: 0
09:43:18,373 INFO program: Running... mount -t xfs -o defaults,ro /dev/mapper/rhel-root /mnt/sysimage
09:43:18,700 DEBUG program: Return code: 0
<snip>
09:43:20,174 INFO program: Running... udevadm settle --timeout=300
09:43:20,260 DEBUG program: Return code: 0
09:43:20,268 INFO program: Running... umount /mnt/sysimage
09:43:20,321 INFO program: umount: /mnt/sysimage: target is busy.
09:43:20,324 INFO program:         (In some cases useful info about processes that use
09:43:20,324 INFO program:          the device is found by lsof(8) or fuser(1))
09:43:20,325 DEBUG program: Return code: 32
09:43:20,325 INFO program: Running... lsof /mnt/sysimage
09:43:20,554 DEBUG program: Return code: 1

We mount the xfs on rhel/root and then something prevents us from unmounting it.

Comment 17 Vratislav Podzimek 2015-06-26 09:54:05 UTC
These issues used be caused by anaconda running 'ntpdate' (see also bug #1083978) to check the accessibility of NTP servers. The rebased anaconda uses python-ntplib which shouldn't cause issues like this. So I believe this should be fixed.

Comment 20 errata-xmlrpc 2015-11-19 09:49:50 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, 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://rhn.redhat.com/errata/RHBA-2015-2284.html