Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 651478 - FormatCreateError: ('invalid device specification', '/dev/dasdb1')
Summary: FormatCreateError: ('invalid device specification', '/dev/dasdb1')
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: parted
Version: rawhide
Hardware: s390x
OS: Linux
high
urgent
Target Milestone: ---
Assignee: Brian Lane
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: anaconda_trace_hash:a6829199b50f36c91...
Depends On:
Blocks: ZedoraTracker
TreeView+ depends on / blocked
 
Reported: 2010-11-09 16:49 UTC by Jan Stodola
Modified: 2010-11-27 23:36 UTC (History)
6 users (show)

Fixed In Version: parted-2.3-4.fc14
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-11-27 23:36:32 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Attached traceback automatically from anaconda. (316.89 KB, text/plain)
2010-11-09 16:49 UTC, Jan Stodola
no flags Details
resync DASD partitions (1.49 KB, patch)
2010-11-18 23:02 UTC, Brian Lane
no flags Details | Diff

Description Jan Stodola 2010-11-09 16:49:44 UTC
The following was filed automatically by anaconda:
anaconda 14.17.2 exception report
Traceback (most recent call first):
  File "/usr/lib64/python2.7/site-packages/pyanaconda/storage/formats/__init__.py", line 266, in create
    raise FormatCreateError("invalid device specification", self.device)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/storage/formats/fs.py", line 849, in create
    DeviceFormat.create(self, *args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/storage/deviceaction.py", line 290, in execute
    options=self.device.formatArgs)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/storage/devicetree.py", line 700, in processActions
    action.execute(intf=self.intf)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/storage/__init__.py", line 313, in doIt
    self.devicetree.processActions()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/packages.py", line 110, in turnOnFilesystems
    anaconda.storage.doIt()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/dispatch.py", line 212, in moveStep
    rc = stepFunc(self.anaconda)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/dispatch.py", line 131, in gotoNext
    self.moveStep()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/text.py", line 510, in run
    anaconda.dispatch.gotoNext()
  File "/usr/bin/anaconda", line 902, in <module>
    anaconda.intf.run(anaconda)
FormatCreateError: ('invalid device specification', '/dev/dasdb1')

Comment 1 Jan Stodola 2010-11-09 16:49:50 UTC
Created attachment 459185 [details]
Attached traceback automatically from anaconda.

Comment 2 Jan Stodola 2010-11-09 17:01:01 UTC
Steps to reproduce:
1. clear all DASD disks before installing (dd if=/dev/zero of=/dev/dasdX bs=1M count=100)
2. start new installation in z/VM, select text mode
3. reinitialize all drives when asked
4. select "Replace existing Linux system" or "Use entire drive", all DASD drives are selected
5. confirm writing changes to disk and wait for traceback

installation source: http://secondary.fedoraproject.org/pub/alt/spins/S390/current/
kernel, initrd.img and install.img from 20-Oct-2010

Comment 3 Karsten Hopp 2010-11-18 18:04:30 UTC
As this is still happening with the latest packages I had a further look.
'udevadm monitor' shows no 'add' events when new DASD partitions are created with parted or anything using libparted and thus no new device-nodes for the partitions get created.
But the 'add' udev events show up when you run 'sfdisk -R /dev/dasdX' afterwards. 
So it looks like the BLKRRPART ioctl doesn't get executed from parted for DASD devices.

This is one of only a few remaining blockers for F14 on s390x, so I'll mark it urgent, please have a look

Comment 4 Brian Lane 2010-11-18 23:01:53 UTC
The partition resync was being skipped for DASD after the BLKRRPART code was removed from parted. This build may fix things:
http://koji.fedoraproject.org/koji/taskinfo?taskID=2610186

It handles DASD partition changes the same as all the others. If there's still a problem I'd blame the kernel.

Comment 5 Brian Lane 2010-11-18 23:02:56 UTC
Created attachment 461413 [details]
resync DASD partitions

Comment 6 Karsten Hopp 2010-11-19 13:21:12 UTC
looks good, an installation with newly initialized DASDs without any pre-existing partitions finished where it would have failed before.
Thanks a lot for that quick fix !
I'll leave this bugzilla open until the fix is committed to git

Comment 7 Fedora Update System 2010-11-19 17:04:34 UTC
parted-2.3-4.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/parted-2.3-4.fc14

Comment 8 Fedora Update System 2010-11-19 22:28:24 UTC
parted-2.3-4.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update parted'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/parted-2.3-4.fc14

Comment 9 Fedora Update System 2010-11-27 23:36:27 UTC
parted-2.3-4.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.


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