Bug 1299011

Summary: blivet.errors.DeviceError: ('cannot replace active format', 'sdb2')
Product: [Fedora] Fedora Reporter: Derek <rumbleincybertron>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: anaconda-maint-list, g.kaviyarasu, jonathan, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:eef80d87780c336d1bc8da333f1aad566d64b22ba4b02e6b18cc9c71e44eb8f8;VARIANT_ID=workstation;
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-01-15 17:32:54 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:
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 Derek 2016-01-15 17:04:27 UTC
Description of problem:
 I am trying to install Fedora on an external HDD from a liveUSB of Fedora. 
After choosing "Installation Destination", I selected my external HDD for installing Fedora 23. 
Next it tells me I need to reclaim space. I made a partition (NTFS) of about 100GiB for installing Fedora. 
When trying to reclaim space from a partition on my external HDD I continually receive the following error. 
This happens before I can even begin the installation process. 
The fedora iso is verified.

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/lib/python3.4/site-packages/blivet/devices/storage.py", line 695, in _setFormat
    raise errors.DeviceError("cannot replace active format", self.name)
  File "/usr/lib/python3.4/site-packages/blivet/devices/storage.py", line 740, in <lambda>
    lambda d,f: d._setFormat(f),
  File "/usr/lib/python3.4/site-packages/blivet/deviceaction.py", line 669, in apply
    self.device.format = None
  File "/usr/lib/python3.4/site-packages/blivet/devicetree.py", line 323, in registerAction
    action.apply()
  File "/usr/lib/python3.4/site-packages/blivet/devicetree.py", line 287, in recursiveRemove
    self.registerAction(ActionDestroyFormat(device))
  File "/usr/lib/python3.4/site-packages/blivet/blivet.py", line 607, in recursiveRemove
    self.devicetree.recursiveRemove(device)
  File "/usr/lib64/python3.4/site-packages/pyanaconda/ui/gui/spokes/lib/resize.py", line 422, in _recursiveRemove
    self.storage.recursiveRemove(device)
  File "/usr/lib64/python3.4/site-packages/pyanaconda/ui/gui/spokes/lib/resize.py", line 447, in _scheduleActions
    self._recursiveRemove(device)
blivet.errors.DeviceError: ('cannot replace active format', 'sdb2')

Additional info:
cmdline:        /usr/bin/python3  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-base
cmdline_file:   BOOT_IMAGE=/syslinux/vmlinuz0 root=live:LABEL=LIVE ro rd.live.image quiet rhgb rd.live.check
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         4.2.3-300.fc23.x86_64
other involved packages: python3-blivet-1.12.8-1.fc23.noarch, anaconda-gui-23.19.10-1.fc23.x86_64
product:        Fedora
release:        Fedora release 23 (Twenty Three)
type:           anaconda
version:        23

Comment 1 Derek 2016-01-15 17:04:38 UTC
Created attachment 1115194 [details]
File: anaconda-tb

Comment 2 Derek 2016-01-15 17:04:40 UTC
Created attachment 1115195 [details]
File: anaconda.log

Comment 3 Derek 2016-01-15 17:04:42 UTC
Created attachment 1115196 [details]
File: environ

Comment 4 Derek 2016-01-15 17:04:47 UTC
Created attachment 1115197 [details]
File: journalctl

Comment 5 Derek 2016-01-15 17:04:49 UTC
Created attachment 1115198 [details]
File: lsblk_output

Comment 6 Derek 2016-01-15 17:04:50 UTC
Created attachment 1115199 [details]
File: nmcli_dev_list

Comment 7 Derek 2016-01-15 17:04:52 UTC
Created attachment 1115200 [details]
File: os_info

Comment 8 Derek 2016-01-15 17:04:55 UTC
Created attachment 1115201 [details]
File: program.log

Comment 9 Derek 2016-01-15 17:05:00 UTC
Created attachment 1115202 [details]
File: storage.log

Comment 10 Derek 2016-01-15 17:05:02 UTC
Created attachment 1115203 [details]
File: ifcfg.log

Comment 11 David Shea 2016-01-15 17:32:54 UTC
You can't repartition the drive you booted from, since it's in use, running the live environment.

*** This bug has been marked as a duplicate of bug 1172342 ***