Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-21416

InstanceHA traceback when evacuating

XMLWordPrintable

    • 1
    • False
    • Hide

      None

      Show
      None
    • False
    • ?
    • rhos-ops-platform-services-pidone
    • None
    • Moderate

      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.

              rhn-support-lmiccini Luca Miccini
              rhn-support-dhill Dave Hill
              rhos-dfg-pidone
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: