weka / snaptool

GNU General Public License v3.0
9 stars 4 forks source link

Log offers an unnecessarily alarming hint that "IO Stopped on Cluster?" when an API call fails for any reason #36

Open sethmalone opened 3 months ago

sethmalone commented 3 months ago
Jun  6 14:48:17 isvwsnap01 3946615[3946615]: INFO   :background.py  s:  38:message(): 2024-06-06 14:48:17 Deleting <snapshotname>
Jun  6 14:48:17 isvwsnap01 3946615[3946615]: ERROR  :wekaapi.py     s: 316:weka_api_command(): bad response from <hostname>
Jun  6 14:48:17 isvwsnap01 3946615[3946615]: ERROR  :wekacluster.py s: 318:call_api(): IO Stopped on Cluster <clustername>
Jun  6 14:48:17 isvwsnap01 3946615[3946615]: ERROR  :background.py  s: 283:snapshot_status(): Error getting snapshot status for <snapshot>

There are many reasons for which the API call might fail. Perhaps just say "API call failed - please investigate."