Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
EOS-23546: cluster reset --type all failed from nodecli prompt for HA… (
Browse files Browse the repository at this point in the history
#550)

* EOS-23546: cluster reset --type all failed from nodecli prompt for HA component on VM

Signed-off-by: Akash Dudhane <akash.a.dudhane@seagate.com>

* EOS-23546: cluster reset --type all failed from nodecli prompt for HA

Signed-off-by: Akash Dudhane <akash.a.dudhane@seagate.com>

Co-authored-by: ajaysrivas <66410865+ajaysrivas@users.noreply.github.com>
  • Loading branch information
akash2144 and ajaysrivas committed Aug 26, 2021
1 parent c7c8a35 commit 40e6655
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ha/setup/ha_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ def process(self):

self._remove_logs(older_logs)
except Exception as e:
Log.error(f"Cluster reset command failed. Error: {e}")
sys.stderr.write(f"Cluster reset command failed. {traceback.format_exc()}, Error: {e}\n")
raise HaResetException("Cluster reset failed")

def _remove_logs(self, logs: list):
Expand Down Expand Up @@ -933,6 +933,7 @@ def process(self):

except Exception as e:
Log.error(f"Cluster cleanup command failed. Error: {e}")
sys.stderr.write(f"Cluster cleanup command failed. {traceback.format_exc()}, Error: {e}\n")
raise HaCleanupException("Cluster cleanup failed")
Log.info("cleanup command is successful")

Expand Down

0 comments on commit 40e6655

Please sign in to comment.