NovaCompute/NovaEvacuate: make both support --debug_file

This allows us to log to a separate file, which makes it a bit
easier to debug just compute HA without being drowned in noise
from everything else which comes to syslog.

Change-Id: I982ec14917967df37ae2efd44df627f0cd23d8ca
This commit is contained in:
Adam Spiers 2018-01-18 10:13:59 +00:00
parent 9825cd168d
commit 500ccab93b
2 changed files with 24 additions and 0 deletions

View File

@ -136,6 +136,14 @@ Enable extra logging from the evacuation process
<content type="boolean" default="0" />
</parameter>
<parameter name="debug_file" unique="0" required="0">
<longdesc lang="en">
Enable extra logging from fence_compute
</longdesc>
<shortdesc lang="en">Enable logging from fence_compute</shortdesc>
<content type="string" default="" />
</parameter>
</parameters>
<actions>
@ -321,6 +329,10 @@ nova_validate() {
fi
fi
if [ -n "${OCF_RESKEY_debug_file}" ]; then
fence_options="${fence_options} --debug-file ${OCF_RESKEY_debug_file}"
fi
if [ -n "${OCF_RESKEY_endpoint_type}" ]; then
case ${OCF_RESKEY_endpoint_type} in
adminURL|publicURL|internalURL)

View File

@ -125,6 +125,14 @@ Enable extra logging from the evacuation process
<content type="boolean" default="0" />
</parameter>
<parameter name="debug_file" unique="0" required="0">
<longdesc lang="en">
Enable extra logging from fence_compute
</longdesc>
<shortdesc lang="en">Enable logging from fence_compute</shortdesc>
<content type="string" default="" />
</parameter>
</parameters>
<actions>
@ -332,6 +340,10 @@ evacuate_validate() {
fi
fi
if [ -n "${OCF_RESKEY_debug_file}" ]; then
fence_options="${fence_options} --debug-file ${OCF_RESKEY_debug_file}"
fi
if [ -n "${OCF_RESKEY_endpoint_type}" ]; then
case ${OCF_RESKEY_endpoint_type} in
adminURL|publicURL|internalURL)