From 433b1fd197480d95f79539e61f1a9222d349e102 Mon Sep 17 00:00:00 2001 From: Shivanand Tendulker Date: Tue, 3 Oct 2017 10:45:10 -0400 Subject: Adds rescue_interface to base driver class This commit adds `rescue` interface to `BaseDriver` and implements it for `fake-hardware` hardware type. It adds configuration parameters '[DEFAULT]/enabled_rescue_interfaces' and '[DEFAULT]/default_rescue_interface'. The default value of configuration parameter '[DEFAULT]/enabled_rescue_interfaces' is `no-rescue`. It adds new rescue states and a new 'rescue' field to the Node object. It adds objects.node.Node._convert_to_version(). The method handles converting the new rescue_interface field between different versions of the Node. Partial-bug: #1526449 Co-Authored-By: Jay Faulkner Co-Authored-By: Josh Gachnang Co-Authored-By: Jesse J. Cook Co-Authored-By: Mario Villaplana Co-Authored-By: Aparna Co-Authored-By: Shivanand Tendulker Change-Id: I1534247bf207a20a7a58534988192aef392eaff2 --- etc/ironic/ironic.conf.sample | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'etc') diff --git a/etc/ironic/ironic.conf.sample b/etc/ironic/ironic.conf.sample index 0d54a145c..afcc3416b 100644 --- a/etc/ironic/ironic.conf.sample +++ b/etc/ironic/ironic.conf.sample @@ -227,6 +227,32 @@ # "ironic.hardware.interfaces.raid" entrypoint. (string value) #default_raid_interface = +# Specify the list of rescue interfaces to load during service +# initialization. Missing rescue interfaces, or rescue +# interfaces which fail to initialize, will prevent the +# ironic-conductor service from starting. At least one rescue +# interface that is supported by each enabled hardware type +# must be enabled here, or the ironic-conductor service will +# not start. Must not be an empty list. The default value is a +# recommended set of production-oriented rescue interfaces. A +# complete list of rescue interfaces present on your system +# may be found by enumerating the +# "ironic.hardware.interfaces.rescue" entrypoint. When setting +# this value, please make sure that every enabled hardware +# type will have the same set of enabled rescue interfaces on +# every ironic-conductor service. This option is part of +# rescue feature work, which is not currently exposed to +# users. (list value) +#enabled_rescue_interfaces = no-rescue + +# Default rescue interface to be used for nodes that do not +# have rescue_interface field set. A complete list of rescue +# interfaces present on your system may be found by +# enumerating the "ironic.hardware.interfaces.rescue" +# entrypoint. This option is part of rescue feature work, +# which is not currently exposed to users. (string value) +#default_rescue_interface = + # Specify the list of storage interfaces to load during # service initialization. Missing storage interfaces, or # storage interfaces which fail to initialize, will prevent -- cgit v1.2.1