Bug 1247622

Summary: blivet.errors.FSError: umount failed
Product: [Fedora] Fedora Reporter: Petr Schindler <pschindl>
Component: anacondaAssignee: Jiri Konecny <jkonecny>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: anaconda-maint-list, awilliam, g.kaviyarasu, jkonecny, jonathan, knight, kparal, lbrabec, pschindl, robatino, vanmeeuwen+fedora, vpodzime
Target Milestone: ---Keywords: CommonBugs
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:f23c8ccd92c4247b9039e494db4f87aa306223f8331477859bce71f93b2d3cc0 AcceptedBlocker https://fedoraproject.org/wiki/Common_F23_bugs#litd-dvd
Fixed In Version: anaconda-23.19.2-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-09-09 15:22:13 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: 1170819    
Attachments:
Description Flags
File: anaconda-tb
none
File: anaconda.log
none
File: dnf.log
none
File: environ
none
File: lsblk_output
none
File: nmcli_dev_list
none
File: os_info
none
File: storage.log
none
File: syslog
none
File: ifcfg.log
none
File: packaging.log
none
File: program.log none

Description Petr Schindler 2015-07-28 12:54:43 UTC
Description of problem:
I run anaconda from usb populated by livecd-iso-to-disk (Fedora-23-Server-DVD UEFI). Anaconda crashed right after the start.

There are three disks on this machine: One with installed F22 - default UEFI installation
on sdb and sdc is installed f23. There are /boot, /boot/efi and swap on /dev/sdb. / is RAID using sdb and sdc.

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

The following was filed automatically by anaconda:
anaconda 23.17-1 exception report
Traceback (most recent call first):
  File "/usr/lib/python3.4/site-packages/blivet/formats/fs.py", line 632, in _teardown
    raise FSError("umount failed")
  File "/usr/lib/python3.4/site-packages/blivet/formats/__init__.py", line 526, in teardown
    self._teardown(**kwargs)
  File "/usr/lib/python3.4/site-packages/blivet/devices/storage.py", line 416, in _preTeardown
    self.format.teardown()
  File "/usr/lib/python3.4/site-packages/blivet/devices/storage.py", line 428, in teardown
    if not self._preTeardown(recursive=recursive):
  File "/usr/lib64/python3.4/site-packages/pyanaconda/packaging/__init__.py", line 829, in _setupMedia
    device.teardown(recursive=True)
  File "/usr/lib64/python3.4/site-packages/pyanaconda/packaging/__init__.py", line 887, in _setupInstallDevice
    self._setupMedia(isodevice)
  File "/usr/lib64/python3.4/site-packages/pyanaconda/packaging/dnfpayload.py", line 752, in updateBaseRepo
    checkmount)
  File "/usr/lib64/python3.4/site-packages/pyanaconda/packaging/__init__.py", line 1287, in _runThread
    payload.updateBaseRepo(fallback=fallback, checkmount=checkmount)
  File "/usr/lib64/python3.4/threading.py", line 868, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib64/python3.4/site-packages/pyanaconda/threads.py", line 253, in run
    threading.Thread.run(self, *args, **kwargs)
blivet.errors.FSError: umount failed

Additional info:
addons:         com_redhat_kdump
cmdline:        /usr/bin/python3  /sbin/anaconda
cmdline_file:   BOOT_IMAGE=/syslinux/vmlinuz inst.stage2=hd:UUID=6D8B-8A42:/images/install.img inst.repo=hd:UUID=6D8B-8A42:/ inst.stage2=hd:UUID=6D8B-8A42 rd.live.check quiet
dnf.rpm.log:    Jul 28 12:47:40 INFO --- logging initialized ---
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         4.2.0-0.rc3.git4.1.fc23.x86_64
product:        Fedora
release:        Cannot get release name.
type:           anaconda
version:        23

Comment 1 Petr Schindler 2015-07-28 12:54:46 UTC
Created attachment 1057015 [details]
File: anaconda-tb

Comment 2 Petr Schindler 2015-07-28 12:54:48 UTC
Created attachment 1057016 [details]
File: anaconda.log

Comment 3 Petr Schindler 2015-07-28 12:54:49 UTC
Created attachment 1057017 [details]
File: dnf.log

Comment 4 Petr Schindler 2015-07-28 12:54:51 UTC
Created attachment 1057018 [details]
File: environ

Comment 5 Petr Schindler 2015-07-28 12:54:52 UTC
Created attachment 1057019 [details]
File: lsblk_output

Comment 6 Petr Schindler 2015-07-28 12:54:53 UTC
Created attachment 1057020 [details]
File: nmcli_dev_list

Comment 7 Petr Schindler 2015-07-28 12:54:54 UTC
Created attachment 1057021 [details]
File: os_info

Comment 8 Petr Schindler 2015-07-28 12:54:57 UTC
Created attachment 1057022 [details]
File: storage.log

Comment 9 Petr Schindler 2015-07-28 12:54:59 UTC
Created attachment 1057023 [details]
File: syslog

Comment 10 Petr Schindler 2015-07-28 12:55:00 UTC
Created attachment 1057024 [details]
File: ifcfg.log

Comment 11 Petr Schindler 2015-07-28 12:55:01 UTC
Created attachment 1057025 [details]
File: packaging.log

Comment 12 Petr Schindler 2015-07-28 12:55:03 UTC
Created attachment 1057026 [details]
File: program.log

Comment 13 Petr Schindler 2015-07-28 13:09:05 UTC
Another user experienced a similar problem:

I tested with another workstation. This time I used bios boot instead of uefi. I used livecd-iso-to-disk again. So my guess is that it happens whenewer a DVD image is put to usb by litd. Dd works fine.

addons:         com_redhat_kdump
cmdline:        /usr/bin/python3  /sbin/anaconda
cmdline_file:   BOOT_IMAGE=vmlinuz initrd=initrd.img inst.stage2=hd:UUID=4ba3e254-dc4b-40d2-8d04-65c2b30856f4:/images/install.img inst.repo=hd:UUID=4ba3e254-dc4b-40d2-8d04-65c2b30856f4:/ inst.stage2=hd:UUID=4ba3e254-dc4b-40d2-8d04-65c2b30856f4 quiet
dnf.rpm.log:    Jul 28 13:04:47 INFO --- logging initialized ---
hashmarkername: anaconda
kernel:         4.2.0-0.rc3.git4.1.fc23.x86_64
package:        anaconda-23.17-1
product:        Fedora
reason:         blivet.errors.FSError: umount failed
release:        Cannot get release name.
version:        23

Comment 14 Petr Schindler 2015-07-28 14:06:28 UTC
netinst works fine with litd.

I propose this bug as Beta blocker (as dd works fine) as it violates the beta criterion:
All release-blocking images must boot in their supported configurations.
Supported media types: Release-blocking live and dedicated installer images must boot when written to optical media of an appropriate size (if applicable) and when written to a USB stick with any of the officially supported methods.

Comment 15 Petr Schindler 2015-08-03 16:22:06 UTC
Discussed at today's blocker review meeting [1].

This bug was accepted as Beta blocker - This bug is a violation of the following Beta criteria: "Release-blocking live and dedicated installer images must boot when written to optical media of an appropriate size (if applicable) and when written to a USB stick with any of the officially supported methods"

[1] http://meetbot.fedoraproject.org/fedora-blocker-review/2015-08-03/

Comment 16 Vratislav Podzimek 2015-08-10 11:14:14 UTC
from the program.log:
12:47:45,897 INFO program: Running... umount /run/install/repo
12:47:45,905 INFO program: stderr:
12:47:45,906 INFO program: b'umount: /run/install/repo: target is busy'
12:47:45,906 INFO program: b'        (In some cases useful info about processes that'
12:47:45,906 INFO program: b'         use the device is found by lsof(8) or fuser(1).)'

Comment 17 Jiri Konecny 2015-08-21 12:08:44 UTC
This bug and the bug 1252902 have the same patch.

https://github.com/rhinstaller/anaconda/pull/312

Comment 18 Adam Williamson 2015-09-08 04:57:53 UTC
Petr, can you confirm the fix in Beta TC4? Thanks!

Comment 19 Lukas Brabec 2015-09-09 09:02:16 UTC
Seems to be working in Beta TC4.

Comment 20 Adam Williamson 2015-09-09 15:22:13 UTC
Thanks! 23.19.2 went stable, so closing.