Bug 232936

Summary: Partitions not being created in raid install
Product: [Fedora] Fedora Reporter: Orion Poplawski <orion>
Component: anacondaAssignee: Chris Lumens <clumens>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: smagoun
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-04-23 20:14:47 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:
Bug Depends On:    
Bug Blocks: 150226    
Attachments:
Description Flags
anaconda dump none

Description Orion Poplawski 2007-03-19 15:32:09 UTC
I'm trying with the following partition setup:

part raid.1 --size=128 --ondisk=sda
part raid.2 --size=6000 --grow --ondisk=sda
part raid.3 --size=6000 --grow --ondisk=sdc
part raid.4 --size=128 --ondisk=sdb
part raid.5 --size=6000 --grow --ondisk=sdb
part raid.6 --size=6000 --grow --ondisk=sdd
raid /boot --fstype ext3 --level=RAID1 --device=md0 raid.1 raid.4
raid pv.1 --level=RAID1 --device=md1 raid.2 raid.3 raid.5 raid.6
volgroup rootvg pv.1

but no partitions are being created.  It fails on:

12:25:47 INFO    : moving (1) to step partitionobjinit
12:25:47 INFO    : no initiator set
12:25:47 INFO    : no /tmp/fcpconfig; not configuring zfcp
12:25:48 INFO    : moving (1) to step autopartitionexecute
12:25:50 INFO    : moving (1) to step partitiondone
12:25:50 INFO    : moving (1) to step bootloadersetup
12:25:50 WARNING : MBR not suitable as boot device; installing to partition
12:25:50 INFO    : moving (1) to step networkdevicecheck
12:25:50 INFO    : moving (1) to step reposetup
12:25:50 INFO    : added repository extras with with source URL
http://www.cora.nwra.com/fedora/extras/development/i386/
12:25:50 INFO    : added repository CoRA with with source URL
http://www.cora.nwra.com/fedora/CoRPMS/development/i386/
12:25:55 INFO    : moving (1) to step basepkgsel
12:25:58 DEBUG   : no package matching gv
12:26:22 DEBUG   : no package matching gv
12:26:26 DEBUG   : no such package isdn4k-utils
12:26:26 INFO    : moving (1) to step postselection
12:26:26 DEBUG   : no kernel-smp package
12:26:26 INFO    : selected kernel package for kernel
12:30:33 INFO    : moving (1) to step install
12:30:33 INFO    : moving (1) to step enablefilesystems
12:30:34 INFO    : going to run: ['mdadm', '--create', '/dev/md1', '--run',
'--chunk=256', '--level=0', '--raid-devices=4', '/dev/sda2', '/dev/sdb2',
'/dev/sdc1', '/dev/sdd1']
12:30:34 CRITICAL: Traceback (most recent call first):
  File "/usr/lib/anaconda/lvm.py", line 277, in pvcreate
    raise PVCreateError(node)
  File "/usr/lib/anaconda/fsset.py", line 2263, in setupDevice
    lvm.pvcreate(node)
  File "/usr/lib/anaconda/fsset.py", line 1632, in createLogicalVolumes
    entry.device.setupDevice(chroot)
  File "/usr/lib/anaconda/packages.py", line 149, in turnOnFilesystems
    anaconda.id.fsset.createLogicalVolumes(anaconda.rootPath)
  File "/usr/lib/anaconda/dispatch.py", line 203, in moveStep
    rc = stepFunc(self.anaconda)
  File "/usr/lib/anaconda/dispatch.py", line 126, in gotoNext
    self.moveStep()
  File "/usr/lib/anaconda/text.py", line 602, in run
    anaconda.dispatch.gotoNext()
  File "/usr/bin/anaconda", line 956, in <module>
    anaconda.intf.run(anaconda)
PVCreateError: pvcreate of pv "/dev/md1" failed

I see mdadm complaints on one of the vt's about the partitions (/dev/sda2, etc)
not existing.  fdisk shows empty tables for all of the disks.

I've also tried with RAID1 instead of RAID10 with the same result.

Comment 1 Orion Poplawski 2007-03-19 15:32:09 UTC
Created attachment 150379 [details]
anaconda dump

Comment 2 Orion Poplawski 2007-03-22 17:03:58 UTC
Still happens with 11.2.0.39.  This strikes me as a pretty serious failure.  Can
anyone else reproduce?

Comment 3 Bill Peck 2007-03-26 20:25:39 UTC
I can confirm this.  I'm going to try a kickstart without lvm to see if its
specifically lvm causing the problem.

Comment 4 Michael DeHaan 2007-03-26 20:50:36 UTC
I've seen errors when just creating basic configs on a single IDE drive, no LVM
anywhere in the config, (1 GB swap, the rest being / and ext3) on T2 ... tried
dd'ing the drive before to clean it off, still no good.   I spoke briefly with
jeremy on #et-mgmt and he seemed to imply LVM was at fault.  This happens when
using kickstart or not.

To clarify, no lvm was involved, but the lvm still choked on my setup while
looking for partitions.  I don't exactly remember the details as I do not have
the machine around anymore but can help recreate if needed.

Comment 5 David Cantrell 2007-03-27 20:49:58 UTC
*** Bug 232502 has been marked as a duplicate of this bug. ***

Comment 6 Chris Lumens 2007-03-27 20:59:03 UTC
The problem here is that we're executing the clearpart code at least twice, and
one of those times is after we've committed the partitions to disk.  If you use
existing partitions or dd in your %pre script to clear out the disk label, you
should be able to work around this problem.  Of course, it's still a bug.

I'm not sure why this is only showing up as a bug now, and it's a bit of a
tangle of code to work through.  I have a preliminary patch worked up for
testing here.

Comment 7 Chris Lumens 2007-03-28 14:21:50 UTC
Committed a potential fix for this issue, though the risk of regressions when
editing this stuff is always pretty high.  I'll put it in MODIFIED for now. 
Please test the next build of anaconda and if this issue is solved, we'll close
it out.  Thanks.