From ca981e209a965037be2e194a9abbd3d3b7ccaf87 Mon Sep 17 00:00:00 2001 From: Alena Prokharchyk Date: Wed, 28 Mar 2012 16:15:30 -0700 Subject: [PATCH] bug 14169: show error on the console in addition to logging it when restart operation fails for ssvm/consoleProxy/domR status 14169: resolved fixed --- setup/bindir/cloud-sysvmadm.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/setup/bindir/cloud-sysvmadm.in b/setup/bindir/cloud-sysvmadm.in index 411f89e4882..4659c9f4af8 100755 --- a/setup/bindir/cloud-sysvmadm.in +++ b/setup/bindir/cloud-sysvmadm.in @@ -65,11 +65,13 @@ for d in "${secondary[@]}"; do echo "INFO: Stopping secondary storage vm with id $d" >>$LOGFILE jobresult=$(send_request stopSystemVm $d) if [ "$jobresult" != "1" ]; then + echo -e "ERROR: Failed to stop secondary storage vm with id $d \n" echo "ERROR: Failed to stop secondary storage vm with id $d" >>$LOGFILE else echo "INFO: Starting secondary storage vm with id $d" >>$LOGFILE jobresult=$(send_request startSystemVm $d SSVM) if [ "$jobresult" != "1" ]; then + echo "ERROR: Failed to start secondary storage vm with id $d" >>$LOGFILE echo "ERROR: Failed to start secondary storage vm with id $d" >>$LOGFILE fi fi @@ -89,11 +91,13 @@ for d in "${console[@]}"; do echo "INFO: Stopping console proxy with id $d" >>$LOGFILE jobresult=$(send_request stopSystemVm $d) if [ "$jobresult" != "1" ]; then + echo -e "ERROR: Failed to stop console proxy vm with id $d \n" echo "ERROR: Failed to stop console proxy vm with id $d" >>$LOGFILE else echo "INFO: Starting console proxy vm with id $d" >>$LOGFILE jobresult=$(send_request startSystemVm $d consoleProxy) if [ "$jobresult" != "1" ]; then + echo -e "ERROR: Failed to start console proxy vm with id $d \n" echo "ERROR: Failed to start console proxy vm with id $d" >>$LOGFILE fi fi @@ -197,6 +201,7 @@ reboot_router(){ jobresult=$(query_async_job_result $jobid) if [ "$jobresult" != "1" ]; then + echo -e "ERROR: Failed to restart domainRouter with id $1 \n" echo "ERROR: Failed to restart domainRouter with id $1" >>$LOGFILE exit 0 else