From 09c79844ddac8cb3a029eb3d630bbc3b2a19483a Mon Sep 17 00:00:00 2001 From: Dmitry Tantsur Date: Wed, 8 Jul 2020 14:12:09 +0200 Subject: [PATCH] Set power_off = !fast_track in [inspector] We should only set power_off to false when fast_track is true. Also do not pass ipa-api-url if fast-track is disabled, otherwise IPA will think it's enabled and try lookup/heartbeat. --- configure-ironic.sh | 15 ++++++++++++--- inspector.ipxe | 2 +- ironic.conf | 3 --- runhttpd.sh | 14 +++++++++++++- 4 files changed, 26 insertions(+), 8 deletions(-) diff --git a/configure-ironic.sh b/configure-ironic.sh index f6edb5084..946968080 100755 --- a/configure-ironic.sh +++ b/configure-ironic.sh @@ -15,6 +15,16 @@ IRONIC_AUTOMATED_CLEAN=${IRONIC_AUTOMATED_CLEAN:-true} wait_for_interface_or_ip +if [[ $IRONIC_FAST_TRACK == true ]]; then + INSPECTOR_POWER_OFF=false + # TODO(dtantsur): ipa-api-url should be populated by ironic itself, but + # it's not yet, so working around here. + INSPECTOR_EXTRA_ARGS=" ipa-api-url=http://${IRONIC_URL_HOST}:6385" +else + INSPECTOR_POWER_OFF=true + INSPECTOR_EXTRA_ARGS="" +fi + cp /etc/ironic/ironic.conf /etc/ironic/ironic.conf_orig crudini --merge /etc/ironic/ironic.conf <