Disable inspection power-off

This will enable inspection scenarios to operate the fast track
behavior.

Change-Id: I4596bfb1d2c6fab47e501dc1a5f013877a3c3b87
This commit is contained in:
Julia Kreger 2020-01-27 17:48:48 -06:00
parent 033545258e
commit e522ab0fe7
5 changed files with 26 additions and 0 deletions

View File

@ -164,6 +164,13 @@ fast_track: Boolean setting to enable ironic to leverage an already running
agent on the host being deployed such that deployment can begin agent on the host being deployed such that deployment can begin
immediately as opposed to waiting for a complete system reboot. immediately as opposed to waiting for a complete system reboot.
power_off_after_inspection: Boolean setting governing the behavior
of ironic-inspector's processing.
The default is to not power-off machines
effectively enabling the Inspection to
Deployment without the need to reboot
the physical machine.
### Hardware Inspection Support ### Hardware Inspection Support
Bifrost also supports the installation of ironic-inspector in standalone Bifrost also supports the installation of ironic-inspector in standalone

View File

@ -213,6 +213,11 @@ inspector:
enabled: "{{ enable_inspector_discovery | default(true) }}" enabled: "{{ enable_inspector_discovery | default(true) }}"
default_node_driver: "{{ inspector_default_node_driver | default('ipmi')}}" default_node_driver: "{{ inspector_default_node_driver | default('ipmi')}}"
# If baremetal nodes should be turned off after inspection.
# The inspector default is to turn off the baremetal node
# power, this setting to false enables use of fast track mode.
power_off_after_inspection: false
# We may not have packaged iPXE files on some distros, or may want to # We may not have packaged iPXE files on some distros, or may want to
# download them on their own. # download them on their own.
download_ipxe: false download_ipxe: false

View File

@ -71,6 +71,7 @@ store_data = database
{% endif %} {% endif %}
{% if inspector.discovery.enabled == true %} {% if inspector.discovery.enabled == true %}
node_not_found_hook = enroll node_not_found_hook = enroll
power_off = {{ power_off_after_inspection }}
[discovery] [discovery]
enroll_node_driver = {{ inspector.discovery.default_node_driver }} enroll_node_driver = {{ inspector.discovery.default_node_driver }}

View File

@ -85,6 +85,7 @@ use_web_server_for_images = true
{% if enable_inspector | bool == true %} {% if enable_inspector | bool == true %}
[inspector] [inspector]
power_off = {{ power_off_after_inspection }}
extra_kernel_params = {{ inspector_extra_kernel_options | default('') }} extra_kernel_params = {{ inspector_extra_kernel_options | default('') }}
{% if enable_keystone is defined and enable_keystone | bool == true %} {% if enable_keystone is defined and enable_keystone | bool == true %}
auth_type = password auth_type = password

View File

@ -0,0 +1,12 @@
---
features:
- |
The default operating mode of bifrost now no longer powers off nodes
once they have been inspected. This leaves the ironic-python-agent
running and ultimately allows moving into deployment skipping a full
boot sequence when following the typical use path.
This setting may be disabled and the previous behavior reverted by
changing the ``power_off_after_inspection`` setting to ``true``.
This setting maps to ironic-inspector.conf's ``[processing]power_off``
and ironic.conf's ``[inspector]power_off`` settings.