Add better code comments

This commit is contained in:
Sébastien Han 2012-09-08 23:19:40 +02:00
parent 5e9f8626e0
commit 154fea462a
2 changed files with 3 additions and 4 deletions

View File

@ -235,8 +235,7 @@ glance_api_monitor() {
return $rc
fi
# Check whether we are supposed to monitor by logging into glance-api
# and do it if that's the case.
# Monitor the RA by retrieving the image list
if [ -n "$OCF_RESKEY_os_username" ] && [ -n "$OCF_RESKEY_os_password" ] \
&& [ -n "$OCF_RESKEY_os_tenant_name" ] && [ -n "$OCF_RESKEY_os_auth_url" ]; then
ocf_run -q $OCF_RESKEY_client_binary \

View File

@ -226,8 +226,8 @@ nova_volume_monitor() {
return $rc
fi
# Check whether we are supposed to monitor by logging into nova-scheduler
# and do it if that's the case.
# Check the connections according to the PID
# We are sure to hit the scheduler process and not other nova process with the same connection behavior (for example nova-cert)
if ocf_is_true "$OCF_RESKEY_zeromq"; then
pid=`cat $OCF_RESKEY_pid`
volume_db_check=`netstat -punt | grep -s "$OCF_RESKEY_database_server_port" | grep -s "$pid" | grep -qs "ESTABLISHED"`