Bug 1295264

Summary: gi.overrides.BlockDev.LVMError: Process reported exit code 1280: Can't open /dev/sda2 exclusively. Mounted filesystem?
Product: [Fedora] Fedora Reporter: Stuart D Gathman <stuart>
Component: python-blivetAssignee: Blivet Maintenance Team <blivet-maint-list>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: anaconda-maint-list, blivet-maint-list, g.kaviyarasu, jonathan, j, nwaldyd, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:dc5312d8037ad54a832623bd909cbff51fa653cc4d065f2c3d03466168b2548b;
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-20 17:35:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
File: anaconda-tb
none
File: anaconda.log
none
File: environ
none
File: journalctl
none
File: lsblk_output
none
File: nmcli_dev_list
none
File: os_info
none
File: program.log
none
File: storage.log
none
File: ifcfg.log none

Description Stuart D Gathman 2016-01-04 03:38:17 UTC
Description of problem:
Custom partition, begin installation, created partition table, formatted /dev/sda1 as /boot, failed creating PV on /dev/sda2

Version-Release number of selected component:
anaconda-core-23.19.10-1.fc23.x86_64

The following was filed automatically by anaconda:
anaconda 23.19.10-1 exception report
Traceback (most recent call first):
  File "/usr/lib64/python3.4/site-packages/gi/overrides/BlockDev.py", line 416, in wrapped
    raise transform[1](msg)
  File "/usr/lib/python3.4/site-packages/blivet/formats/lvmpv.py", line 124, in _create
    blockdev.lvm.pvcreate(self.device, data_alignment=self.dataAlignment)
  File "/usr/lib/python3.4/site-packages/blivet/formats/__init__.py", line 388, in create
    self._create(**kwargs)
  File "/usr/lib/python3.4/site-packages/blivet/deviceaction.py", line 590, in execute
    options=self.device.formatArgs)
  File "/usr/lib/python3.4/site-packages/blivet/actionlist.py", line 280, in process
    action.execute(callbacks)
  File "/usr/lib/python3.4/site-packages/blivet/devicetree.py", line 380, in processActions
    callbacks=callbacks)
  File "/usr/lib/python3.4/site-packages/blivet/blivet.py", line 164, in doIt
    self.devicetree.processActions(callbacks=callbacks)
  File "/usr/lib/python3.4/site-packages/blivet/osinstall.py", line 1096, in turnOnFilesystems
    storage.doIt(callbacks)
  File "/usr/lib64/python3.4/site-packages/pyanaconda/install.py", line 195, in doInstall
    turnOnFilesystems(storage, mountOnly=flags.flags.dirInstall, callbacks=callbacks_reg)
  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)
gi.overrides.BlockDev.LVMError: Process reported exit code 1280:   Can't open /dev/sda2 exclusively.  Mounted filesystem?


Additional info:
cmdline:        /usr/bin/python3  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-base
cmdline_file:   BOOT_IMAGE=vmlinuz0 initrd=initrd0.img root=live:CDLABEL=LIVE rootfstype=vfat rw rd.live.image rd.live.overlay=LABEL=LIVE quiet  rhgb rd.luks=0 rd.md=0 rd.dm=0 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         4.2.3-300.fc23.x86_64
other involved packages: python3-libs-3.4.3-5.fc23.x86_64, libblockdev-1.1-2.fc23.x86_64, python3-blivet-1.12.8-1.fc23.noarch
product:        Fedora
release:        Fedora release 23 (Twenty Three)
type:           anaconda
version:        23

Comment 1 Stuart D Gathman 2016-01-04 03:38:34 UTC
Created attachment 1111283 [details]
File: anaconda-tb

Comment 2 Stuart D Gathman 2016-01-04 03:38:35 UTC
Created attachment 1111284 [details]
File: anaconda.log

Comment 3 Stuart D Gathman 2016-01-04 03:38:36 UTC
Created attachment 1111285 [details]
File: environ

Comment 4 Stuart D Gathman 2016-01-04 03:38:43 UTC
Created attachment 1111286 [details]
File: journalctl

Comment 5 Stuart D Gathman 2016-01-04 03:38:44 UTC
Created attachment 1111287 [details]
File: lsblk_output

Comment 6 Stuart D Gathman 2016-01-04 03:38:45 UTC
Created attachment 1111288 [details]
File: nmcli_dev_list

Comment 7 Stuart D Gathman 2016-01-04 03:38:46 UTC
Created attachment 1111289 [details]
File: os_info

Comment 8 Stuart D Gathman 2016-01-04 03:38:48 UTC
Created attachment 1111290 [details]
File: program.log

Comment 9 Stuart D Gathman 2016-01-04 03:38:50 UTC
Created attachment 1111291 [details]
File: storage.log

Comment 10 Stuart D Gathman 2016-01-04 03:38:51 UTC
Created attachment 1111292 [details]
File: ifcfg.log

Comment 11 Stuart D Gathman 2016-01-13 02:29:43 UTC
The issue here is dmraid.  You have to turn it off or remove the metadata with wipefs.  The presence of a hardware raid capable card causes dmraid to add the metadata again, do you have to turn off dmraid on the kernel command line to run anaconda.

Comment 12 Nestor Waldyd 2016-01-15 15:59:05 UTC
Another user experienced a similar problem:

1. Boot from Fedora 23 Live i586
2. Install to Hard Drive
3. Claim space from disk + encryption + automatic partitioning

cmdline:        /usr/bin/python3  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-base
cmdline_file:   BOOT_IMAGE=vmlinuz0 initrd=initrd0.img root=live:CDLABEL=Fedora-Live-WS-i686-23-10 rootfstype=auto ro rd.live.image quiet  rhgb rd.luks=0 rd.md=0 rd.dm=0 
hashmarkername: anaconda
kernel:         4.2.3-300.fc23.i686
other involved packages: python3-libs-3.4.3-5.fc23.i686, python3-blivet-1.12.8-1.fc23.noarch, libblockdev-1.1-2.fc23.i686
package:        anaconda-core-23.19.10-1.fc23.i686
packaging.log:  
product:        Fedora
release:        Fedora release 23 (Twenty Three)
version:        23

Comment 13 Fedora End Of Life 2016-11-24 14:41:17 UTC
This message is a reminder that Fedora 23 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 23. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '23'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 23 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 14 Fedora End Of Life 2016-12-20 17:35:23 UTC
Fedora 23 changed to end-of-life (EOL) status on 2016-12-20. Fedora 23 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.