diff --git a/ocf/quantum-agent-l3 b/ocf/quantum-agent-l3 index 5e801d4..e0e2a3f 100644 --- a/ocf/quantum-agent-l3 +++ b/ocf/quantum-agent-l3 @@ -203,9 +203,6 @@ quantum_l3_agent_status() { quantum_l3_agent_monitor() { local rc local pid - local rc_db - local rc_amqp - local network_db_check local network_amqp_check quantum_l3_agent_status @@ -221,9 +218,9 @@ quantum_l3_agent_monitor() { pid=`cat $OCF_RESKEY_pid` # check the connections according to the PID network_amqp_check=`netstat -punt | grep -s "$OCF_RESKEY_quantum_server_port" | grep -s "$pid" | grep -qs "ESTABLISHED"` - rc_amqp=$? - if [ $rc_amqp -ne 0 ]; then - ocf_log err "Quantum L3 Server is not connected to the Quantum server : Quantum connection test returned $rc_amqp" + rc=$? + if [ $rc -ne 0 ]; then + ocf_log err "Quantum L3 Server is not connected to the Quantum server: $rc" return $OCF_NOT_RUNNING fi