RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1219196 - Anaconda refuses to process a working KS file created by Anaconda on UEFI Mac Pro: "failed to find a suitable stage1 device"
Summary: Anaconda refuses to process a working KS file created by Anaconda on UEFI Mac...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: anaconda
Version: 7.1
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Brian Lane
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-06 19:39 UTC by Jan Kundrát
Modified: 2015-11-19 09:54 UTC (History)
4 users (show)

Fixed In Version: anaconda-21.48.22.9-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-19 09:54:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
anaconda-ks.cfg (9.04 KB, text/plain)
2015-05-06 19:40 UTC, Jan Kundrát
no flags Details
anaconda.log (4.00 KB, text/plain)
2015-05-06 19:41 UTC, Jan Kundrát
no flags Details
storage.log (78.82 KB, text/plain)
2015-05-06 19:41 UTC, Jan Kundrát
no flags Details
program.log (18.77 KB, text/plain)
2015-05-06 19:41 UTC, Jan Kundrát
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:2284 0 normal SHIPPED_LIVE anaconda bug fix and enhancement update 2015-11-19 09:44:49 UTC

Description Jan Kundrát 2015-05-06 19:39:46 UTC
The attached KS file was created by installing CentOS 7.1 on a late-213 Mac Pro (aluminium cylinder, UEFI) from a pre-made KS template (which works on another server platform) which was modified to contain no partition information. The graphical installer selected manual disk layout, removed all partitions (including the one for EFI) and created layout which (after a bunch of retries) managed to install a working system, including the bootloader. Then I took the /root/anaconda-ks.cfg from the installed system and tried to reinstall the exact same box using this KS file, but the installation failed with:

storage configuration failed: failed to find a suitable stage1 device

The only modification which was made was commenting out the "graphical" command from the KS file in order to workaround bug #1219120. Adjusting the kernel options for PXE install to avoid configuring the bond-te interface produces the same result, but my debugging is much harder due to KVM limitations of our datacenter.

Another useful modification is changing `clearpart  --initlabel --list=sda2,sda1` to `clearpart --drives=sda --all --initlabel` because at the time we try to reproduce the installation, the disk contains different partitions (sda1, sda2 and sda3 as opposed to just sda1 and sda2 when the manual installation took place. The attached log is provided from an install attempt with this modification.

This means that Anaconda produced a config file which it cannot reapply on the same HW. The validator which processes the KS file is too strict and fails to approve a working configuration.

Comment 1 Jan Kundrát 2015-05-06 19:40:42 UTC
Created attachment 1022789 [details]
anaconda-ks.cfg

Comment 2 Jan Kundrát 2015-05-06 19:41:05 UTC
Created attachment 1022790 [details]
anaconda.log

Comment 3 Jan Kundrát 2015-05-06 19:41:24 UTC
Created attachment 1022791 [details]
storage.log

Comment 4 Jan Kundrát 2015-05-06 19:41:43 UTC
Created attachment 1022792 [details]
program.log

Comment 6 Jan Kundrát 2015-05-06 20:51:43 UTC
Seems that this is caused by outdated python-blivet in the initrd. It calls itself 0.61.0.26 in blivet/__init__.py, and blivet/platform.py doesn't contain any reference to class MacEFI, isMactel() and therefore getPlatform() returns just an instance of the regular class EFI which forbids one from using HFS+ on the EFI partition.

I added some extra logging into anaconda's pyanaconda/bootloader.py (mainly to see the function invocation and to get access to the self.errors in there), and the _is_valid_format gets called as _is_valid_format(..., ['efi'], ['/boot/efi'], 'EFI System Partition'). All partitions are rejected because "efi" != "hfs+".

Comment 7 Jan Kundrát 2015-05-06 21:41:20 UTC
Thanks a lot to adamw, dlehman, bcl and pjones on IRC for their excellent feedback and pointing me into a right direction.

Patch is at https://github.com/rhinstaller/anaconda/pull/101 .

Comment 10 Michal Kovarik 2015-09-14 06:20:12 UTC
Patch is included in RHEL-7.2 Beta with anaconda-21.48.22.35-1.el7. Verifying as SanityOnly.

Comment 11 errata-xmlrpc 2015-11-19 09:54:10 UTC
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.

https://rhn.redhat.com/errata/RHBA-2015-2284.html


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