Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1131584

Summary: If fd0 is in /proc/partitions in the provisioned nodes installation fails with "Specified nonexistent disk fd0 in partition command"
Product: Red Hat OpenStack Reporter: Ramon Acedo <racedoro>
Component: rhel-osp-installerAssignee: Mike Burns <mburns>
Status: CLOSED ERRATA QA Contact: Omri Hochman <ohochman>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 5.0 (RHEL 7)CC: ajeain, avozza, dmacpher, dmesser, mburns, sclewis, yeylon
Target Milestone: z2Keywords: ZStream
Target Release: Installer   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-04-07 15:07:35 UTC Type: Bug
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
fd0 in /proc/partitions none

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