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: | anaconda | Assignee: | Vratislav Podzimek <vpodzime> | ||||||||||||||||||||||||||
| Status: | CLOSED ERRATA | QA Contact: | Release Test Team <release-test-team-automation> | ||||||||||||||||||||||||||
| Severity: | unspecified | Docs Contact: | |||||||||||||||||||||||||||
| Priority: | unspecified | ||||||||||||||||||||||||||||
| Version: | 7.1 | CC: | 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: |
|
||||||||||||||||||||||||||||
Created attachment 964540 [details]
File: anaconda-tb
Created attachment 964541 [details]
File: anaconda.log
Created attachment 964542 [details]
File: environ
Created attachment 964543 [details]
File: ks.cfg
Created attachment 964544 [details]
File: lsblk_output
Created attachment 964545 [details]
File: nmcli_dev_list
Created attachment 964546 [details]
File: os_info
Created attachment 964547 [details]
File: program.log
Created attachment 964548 [details]
File: storage.log
Created attachment 964549 [details]
File: syslog
Created attachment 964550 [details]
File: ifcfg.log
Created attachment 964551 [details]
File: packaging.log
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 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.
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. 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 |
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"