-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
None
InstanceHA traceback when evacuating:
2025-10-27 09:49:50,222 ERROR Failed to evacuate ggncld-cn3.railtel.in: local variable 'success' referenced before assignment Traceback (most recent call last): File "/var/lib/instanceha/instanceha.py", line 814, in process_service evacuation_result = _host_evacuate(conn, service) File "/var/lib/instanceha/instanceha.py", line 226, in _host_evacuate response = _server_evacuate(connection, server.id) File "/var/lib/instanceha/instanceha.py", line 263, in _server_evacuate "accepted": success, UnboundLocalError: local variable 'success' referenced before assignment 2025-10-27 09:49:50,222 WARNING Some services failed to evacuate. Retrying in 30 seconds.
The above might be a bug or perhaps a better handling of that situation in the code should be considered.