From 73c3fd0eac6e4092fd9c0532101180ef78b99d08 Mon Sep 17 00:00:00 2001 From: Dmitry Tantsur Date: Thu, 4 Feb 2021 13:54:20 +0100 Subject: [PATCH] Misplaced variable preventing fast-track after inspection Change-Id: I18b123044793fa0662328636517a75dbc8e95834 --- .../templates/ironic-inspector.conf.j2 | 3 ++- releasenotes/notes/inspect-fast-track-36007cc32bdf7e5c.yaml | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/inspect-fast-track-36007cc32bdf7e5c.yaml diff --git a/playbooks/roles/bifrost-ironic-install/templates/ironic-inspector.conf.j2 b/playbooks/roles/bifrost-ironic-install/templates/ironic-inspector.conf.j2 index 2fb0ce437..aa75ee2c1 100644 --- a/playbooks/roles/bifrost-ironic-install/templates/ironic-inspector.conf.j2 +++ b/playbooks/roles/bifrost-ironic-install/templates/ironic-inspector.conf.j2 @@ -83,9 +83,10 @@ always_store_ramdisk_logs = {{ inspector_store_ramdisk_logs | default('true') | processing_hooks = {{ inspector_processing_hooks }} {% endif %} store_data = database +power_off = {{ power_off_after_inspection }} + {% if inspector.discovery.enabled == true %} node_not_found_hook = enroll -power_off = {{ power_off_after_inspection }} [discovery] enroll_node_driver = {{ inspector.discovery.default_node_driver }} diff --git a/releasenotes/notes/inspect-fast-track-36007cc32bdf7e5c.yaml b/releasenotes/notes/inspect-fast-track-36007cc32bdf7e5c.yaml new file mode 100644 index 000000000..420493f44 --- /dev/null +++ b/releasenotes/notes/inspect-fast-track-36007cc32bdf7e5c.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Fixes fast-track after inspection: the ``fast_track`` and + ``power_off_after_inspection`` options are now correctly handled.