Red Hat Bugzilla – Bug 832688
raid --useexisting errors without partitions
Last modified: 2013-02-21 04:07:43 EST
+++ This bug was initially created as a clone of Bug #741728 +++
Description of problem:
The following kickstart command, which worked as expected in older versions of kickstart, errors with "Partitions required for raid":
raid /boot --fstype=ext4 --level=1 --device=md0 --useexisting
Partitions should not be required when --useexisting is used. The cause is commit 3fa478da.. which added this check at pykickstart/commands/raid.py:207:
if len(extra) == 1:
raise KickstartValueError, formatErrorMsg(self.lineno, msg=_("Partitions required for %s") % "raid")
That should allow for --useexisting.
Version-Release number of selected component (if applicable):
At least Fedora 14 and newer.
Steps to Reproduce:
1. Create a kickstart with 'raid /boot --fstype=ext4 --level=1 --device=md0 --useexisting'
Before Anaconda fully loads you get "Error parsing kickstart: Partitions required for raid"
Kickstart parses correctly, Anaconda installs system.
I've confirmed that everything works when these lines are removed. I am not sure how to check for useexisting at that spot in the code.
--- Additional comment from email@example.com on 2011-10-05 10:51:23 EDT ---
Patch to fix this posted:
This request was evaluated by Red Hat Product Management for
inclusion in a Red Hat Enterprise Linux release. Product
Management has requested further review of this request by
Red Hat Engineering, for potential inclusion in a Red Hat
Enterprise Linux release for currently deployed products.
This request is not yet committed for inclusion in a release.
I pushed pykickstart-1.74.7-1 for RHEL 6.3 specifically for this problem. Can you please verify you are testing with that build and let me know if you are still seeing problems?
I'm pretty sure I'm using 1.74.10-1. If you can tell me which file I can check to see if the fix is in I'll check to see if it has it.
What release of RHEL are you using?
I'm using a RHEL6.3 + Updates rebuild ISO
I've just verified that the raid part is working with --useexisting. It is the volgroup that is now failing.
I specify it like:
volgroup myvg --useexisting
This worked in rhel5 but says that it must be given a list of partitions in rhel6.
If I have an existing raid set with an existing set of volgroup/logvol set that I want to re-use is there a way to specify this in a ks file?
I'm wanting to wipe/format the /boot (on raid1) and /, /var (logvols) but keep the /data (different logvol on same volgroup) without formatting it.
The setup I had for rhel5 isn't working.
After further experimentation I can get things working the way I want. This bug can be closed as full functionality is available even though paramaters are different between el5 and el6.
Okay, this is already filed in a couple private bugs and I've rebuilt pykickstart-1.74.11-1 for the next minor release.
Verified on RHEL6.4-20121206.0
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.