[Ovirt-devel] Bugs with ovirt-awake
Arthur CLEMENT
aclement at linagora.com
Wed Mar 10 17:31:38 UTC 2010
I have other things to report about ovirt-awake
The script doesn't know the runtime mode
In my /proc/cmdline I have "runtime_mode=ovirt", but in my ovirt.log :
"Node is operating in unmanaged mode"
I found that the loading of /etc/sysconfig/node-config overide the karg variable
OVIRT_RUNTIME_MODE all the time .
I found these lines in ovirt-awake :
# load the configuration file
[ -f "$NODE_CONFIG" ] && . "$NODE_CONFIG"
have to be before this :
. /usr/libexec/ovirt-functions
I don't know where this ovirt-functions script gets OVIRT_RUNTIME_MODE ( from
/proc/cmdline I guess ) but I precise I still override the kargs runtime_mode
in ovirt-early ($runtime_mode read from karg is not converted in
$OVIRT_RUNTIME_MODE ), I doubt there is an influence but I prefer to mention
it.
my little fix for ovirt-early (this fix have to be fix :) )
runtime mode):
368 runtime_mode*)
369 runtime_mode=${i#runtime_mode=}
370 OVIRT_RUNTIME_MODE=${i#runtime_mode=}
371 ;;
I'll perform more tests next week but if you have ant thoughts you're welcome
--
Arthur CLEMENT
Linagora Paris
More information about the ovirt-devel
mailing list