Jump to: navigation, search


Revision as of 19:40, 6 March 2013 by Devananda (talk | contribs) (initial post)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Baremetal Operations Specification

This page outlines the work for the Havana cycle to add support for commonly-requested operational tasks to the Nova Baremetal Driver.


We (TripleO team) have been discussing the baremetal driver's current functionality with several ops teams interested in using it for fleet management. Broadly speaking, these are their requirements:

  • auto-discovery of hardware
  • initial hardware configuration (BIOS & RAID settings, etc)
  • hardware burn-in
  • firmware updates
  • console access to problematic hardware

The Plan

By using diskimage-builder to create task-specific ramdisks, I believe all of these can be addressed with only small changes outside of the baremetal driver.

  • Scheduler awareness of nodes and the ability to perform an action on a specific node, eg. nova boot --force-node ${UUID} ...
  • API call(s) to find a node by instance name or UUID, and to find an instance by node UUID.
  • A way to set / update the designated rescue image for a given instance.
    • Alternately, this may be done via instance_type extra_specs, if we decide to set the rescue image per-flavor instead of per-instance.

There will also be some changes inside the baremetal driver.

  • Add new config options for a discovery kernel and ramdisk, which will be served in response to a DHCP request from unregistered MAC addresses.
  • A means for the discovery ramdisk to post information back to the baremetal database, eg. via an HTTP POST to nova-baremetal-deploy-helper, or a call to the Nova baremetal API extension, or something similar. Additionally, this requires:
    • a logical separation between discovered hardware and enrolled hardware (this may just be a flag on the bm_nodes table),
    • a config option to determine whether discovered hardware is automatically enrolled,
    • and an API call to toggle the 'enrolled' flag.
  • Add support to nova/virt/baremetal/driver.py and nova/virt/baremetal/pxe.py for applying a rescue image to a running instance. This should:
    • update the PXE config for that node to refer to the rescue image,
    • reboot the node into the rescue image,
    • reset the PXE config to its previous state,
    • and finally set the nova state back to RUNNING when the rescue operation is complete.