Ironic: configure disk erasing during cleaning
authorDmitry Tantsur <divius.inside@gmail.com>
Thu, 1 Sep 2016 13:17:33 +0000 (15:17 +0200)
committerDmitry Tantsur <divius.inside@gmail.com>
Fri, 2 Sep 2016 10:05:01 +0000 (12:05 +0200)
commite2d5bbc41e3e7ab4952dab55094c88933d4b7143
tree553dda49f4db67cd4c617a29447a77aae88173da
parentc5a609eeefee26ad06c359f4d1aa75c8fdba8205
Ironic: configure disk erasing during cleaning

Cleaning is run before the first and between every deployments to ensure
that the node is in a clean state (hence its name). The most important
part of it is wiping the hard drive.

This change allows tuning this action. A new option IronicCleaningDiskErase
accepts the following options:
* full - for full cleaning with removing the data via ATA secure erase or shred
* metadata - for cleaning only partitioning table.
The third option "none" is suppored by Puppet but is not advertised here as
disabling disk wiping completely is known to cause bugs.

Note that the upstream Ironic default is a bit unfortunate: it enabled both
processes. We set the default to "full" which has the same effect, but is faster.

Change-Id: I46632f71f7ab63daac243acefa5166c58ca05da0
Partially-Implements: blueprint ironic-integration
puppet/services/ironic-conductor.yaml