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 - LVMError: lvdeactivate failed for root: running lvm lvchange -a n rhel/root --config devices { preferred_names=["^/dev/mapper/", "^/dev/md/", "^/dev/sd"] } failed
Summary: LVMError: lvdeactivate failed for root: running lvm lvchange -a n rhel/root -...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: anaconda
Version: 7.1
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Vratislav Podzimek
QA Contact: Release Test Team
URL:
Whiteboard: abrt_hash:39cb66d165644df7294d55ffe92...
Depends On:
Blocks: 1112660
TreeView+ depends on / blocked
 
Reported: 2014-12-04 10:14 UTC by Alexander Todorov
Modified: 2015-11-19 09:49 UTC (History)
3 users (show)

Fixed In Version: anaconda-21.48.22.3-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-19 09:49:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
File: anaconda-tb (366.89 KB, text/plain)
2014-12-04 10:14 UTC, Alexander Todorov
no flags Details
File: anaconda.log (13.87 KB, text/plain)
2014-12-04 10:14 UTC, Alexander Todorov
no flags Details
File: environ (404 bytes, text/plain)
2014-12-04 10:14 UTC, Alexander Todorov
no flags Details
File: ks.cfg (278 bytes, text/plain)
2014-12-04 10:14 UTC, Alexander Todorov
no flags Details
File: lsblk_output (1.40 KB, text/plain)
2014-12-04 10:15 UTC, Alexander Todorov
no flags Details
File: nmcli_dev_list (1.02 KB, text/plain)
2014-12-04 10:15 UTC, Alexander Todorov
no flags Details
File: os_info (510 bytes, text/plain)
2014-12-04 10:15 UTC, Alexander Todorov
no flags Details
File: program.log (41.13 KB, text/plain)
2014-12-04 10:15 UTC, Alexander Todorov
no flags Details
File: storage.log (180.11 KB, text/plain)
2014-12-04 10:15 UTC, Alexander Todorov
no flags Details
File: syslog (65.11 KB, text/plain)
2014-12-04 10:15 UTC, Alexander Todorov
no flags Details
File: ifcfg.log (1.11 KB, text/plain)
2014-12-04 10:15 UTC, Alexander Todorov
no flags Details
File: packaging.log (26.54 KB, text/plain)
2014-12-04 10:15 UTC, Alexander Todorov
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:2284 0 normal SHIPPED_LIVE anaconda bug fix and enhancement update 2015-11-19 09:44:49 UTC

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


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