Bug 753421 - FSError: failed to get block size for ext4 filesystem on /dev/md127
Summary: FSError: failed to get block size for ext4 filesystem on /dev/md127
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 16
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: David Lehman
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:5832a45c6324dcd521bfb4dd6a3...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-12 12:14 UTC by markqbrunet
Modified: 2013-02-14 01:09 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-14 01:09:39 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: anaconda-tb-ugmCcX (330.94 KB, text/plain)
2011-11-12 12:14 UTC, markqbrunet
no flags Details
anaconda.log from updates-753421-f16.img (9.41 KB, text/plain)
2012-03-13 00:11 UTC, Michael Cronenworth
no flags Details
program.log from updates-753421-f16.img (48.22 KB, text/plain)
2012-03-13 00:11 UTC, Michael Cronenworth
no flags Details
storage.log from updates-753421-f16.img (113.77 KB, text/plain)
2012-03-13 00:12 UTC, Michael Cronenworth
no flags Details
syslog from updates-753421-f16.img (119.77 KB, text/plain)
2012-03-13 00:12 UTC, Michael Cronenworth
no flags Details
fstab from F15 (844 bytes, text/plain)
2012-03-13 16:28 UTC, Michael Cronenworth
no flags Details

Description markqbrunet 2011-11-12 12:14:29 UTC
libreport version: 2.0.6
executable:     /usr/bin/python
hashmarkername: anaconda
kernel:         3.1.0-7.fc16.i686
product:        Fedora
reason:         FSError: failed to get block size for ext4 filesystem on /dev/md127
time:           Sat Nov 12 09:18:56 2011
version:        16

anaconda-tb-ugmCcX: Text file, 338881 bytes

description:
:The following was filed automatically by anaconda:
:anaconda 16.25 exception report
:Traceback (most recent call first):
:  File "/usr/lib/python2.7/site-packages/pyanaconda/storage/formats/fs.py", line 1016, in minSize
:    "on %s" % (self.mountType, self.device))
:  File "/usr/lib/python2.7/site-packages/pyanaconda/storage/formats/fs.py", line 158, in __init__
:    foo = self.minSize      # force calculation of minimum size
:  File "/usr/lib/python2.7/site-packages/pyanaconda/storage/formats/__init__.py", line 88, in getFormat
:    fmt = fmt_class(*args, **kwargs)
:  File "/usr/lib/python2.7/site-packages/pyanaconda/storage/__init__.py", line 1925, in _parseOneLine
:    fmt = getFormat(fstype, device=device.path, exists=True)
:  File "/usr/lib/python2.7/site-packages/pyanaconda/storage/__init__.py", line 2022, in parseFSTab
:    device = self._parseOneLine((devspec, mountpoint, fstype, options, dump, passno))
:  File "/usr/lib/python2.7/site-packages/pyanaconda/storage/__init__.py", line 1588, in mountExistingSystem
:    fsset.parseFSTab(anaconda=anaconda)
:  File "/usr/lib/python2.7/site-packages/pyanaconda/upgrade.py", line 171, in upgradeMountFilesystems
:    mountExistingSystem(anaconda, anaconda.upgradeRoot[0], allowDirty = 0)
:  File "/usr/lib/python2.7/site-packages/pyanaconda/dispatch.py", line 373, in dispatch
:    self.dir = self.steps[self.step].target(self.anaconda)
:  File "/usr/lib/python2.7/site-packages/pyanaconda/gui.py", line 88, in return_false
:    func(*args, **kwargs)
:FSError: failed to get block size for ext4 filesystem on /dev/md127

Comment 1 markqbrunet 2011-11-12 12:14:41 UTC
Created attachment 533235 [details]
File: anaconda-tb-ugmCcX

Comment 2 Michael Cronenworth 2012-02-11 03:10:25 UTC
I can't upgrade with preupgrade from F15 to F16 because of this bug.

I have a MD RAID 1 with two hard drives.

Partitions:
1- /boot (ext4)
2- md raid 1.1 metadata (lukes encrypted ext4)
3- swap

Anaconda asks me for the password, which I type correctly.

If I ALT+F2 out of Anaconda while the message is displayed, I see that the file system did mount to /mnt/sysimage, so I'm puzzled by the error. I'm guessing it needs to look at /dev/mapper/lukes-$HASH instead of /dev/md127.

Comment 3 David Lehman 2012-02-13 15:17:19 UTC
md127 is not encrypted. The problem is that we don't ensure the md device is activated before some code deeper down tries to access the device.

Comment 4 David Lehman 2012-02-13 15:31:55 UTC
AFAICT this will prevent successful upgrade on any system that uses md RAID for a filesystem in /etc/fstab.

Comment 5 Michael Cronenworth 2012-02-18 02:05:27 UTC
(In reply to comment #4)
> AFAICT this will prevent successful upgrade on any system that uses md RAID for
> a filesystem in /etc/fstab.

David, when you get a fix for this could you create a fixed F16 update image? I'd like to use anaconda to upgrade as opposed to yum. Thanks.

Comment 6 Adam Williamson 2012-03-02 17:17:35 UTC
Discussed at 2012-03-02 blocker review meeting. Accepted as a blocker per criterion "The installer must be able to successfully complete an upgrade installation from a clean, fully updated default installation (from any official install medium) of the previous stable Fedora release, either via preupgrade or by booting to the installer manually. The upgraded system must meet all release criteria". Depends on the hardware configuration 'have a RAID device', but that's certainly common enough to take this as a blocker.



-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 7 David Lehman 2012-03-09 15:51:00 UTC
Try this:

 updates=http://dlehman.fedorapeople.org/updates/updates-753421-f16.img

on the boot command line. Let me know how it goes.

Comment 8 Michael Cronenworth 2012-03-09 23:42:59 UTC
(In reply to comment #7)
> Try this:

Unfortunately this did not help. Anaconda gave me the same error message.

I did see anaconda download your update .img file prior to the error.

Comment 9 David Lehman 2012-03-12 14:16:07 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > Try this:
> 
> Unfortunately this did not help. Anaconda gave me the same error message.
> 
> I did see anaconda download your update .img file prior to the error.

Please attach the logs from your run with the updates image so I can see what happened: anaconda.log, storage.log, program.log, syslog. Attach them individually, and make sure they are of type text/plain. Thanks.

Comment 10 Michael Cronenworth 2012-03-13 00:11:18 UTC
Created attachment 569518 [details]
anaconda.log from updates-753421-f16.img

Comment 11 Michael Cronenworth 2012-03-13 00:11:47 UTC
Created attachment 569519 [details]
program.log from updates-753421-f16.img

Comment 12 Michael Cronenworth 2012-03-13 00:12:14 UTC
Created attachment 569520 [details]
storage.log from updates-753421-f16.img

Comment 13 Michael Cronenworth 2012-03-13 00:12:34 UTC
Created attachment 569521 [details]
syslog from updates-753421-f16.img

Comment 14 David Lehman 2012-03-13 16:24:09 UTC
(In reply to comment #13)
> Created attachment 569521 [details]
> syslog from updates-753421-f16.img

Please attach your /etc/fstab as well.

Comment 15 Michael Cronenworth 2012-03-13 16:28:30 UTC
Created attachment 569726 [details]
fstab from F15

Comment 16 David Lehman 2012-03-13 17:05:47 UTC
Am I correct in thinking you edited the fstab yourself?

Anaconda does not write device UUIDs to /etc/fstab. It only writes filesystem UUIDs, for this very reason: it is ambiguous whether you are specifying the formatting/filesystem with that UUID or the device with that UUID.

The easy workaround for you would be to replace the root filesystem's UUID in /etc/fstab to give the UUID of the ext4 filesystem on the encrypted md device instead of the UUID of the encrypted device itself.

Comment 17 Michael Cronenworth 2012-03-13 18:06:18 UTC
(In reply to comment #16)
> Am I correct in thinking you edited the fstab yourself?

As far as I can remember I have not edited the fstab. I created the RAID using anaconda with the F15 DVD ISO on a flash drive. I have since adjusted the RAID size and added a second swap, but I do not remember having to adjust the root UUID. I guess I would have to install F15/F16/F17 from scratch with the same partition setup to see if I am right or not.

> Anaconda does not write device UUIDs to /etc/fstab. It only writes filesystem
> UUIDs, for this very reason: it is ambiguous whether you are specifying the
> formatting/filesystem with that UUID or the device with that UUID.

In that case, Anaconda is choosing the UUID for encrypted RAIDs and if what you say is true then Anaconda needs to be fixed. Not my fstab.

> The easy workaround for you would be to replace the root filesystem's UUID in
> /etc/fstab to give the UUID of the ext4 filesystem on the encrypted md device
> instead of the UUID of the encrypted device itself.

So anaconda reads my real /etc/fstab from my encrypted RAID root and it is failing on that? I can try specifying the ext4 FS UUID and try upgrading in about 5 hours.

Comment 18 Michael Cronenworth 2012-03-13 19:49:48 UTC
(In reply to comment #17)
> (In reply to comment #16)
> > Am I correct in thinking you edited the fstab yourself?
> 
> As far as I can remember I have not edited the fstab. I created the RAID using
> anaconda with the F15 DVD ISO on a flash drive. I have since adjusted the RAID
> size and added a second swap, but I do not remember having to adjust the root
> UUID. I guess I would have to install F15/F16/F17 from scratch with the same
> partition setup to see if I am right or not.

I just did a test with a fresh F15 install. The UUID written by anaconda to the /etc/fstab was the UUID of the RAID device and not of the ext4 file system. I can provide logs, fstab, or blkid output if it helps.

Comment 19 Michael Cronenworth 2012-03-13 20:06:09 UTC
OK, I take back what I said. I thought I did the partitioning a different way. When I reinstalled the fstab did not have a UUID, it had a /dev/mapper/$UUID line for the root fs. I must have changed it, but I do not know why. I will adjust it to be correct and see if I can upgrade.

Comment 20 Michael Cronenworth 2012-03-13 23:15:54 UTC
Setting my fstab to /dev/mapper/luks-$UUID allowed me to upgrade.

Comment 21 Adam Williamson 2012-03-14 21:55:19 UTC
I'm going to drop the 'acceptedblocker', then, so we can re-debate this one on Friday, as our understanding was that this blocked upgrade with a default soft RAID install. As that no longer appears to be the case we need to revisit the blocker status.



-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 22 Adam Williamson 2012-03-16 17:24:30 UTC
Discussed at 2012-03-16 blocker review meeting. Accepted as a blocker bug per
criterion "The installed system must be able to download and install updates
with yum and the default graphical package manager in all release-blocking
desktops" in the context of an IPv6-only connection.



-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 23 Adam Williamson 2012-03-16 17:25:33 UTC
Crap, wrong bug. Sorry. Correct note:

Discussed at 2012-03-16 blocker review meeting. Now rejected as a blocker, as we understand it, this bug does not affect upgrade from a default soft-RAID installation configuration.

It would be good to verify that an out-of-the-box soft-RAID F16 install upgrades successfully to F17 with Beta TC1 or TC2 when it lands.

Comment 24 Fedora End Of Life 2013-01-16 22:36:43 UTC
This message is a reminder that Fedora 16 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 16. 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 WONTFIX if it remains open with a Fedora 
'version' of '16'.

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 prior to Fedora 16's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 16 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 to click on 
"Clone This Bug" and open it against that version of Fedora.

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.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 25 Fedora End Of Life 2013-02-14 01:09:53 UTC
Fedora 16 changed to end-of-life (EOL) status on 2013-02-12. Fedora 16 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.

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


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