From 8213d7c03990c8134cbe12bb6c7dac32bb7a0c50 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Mon, 11 Feb 2019 12:28:15 +1100 Subject: [PATCH] Add ISCSI_DEBUG option This option adds a systemd override to start the iscsi daemon with debugging enabled. Change-Id: Ie27991776aa07a695026036e47513221220332a0 --- lib/nova | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/lib/nova b/lib/nova index 7c6f8cd465..dee798cd5e 100644 --- a/lib/nova +++ b/lib/nova @@ -183,6 +183,10 @@ TEST_FLOATING_RANGE=${TEST_FLOATING_RANGE:-192.168.253.0/29} # and Glance. NOVA_USE_SERVICE_TOKEN=$(trueorfalse False NOVA_USE_SERVICE_TOKEN) +# Enable debugging levels for iscsid service (goes from 0-8) +ISCSID_DEBUG=$(trueorfalse False ISCSID_DEBUG) +ISCSID_DEBUG_LEVEL=${ISCSID_DEBUG_LEVEL:-4} + # Functions # --------- @@ -327,8 +331,22 @@ function configure_nova { sudo chown -R $STACK_USER $NOVA_INSTANCES_PATH fi fi + + if [[ ${ISCSID_DEBUG} == "True" ]]; then + # Install an override that starts iscsid with debugging + # enabled. + cat > /tmp/iscsid.override <