Config drive creation fails in UEFI boot mode for whole disk image

Bug #1486887 reported by Shivanand Tendulker
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ironic
Fix Released
High
Jim Rollenhagen

Bug Description

Config drive creation fails when whole disk image is being deployed in UEFI boot mode using IPA ramdisk.

In UEFI boot mode when parted tries to create additional disk for Config drive, it gives following warning:

Warning: Not all of the space available to /dev/sdb appears to be used,
you can fix the GPT to use all of the space (an extra 2097152 blocks) or
continue with the current setting?

To create a new partition this warning needs to be fixed. Upon fxing this warning, creation of new partition goes through.

Further Analysis:
----------------------------
The parted command cannot fix this warning in scripted mode. It can be fixed only using interactive mode. There was a defect being opened on this behavior log time ago and was not fixed then.
https://bugzilla.redhat.com/show_bug.cgi?id=217979

The issue has been reproduced with IPA based on Fedora 22 which has parted version of 3.2

This means this warning needs to be fixed using 'expect' (Expect is a tcl extension for automating interactive applications)

Tags: agent
Changed in ironic:
assignee: nobody → Shivanand Tendulker (shivanand-tendulker)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ironic-python-agent (master)

Fix proposed to branch: master
Review: https://review.openstack.org/215097

Changed in ironic:
status: New → In Progress
Dmitry Tantsur (divius)
Changed in ironic:
importance: Undecided → High
tags: added: agent
Changed in ironic:
milestone: none → 4.2.0
Changed in ironic:
assignee: Shivanand Tendulker (stendulker) → Jim Rollenhagen (jim-rollenhagen)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ironic-python-agent (master)

Reviewed: https://review.openstack.org/215097
Committed: https://git.openstack.org/cgit/openstack/ironic-python-agent/commit/?id=2d341c7f0d14bdac90156a7cb483ec562ec8d9e9
Submitter: Jenkins
Branch: master

commit 2d341c7f0d14bdac90156a7cb483ec562ec8d9e9
Author: Shivanand Tendulker <email address hidden>
Date: Thu Aug 20 03:19:14 2015 -0700

    Fixes config drive creation failure in UEFI boot mode

    This fix enables creation of config drive for UEFI only whole disk
    images.
    It will not work with the hybrid images that support booting in BIOS
    and UEFI boot mode.

    Change-Id: Ib4dd8c082a50e1dbaf0df91477b062716cb780ff
    Closes-Bug: #1486887
    Depends-On: I81400305f166d62aa4612aab54602abb8178b64c

Changed in ironic:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in ironic:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.