Bug 1133358 - DeviceError: ('cannot replace active format', 'sda5')
Summary: DeviceError: ('cannot replace active format', 'sda5')
Keywords:
Status: CLOSED DUPLICATE of bug 1114786
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 21
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:7bbee9d4e3332a8bc2b607e5e1a...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-08-25 02:44 UTC by Ankur Sinha (FranciscoD)
Modified: 2014-10-13 13:41 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-10-13 13:41:38 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: anaconda-tb (755.69 KB, text/plain)
2014-08-25 02:44 UTC, Ankur Sinha (FranciscoD)
no flags Details
File: anaconda.log (30.94 KB, text/plain)
2014-08-25 02:44 UTC, Ankur Sinha (FranciscoD)
no flags Details
File: environ (538 bytes, text/plain)
2014-08-25 02:44 UTC, Ankur Sinha (FranciscoD)
no flags Details
File: journalctl (338.12 KB, text/plain)
2014-08-25 02:44 UTC, Ankur Sinha (FranciscoD)
no flags Details
File: lsblk_output (3.43 KB, text/plain)
2014-08-25 02:44 UTC, Ankur Sinha (FranciscoD)
no flags Details
File: nmcli_dev_list (1.50 KB, text/plain)
2014-08-25 02:44 UTC, Ankur Sinha (FranciscoD)
no flags Details
File: os_info (377 bytes, text/plain)
2014-08-25 02:44 UTC, Ankur Sinha (FranciscoD)
no flags Details
File: program.log (39.67 KB, text/plain)
2014-08-25 02:44 UTC, Ankur Sinha (FranciscoD)
no flags Details
File: storage.log (263.63 KB, text/plain)
2014-08-25 02:44 UTC, Ankur Sinha (FranciscoD)
no flags Details
File: ifcfg.log (2.93 KB, text/plain)
2014-08-25 02:44 UTC, Ankur Sinha (FranciscoD)
no flags Details

Description Ankur Sinha (FranciscoD) 2014-08-25 02:44:01 UTC
Description of problem:
Was on the partitioning stage. It crashed when I clicked on "reformat" for my already existing swap partition.

Version-Release number of selected component:
anaconda-core-21.48.2-1.fc21.x86_64

The following was filed automatically by anaconda:
anaconda 21.48.2-1 exception report
Traceback (most recent call first):
  File "/usr/lib/python2.7/site-packages/blivet/devices.py", line 1040, in _setFormat
    raise errors.DeviceError("cannot replace active format", self.name)
  File "/usr/lib/python2.7/site-packages/blivet/devices.py", line 1601, in _setFormat
    StorageDevice._setFormat(self, fmt)
  File "/usr/lib/python2.7/site-packages/blivet/devices.py", line 1049, in <lambda>
    lambda d,f: d._setFormat(f),
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 809, in _do_reformat
    device.format = old_format
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 121, in decorated
    return func(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 1149, in _save_right_side
    encrypted, selector, fs_type)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 2492, in on_update_settings_clicked
    self._save_right_side(self._current_selector)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/utils.py", line 240, in _run_once_one_arg
    self._func(*args, **kwargs)
DeviceError: ('cannot replace active format', 'sda5')

Additional info:
cmdline:        /usr/bin/python  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-base
cmdline_file:   BOOT_IMAGE=vmlinuz0 initrd=initrd0.img root=live:CDLABEL=Fedora-Live-Workstation-x86_64-2 rootfstype=auto ro rd.live.image quiet  rhgb rd.luks=0 rd.md=0 rd.dm=0 rd.live.check
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.16.1-300.fc21.x86_64
other involved packages: anaconda-gui-21.48.2-1.fc21.x86_64, python-blivet-0.61-1.fc21.noarch
product:        Fedora
release:        Fedora release 21 (Twenty One)
type:           anaconda
version:        21

Comment 1 Ankur Sinha (FranciscoD) 2014-08-25 02:44:14 UTC
Created attachment 930268 [details]
File: anaconda-tb

Comment 2 Ankur Sinha (FranciscoD) 2014-08-25 02:44:17 UTC
Created attachment 930269 [details]
File: anaconda.log

Comment 3 Ankur Sinha (FranciscoD) 2014-08-25 02:44:18 UTC
Created attachment 930270 [details]
File: environ

Comment 4 Ankur Sinha (FranciscoD) 2014-08-25 02:44:24 UTC
Created attachment 930271 [details]
File: journalctl

Comment 5 Ankur Sinha (FranciscoD) 2014-08-25 02:44:26 UTC
Created attachment 930272 [details]
File: lsblk_output

Comment 6 Ankur Sinha (FranciscoD) 2014-08-25 02:44:27 UTC
Created attachment 930273 [details]
File: nmcli_dev_list

Comment 7 Ankur Sinha (FranciscoD) 2014-08-25 02:44:29 UTC
Created attachment 930274 [details]
File: os_info

Comment 8 Ankur Sinha (FranciscoD) 2014-08-25 02:44:31 UTC
Created attachment 930275 [details]
File: program.log

Comment 9 Ankur Sinha (FranciscoD) 2014-08-25 02:44:38 UTC
Created attachment 930276 [details]
File: storage.log

Comment 10 Ankur Sinha (FranciscoD) 2014-08-25 02:44:39 UTC
Created attachment 930277 [details]
File: ifcfg.log

Comment 11 Ankur Sinha (FranciscoD) 2014-08-25 02:49:42 UTC
Another user experienced a similar problem:

Clicked "reformat" to reformat an already existing swap partition that I intend to use.

cmdline:        /usr/bin/python  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-base
cmdline_file:   BOOT_IMAGE=vmlinuz0 initrd=initrd0.img root=live:CDLABEL=Fedora-Live-Workstation-x86_64-2 rootfstype=auto ro rd.live.image quiet  rhgb rd.luks=0 rd.md=0 rd.dm=0 rd.live.check
hashmarkername: anaconda
kernel:         3.16.1-300.fc21.x86_64
other involved packages: anaconda-gui-21.48.2-1.fc21.x86_64, python-blivet-0.61-1.fc21.noarch
package:        anaconda-core-21.48.2-1.fc21.x86_64
packaging.log:  
product:        Fedora
reason:         DeviceError: ('cannot replace active format', 'sda5')
release:        Fedora release 21 (Twenty One)
version:        21

Comment 12 M. Edward (Ed) Borasky 2014-09-24 04:59:48 UTC
Another user experienced a similar problem:

1. Start the installed from the F21 Alpha Workstation Live media
2. Select the disks - there's an existing F21 on the system I want to over-write.
3. Partition manually. Try to reformat the swap partition. That forces an error.

cmdline:        /usr/bin/python  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-base
cmdline_file:   initrd=initrd0.img root=live:CDLABEL=LIVE rootfstype=ext4 rw rd.live.image rd.live.overlay=LABEL=LIVE quiet  rhgb rd.luks=0 rd.md=0 rd.dm=0  BOOT_IMAGE=vmlinuz0 
hashmarkername: anaconda
kernel:         3.16.1-301.fc21.x86_64
other involved packages: python-blivet-0.62-1.fc21.noarch, anaconda-gui-21.48.6-1.fc21.x86_64
package:        anaconda-core-21.48.6-1.fc21.x86_64
packaging.log:  
product:        Fedora
reason:         DeviceError: ('cannot replace active format', 'mpathb2')
release:        Fedora release 21 (Twenty One)
version:        21

Comment 13 Panos Polychronis 2014-09-24 07:24:24 UTC
Another user experienced a similar problem:

At partitioning stage... installer crashed if you check reformat for existing partitions ...maybe that's for the swap partition only.

cmdline:        /usr/bin/python  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-base
cmdline_file:   BOOT_IMAGE=vmlinuz0 initrd=initrd0.img root=live:CDLABEL=Fedora-Live-Workstation-x86_64-2 rootfstype=auto ro rd.live.image quiet  rhgb rd.luks=0 rd.md=0 rd.dm=0 nouveau.noaccel=1
hashmarkername: anaconda
kernel:         3.16.1-301.fc21.x86_64
other involved packages: python-blivet-0.62-1.fc21.noarch, anaconda-gui-21.48.6-1.fc21.x86_64
package:        anaconda-core-21.48.6-1.fc21.x86_64
packaging.log:  
product:        Fedora
reason:         DeviceError: ('cannot replace active format', 'sdb2')
release:        Fedora release 21 (Twenty One)
version:        21

Comment 14 M. Edward (Ed) Borasky 2014-09-24 08:23:03 UTC
(In reply to M. Edward (Ed) Borasky from comment #12)
> Another user experienced a similar problem:
> 
> 1. Start the installed from the F21 Alpha Workstation Live media
> 2. Select the disks - there's an existing F21 on the system I want to
> over-write.
> 3. Partition manually. Try to reformat the swap partition. That forces an
> error.
> 
> cmdline:        /usr/bin/python  /sbin/anaconda --liveinst
> --method=livecd:///dev/mapper/live-base
> cmdline_file:   initrd=initrd0.img root=live:CDLABEL=LIVE rootfstype=ext4 rw
> rd.live.image rd.live.overlay=LABEL=LIVE quiet  rhgb rd.luks=0 rd.md=0
> rd.dm=0  BOOT_IMAGE=vmlinuz0 
> hashmarkername: anaconda
> kernel:         3.16.1-301.fc21.x86_64
> other involved packages: python-blivet-0.62-1.fc21.noarch,
> anaconda-gui-21.48.6-1.fc21.x86_64
> package:        anaconda-core-21.48.6-1.fc21.x86_64
> packaging.log:  
> product:        Fedora
> reason:         DeviceError: ('cannot replace active format', 'mpathb2')
> release:        Fedora release 21 (Twenty One)
> version:        21

One thing I did check is whether the swap partition was in use. 'swapon -s' said it *was* in use. So I did a 'swapoff -a' and restarted the installer. It crashed again, and it turned out that for some reason the swap partition got remounted.

Also, if I *don't* define a swap partition during the install, there's no swap partition in /etc/fstab after the install! And 'swapon -s' shows no swap partition. I have to add it manually!

Comment 15 Brian Limones 2014-09-28 17:55:31 UTC
Another user experienced a similar problem:

I am installing FC 21 fresh. I have partitions divided as: /, /boot, swap, /home


I was setting mount points nad hitting reformat for each. All were done except for swap. When I hit apply settings to reformat swap, the bug occured.  This is my first time installing FC 21 and first time seeing the crash.

cmdline:        /usr/bin/python  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-base
cmdline_file:   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  BOOT_IMAGE=vmlinuz0 
hashmarkername: anaconda
kernel:         3.16.1-301.fc21.x86_64
other involved packages: python-blivet-0.62-1.fc21.noarch, anaconda-gui-21.48.6-1.fc21.x86_64
package:        anaconda-core-21.48.6-1.fc21.x86_64
packaging.log:  
product:        Fedora
reason:         DeviceError: ('cannot replace active format', 'sda2')
release:        Fedora release 21 (Twenty One)
version:        21

Comment 16 M. Edward (Ed) Borasky 2014-09-28 19:07:35 UTC
This doesn't appear to be an issue on the Net Install CD - I can reformat swap and get it into the installed system's /etc/fstab if I install that way. So something on the Live Workstation seems to be continuously checking for a swap partition and mounting it.

Comment 17 David Shea 2014-10-13 13:41:38 UTC

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


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