Bug 1131584 - If fd0 is in /proc/partitions in the provisioned nodes installation fails with "Specified nonexistent disk fd0 in partition command"
Summary: If fd0 is in /proc/partitions in the provisioned nodes installation fails wit...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: rhel-osp-installer
Version: 5.0 (RHEL 7)
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: z2
: Installer
Assignee: Mike Burns
QA Contact: Omri Hochman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-08-19 15:32 UTC by Ramon Acedo
Modified: 2022-07-09 07:41 UTC (History)
7 users (show)

Fixed In Version: rhel-osp-installer-0.5.7-1.el7ost
Doc Type: Bug Fix
Doc Text:
The default partitioning could not handle a host with /dev/fd0 and caused provisioning to fail. This fix changes the provisioning process to ignore /dev/fd0. Hosts with /dev/fd0 now install successfully.
Clone Of:
Environment:
Last Closed: 2015-04-07 15:07:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
fd0 in /proc/partitions (45.29 KB, image/png)
2014-08-19 15:32 UTC, Ramon Acedo
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-16633 0 None None None 2022-07-09 07:41:14 UTC
Red Hat Product Errata RHSA-2015:0791 0 normal SHIPPED_LIVE Important: Red Hat Enterprise Linux OpenStack Platform Installer update 2015-04-07 19:07:29 UTC

Description Ramon Acedo 2014-08-19 15:32:29 UTC
Created attachment 928407 [details]
fd0 in /proc/partitions

When deploying the first node on a node that has fd0 in /proc/partitions installation fails with "Specified nonexistent disk fd0 in partition command"

The problem seems to be at /usr/share/foreman-installer/hooks/lib/provisioning_seeder.rb at the line containing:

 "sed -i "s/sda/$(cat /proc/partitions | awk '{ print $4 }' | grep -e "^.d.$" | sort | head -1)/" /tmp/diskpart.cfg"

This happens with rhel-osp-installer-0.1.6-5.el6ost.noarch

I'm reproducing it with a VMware Fusion VM being provisioned from another VM with the current Tech Preview Staypuft.

I have tried modifying provisioning_seeder.rb and adding an additional filter with "grep -vw fd0" to look like:

 sed -i "s/sda/$(cat /proc/partitions | awk '{ print $4 }' | grep -e "^.d.$" | grep -vw fd0 | sort | head -1)/" /tmp/diskpart.cfg

For some reason re-provisioning after the change doesn't seem to work. It seems it's cached or something else.

Comment 7 Omri Hochman 2015-03-16 21:11:52 UTC
Verified with: rhel-osp-installer-0.5.7-1.el7ost.noarch.


Kickstart RHEL default snippet contain:   
=======================================
sed -i "s/sda/$(cat /proc/partitions | awk '{ print $4 }' | grep -e "^.d.$" | grep -vw fd0 | sort | head -1)/" /tmp/diskpart.cfg
%end

Comment 9 errata-xmlrpc 2015-04-07 15:07:35 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/RHSA-2015-0791.html


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