[RFE] Support for UEFI deployment in DevStack / Gate tests for UEFI deployments

Bug #1625616 reported by Lucas Alvares Gomes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ironic
Fix Released
Wishlist
Lucas Alvares Gomes

Bug Description

This RFE is about adding support for configuring nodes to be deployed in UEFI mode in DevStack. Later, we would also like to have tests for UEFI deployments in the Ironic gate (probably by switching an exiting job to use UEFI instead of creating a new job).

The distros supported in this first iteration are: Ubuntu 16.04 and Fedora 24.

Currently problems:

* The last released version of the Cirros images (released in May 2015) does not support UEFI. But fortunately the work to support UEFI in cirros is already merged and present on the daily built images [0] starting from 21/07/2016 [1].

* Ubuntu Xenial also hits: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1483071 but can be worked around.

* Hit: https://bugs.linaro.org/show_bug.cgi?id=858 a few times

* Apparently boot from local (whole disk image) requires the disk controller to be IDE, virtio does not work. https://lime-technology.com/forum/index.php?topic=39493.0

[0] https://code.launchpad.net/~hrw/cirros/add-uefi-grub-support/+merge/299185
[1] http://download.cirros-cloud.net/daily/20160721/

tags: added: rfe
Changed in ironic:
importance: Undecided → Wishlist
assignee: nobody → Lucas Alvares Gomes (lucasagomes)
tags: added: rfe-approved
removed: rfe
description: updated
description: updated
description: updated
description: updated
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ironic (master)

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

Changed in ironic:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ironic (master)

Reviewed: https://review.openstack.org/374345
Committed: https://git.openstack.org/cgit/openstack/ironic/commit/?id=d4d2183c486128677f71cfdb9164886cb2014fed
Submitter: Jenkins
Branch: master

commit d4d2183c486128677f71cfdb9164886cb2014fed
Author: Lucas Alvares Gomes <email address hidden>
Date: Wed Sep 21 14:49:51 2016 -0300

    DevStack: Use Jinja2 for templating when creating new VMs

    This patch is changing the configure-vm.py script to use Jinja2
    templating when creating new VMs instead of string interpolation.

    Jinja templating allows more complex templating such as conditionals
    which will greatly simplify the code for creating Legacy BIOS or UEFI
    supported VMs.

    Change-Id: Id4a8432923fa71ca8f3f28edd1235d3a318c3e95
    Partial-Bug: #1625616

Dmitry Tantsur (divius)
tags: added: gate uefi
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/374346
Committed: https://git.openstack.org/cgit/openstack/ironic/commit/?id=793e2b1e3f8f3a067627122eb927e41dc13d5368
Submitter: Jenkins
Branch: master

commit 793e2b1e3f8f3a067627122eb927e41dc13d5368
Author: Lucas Alvares Gomes <email address hidden>
Date: Wed Sep 21 15:40:30 2016 -0300

    DevStack: Support for creating UEFI VMs

    This patch is enhancing the create-node.sh script to allow creating UEFI
    capable VMs. Two new options were added:

    * -L (UEFI Loader): For specifying the absolute path to the UEFI LOADER
    * -N (UEFI NVRAM): For specifying the absolute path to the non-volatile
                       memory to store the UEFI variables, if needed.

    Partial-Bug: #1625616
    Change-Id: I3a05ff339877ff31eefda8a5a35b6e343bd4627b

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ironic (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on ironic (master)

Change abandoned by Lucas Alvares Gomes (<email address hidden>) on branch: master
Review: https://review.openstack.org/419372

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on ironic (stable/newton)

Change abandoned by Pavlo Shchelokovskyy (<email address hidden>) on branch: stable/newton
Review: https://review.openstack.org/400941
Reason: agree with Jay - I started this as an attempt to improve grenade test time, but the current state of newton gates does not allow to test it anyway...

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ironic (master)

Reviewed: https://review.openstack.org/374988
Committed: https://git.openstack.org/cgit/openstack/ironic/commit/?id=07686f475da6a56829409399025bb529312f8a5e
Submitter: Jenkins
Branch: master

commit 07686f475da6a56829409399025bb529312f8a5e
Author: Lucas Alvares Gomes <email address hidden>
Date: Thu Sep 22 10:21:24 2016 -0300

    DevStack: Configure nodes/environment to boot in UEFI mode

    This patch is adding support for DevStack to configure nodes and
    environment (Ubuntu and Fedora) to deploy nodes in UEFI mode.

    A new configuration called IRONIC_BOOT_MODE was added to DevStack and
    supports two values: "bios" and "uefi". Defaults to "bios".

    Partial-Bug: #1625616
    Change-Id: I4e9247c6a91c707db08247a8ac04b1f146cd3714

Dmitry Tantsur (divius)
Changed in ironic:
status: In Progress → 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.