Bug 502286

Summary: Kickstart induced error
Product: [Fedora] Fedora Reporter: A.J. Werkman <aj.werkman>
Component: kernelAssignee: Eric Sandeen <esandeen>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: dlehman, itamar, kernel-maint, notting, quintela, rmaximo, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: anaconda_trace_hash:6e2cd40a432856409a312f9c2f73f24865c4765fb96dc56c74455e6994ac9f0b
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-06-30 21:45:04 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

Description A.J. Werkman 2009-05-23 07:05:25 UTC
The following was filed automatically by anaconda:
anaconda 11.5.0.54 exception report
Traceback (most recent call first):
  File "/usr/lib/anaconda/booty/x86.py", line 154, in writeGrub
    f = open(cf, "w+")
  File "/usr/lib/anaconda/booty/x86.py", line 534, in write
    justConfig | (not self.useGrubVal))
  File "/usr/lib/anaconda/bootloader.py", line 204, in writeBootloader
    justConfigFile)
  File "/usr/lib/anaconda/dispatch.py", line 205, in moveStep
    rc = stepFunc(self.anaconda)
  File "/usr/lib/anaconda/dispatch.py", line 128, in gotoNext
    self.moveStep()
  File "/usr/lib/anaconda/text.py", line 712, in run
    anaconda.dispatch.gotoNext()
  File "/usr/bin/anaconda", line 965, in <module>
    anaconda.intf.run(anaconda)
IOError: [Errno 2] No such file or directory: '/mnt/sysimage/boot/grub/grub.conf'

Comment 1 A.J. Werkman 2009-05-23 07:05:34 UTC
Created attachment 345180 [details]
Attached traceback automatically from anaconda.

Comment 2 Bill Nottingham 2009-05-29 04:05:23 UTC
How were you installing?

Comment 3 Bill Nottingham 2009-05-29 04:21:48 UTC
Let me rephrase - can you attach the kickstart you were using?

Comment 4 A.J. Werkman 2009-05-29 08:55:37 UTC
# Kickstart file Digifarma BV
#
install
url --url http://<server>/fedora/development/i386/os
lang en_US.UTF-8
keyboard us
skipx
text

# Network configuration.
network --device eth0 --bootproto static --ip <IP> --netmask <MASK> --gateway <GW> --nameserver <NS> --hostname host.digifarma.nl

rootpw ***********
firewall --disabled
authconfig --enableshadow --passalgo=sha512
selinux --disabled
timezone --utc Europe/Amsterdam

zerombr
bootloader --location=mbr --timeout=20 --append="nomodeset"
clearpart --all --initlabel
#part /boot --fstype ext3 --size=512 --grow --maxsize=1024
#part / --fstype ext3 --size=1024 --grow

part /boot --fstype ext3 --size=512
part pv.7 --size=10 --grow --ondisk=sda
volgroup VolGroup00 --pesize=32768 pv.7
logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=1000 --grow --maxsize=1984
logvol / --fstype ext3 --name=LogVol00 --vgname=VolGroup00 --size=1024 --grow
#part swap --size=512 --grow --maxsize=1024

repo --name="Fedora rawhide - i386" --baseurl=http://<server>/fedora/development/i386/os


%packages
@base
@core

%post

%end

Comment 5 Chris Lumens 2009-06-02 14:09:21 UTC
The underlying problem is a filesystem error:

<6>sda1: rw=0, want=1311256, limit=1048576
<2>EXT3-fs error (device sda1): read_inode_bitmap: Cannot read inode bitmap - block_group = 5, inode_bitmap = 163906
<2>EXT3-fs error (device sda1) in ext3_new_inode: IO failure
<6>attempt to access beyond end of device

that is preventing the grub package from being installed:

Installing grub-0.97-50.fc11.i586
error: unpacking of archive failed on file /boot/grub: cpio: mkdir failed - Input/output error

Comment 6 Dave Jones 2009-06-03 18:11:25 UTC
my guess here is some kind of hardware problem.  Eric ?

Comment 7 Eric Sandeen 2009-06-03 18:16:57 UTC
Looks like another case of the device being smaller than the filesystem, something which anaconda was happily doing up until recently... dlehman? :)

-Eric

Comment 8 Eric Sandeen 2009-06-03 18:23:34 UTC
On second (parallel) thought - A.J. is this /dev/sda1 still intact so we can do some inspection of it?

Thanks,
-Eric

Comment 9 Eric Sandeen 2009-06-03 18:30:24 UTC
device limit is:	1073741824 (262144 blocks)
mkfs'd:			1069252608 (261048 blocks)
tried to read:		1342726144 (327814 blocks)

dunno what may have gone on in between.  Looking at /dev/sda1 would help.

-Eric

Comment 10 A.J. Werkman 2009-06-04 07:38:53 UTC
I have this system intakt, as far as hardware is concerned. I use it as a testing machine, so the harddisks have been altered a lot since I ran into this bug.

But tell me what you want to know, what you want me to test.


Koos.

Comment 11 Eric Sandeen 2009-06-04 15:22:56 UTC
A.J. if /dev/sda1 has been altered since the bug was filed then not so interesting, I guess.  If it's the same size, and un-mkfs'd since then, then I guess as a start I'd like to see what "e2fsck -fn" says about it.

-Eric

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

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

Comment 13 A.J. Werkman 2009-06-11 08:02:18 UTC
I have blank the disk after this bug a few times, so I can't garanty this information covers the situation that led to the bug. But I tried to reproduce the situation. I see block coutn errors, but don't know if this is relevant to this bug.


My "e2fsck -fn /dev/sda1" output is as follows:

Warning!  /dev/sda1 is mounted.
Warning: skipping journal recovery because doing a read-only filesystem check.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Free blocks count wrong (239641, counted=234257).
Fix? no

Free inodes count wrong (65237, counted=65235).
Fix? no


/boot: ********** WARNING: Filesystem still has errors **********

/boot: 43/65280 files (0.0% non-contiguous), 21407/261048 blocks

Comment 14 Eric Sandeen 2009-06-11 14:31:11 UTC
Well, checking live filesystems is expected to find some inconsistencies.

If you can recreate the problem from kickstart as originally reported, when things fail due to IO errors, -then- I'd like to be able to take a look at the filesystem, starting with an e2fsck -fn, as well as dumpe2fs -h output and the partition's size in /proc/partitions.

But if you've since had a successful install which overwrote the problematic filesystem, then I'm afraid the state of the filesystem is no longer interesting.

-Eric

Comment 15 Eric Sandeen 2009-06-30 21:45:04 UTC
I'm going to close this, not sure we can get further info.  If you see it again, or can reproduce at will, please re-open and we'll keep diggging.

Thanks,
-Eric