@@ -65,11 +65,13 @@ for d in "${secondary[@]}"; do
6565 echo " INFO: Stopping secondary storage vm with id $d " >> $LOGFILE
6666 jobresult=$( send_request stopSystemVm $d )
6767 if [ " $jobresult " != " 1" ]; then
68+ echo -e " ERROR: Failed to stop secondary storage vm with id $d \n"
6869 echo " ERROR: Failed to stop secondary storage vm with id $d " >> $LOGFILE
6970 else
7071 echo " INFO: Starting secondary storage vm with id $d " >> $LOGFILE
7172 jobresult=$( send_request startSystemVm $d SSVM)
7273 if [ " $jobresult " != " 1" ]; then
74+ echo " ERROR: Failed to start secondary storage vm with id $d " >> $LOGFILE
7375 echo " ERROR: Failed to start secondary storage vm with id $d " >> $LOGFILE
7476 fi
7577 fi
@@ -89,11 +91,13 @@ for d in "${console[@]}"; do
8991 echo " INFO: Stopping console proxy with id $d " >> $LOGFILE
9092 jobresult=$( send_request stopSystemVm $d )
9193 if [ " $jobresult " != " 1" ]; then
94+ echo -e " ERROR: Failed to stop console proxy vm with id $d \n"
9295 echo " ERROR: Failed to stop console proxy vm with id $d " >> $LOGFILE
9396 else
9497 echo " INFO: Starting console proxy vm with id $d " >> $LOGFILE
9598 jobresult=$( send_request startSystemVm $d consoleProxy)
9699 if [ " $jobresult " != " 1" ]; then
100+ echo -e " ERROR: Failed to start console proxy vm with id $d \n"
97101 echo " ERROR: Failed to start console proxy vm with id $d " >> $LOGFILE
98102 fi
99103 fi
@@ -197,6 +201,7 @@ reboot_router(){
197201 jobresult=$( query_async_job_result $jobid )
198202
199203 if [ " $jobresult " != " 1" ]; then
204+ echo -e " ERROR: Failed to restart domainRouter with id $1 \n"
200205 echo " ERROR: Failed to restart domainRouter with id $1 " >> $LOGFILE
201206 exit 0
202207 else
0 commit comments