Bug 527274

Summary: FormatSetupError: invalid device specification
Product: [Fedora] Fedora Reporter: Alexey Kuznetsov <axet>
Component: anacondaAssignee: David Lehman <dlehman>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: ansenlong, axet, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: anaconda_trace_hash:362a7d4719823154de38ba626ef2415de945f485a8f00afe524de2d345de7a1d
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-12-08 14:27:15 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
Attached traceback automatically from anaconda.
none
Attached traceback automatically from anaconda. none

Description Alexey Kuznetsov 2009-10-05 17:02:48 UTC
The following was filed automatically by anaconda:
anaconda 12.32 exception report
Traceback (most recent call first):
  File "/usr/lib/anaconda/storage/formats/__init__.py", line 290, in setup
    raise FormatSetupError("invalid device specification")
  File "/usr/lib/anaconda/storage/formats/swap.py", line 118, in setup
    DeviceFormat.setup(self, *args, **kwargs)
  File "/usr/lib/anaconda/storage/__init__.py", line 1662, in turnOnSwap
    device.format.setup()
  File "/usr/lib/anaconda/storage/__init__.py", line 1032, in turnOnSwap
    self.fsset.turnOnSwap(self.anaconda, upgrading=upgrading)
  File "/usr/lib/anaconda/upgrade.py", line 259, in upgradeMountFilesystems
    anaconda.id.storage.turnOnSwap(upgrading=True)
  File "/usr/lib/anaconda/dispatch.py", line 200, in moveStep
    rc = stepFunc(self.anaconda)
  File "/usr/lib/anaconda/dispatch.py", line 123, in gotoNext
    self.moveStep()
  File "/usr/lib/anaconda/dispatch.py", line 222, in currentStep
    self.gotoNext()
  File "/usr/lib/anaconda/gui.py", line 1228, in setScreen
    (step, anaconda) = self.anaconda.dispatch.currentStep()
  File "/usr/lib/anaconda/gui.py", line 1398, in setup_window
    self.setScreen()
  File "/usr/lib/anaconda/gui.py", line 1408, in run
    self.setup_window(runres)
  File "/usr/lib/anaconda/gui.py", line 1148, in run
    self.icw.run (self.runres)
  File "/usr/bin/anaconda", line 981, in <module>
    anaconda.intf.run(anaconda)
FormatSetupError: invalid device specification

Comment 1 Alexey Kuznetsov 2009-10-05 17:02:56 UTC
Created attachment 363715 [details]
Attached traceback automatically from anaconda.

Comment 2 Alexey Kuznetsov 2009-10-06 12:46:55 UTC
Created attachment 363826 [details]
Attached traceback automatically from anaconda.

Comment 3 Bug Zapper 2009-11-16 13:16:34 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 12 development cycle.
Changing version to '12'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 4 Chris Lumens 2009-11-18 19:30:25 UTC
*** Bug 538543 has been marked as a duplicate of this bug. ***

Comment 5 Hans de Goede 2009-12-07 11:41:15 UTC
Some useful excerpts from the logs (identical in both logs):

Traceback (most recent call first):
  File "/usr/lib/anaconda/storage/formats/__init__.py", line 290, in setup
    raise FormatSetupError("invalid device specification")
  File "/usr/lib/anaconda/storage/formats/swap.py", line 118, in setup
    DeviceFormat.setup(self, *args, **kwargs)
  File "/usr/lib/anaconda/storage/__init__.py", line 1662, in turnOnSwap

And the last line of anaconda.log:

17:02:04 DEBUG   : SwapSpace.setup: device: /mnt/sysimag/var/swap ; status: False ; type: swap ;

So it seems that this traceback gets caused by the use of a swap file (/mnt/sysimag/var/swap), which is somehow not yet created at the time we try to
use it.

Comment 6 David Lehman 2009-12-08 14:27:15 UTC

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

Comment 7 Alexey Kuznetsov 2009-12-08 14:34:42 UTC
probably my fstab file contain more text then anaconda expect.

try to play with this swap file:

proc                    /proc                   proc    defaults        0 0
/var/swap               swap                    swap    defaults        0 0

instead, correct one:

proc                    /proc                   proc    defaults        0 0
/var/swap               swap                    swap