Comment 0 for bug 1389299

Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

neutron agents start command in OCF contains wrong redirection:
    su ${OCF_RESKEY_user} -s /bin/sh -c "${OCF_RESKEY_binary} --config-file=$OCF_RESKEY_config \
        --config-file=$OCF_RESKEY_plugin_config --log-file=$OCF_RESKEY_log_file $OCF_RESKEY_additional_parameters "' 2>&1 &'

And this one prevents start action to be completed detached
The fix should be:
        --config-file=$OCF_RESKEY_plugin_config --log-file=$OCF_RESKEY_log_file $OCF_RESKEY_additional_parameters \
         >> /dev/null"' 2>&1 & echo $!' > $OCF_RESKEY_pid

This one will redirect output to /dev/null due to we use --log-file (https://bugs.launchpad.net/fuel/+bug/1371629) AND fix pid-file creation as well