Add more info in Octavia driver error handling

Printing the fault string of the update status & statistics errors
will give more information for debugging

Change-Id: Ia9b4869dbe29e96cff3a7bc694db4fb6eeb8a7b1
This commit is contained in:
Adit Sarfaty 2019-06-18 12:37:52 +03:00
parent 3eee6b93de
commit 025d030147
1 changed files with 2 additions and 2 deletions

View File

@ -553,7 +553,7 @@ class NSXOctaviaDriverEndpoint(driver_lib.DriverLibrary):
self).update_loadbalancer_status(status)
except exceptions.UpdateStatusError as e:
LOG.error("Failed to update Octavia loadbalancer status. "
"Status %s, Error %s", status, e)
"Status %s, Error %s", status, e.fault_string)
@log_helpers.log_method_call
def update_listener_statistics(self, ctxt, statistics):
@ -564,4 +564,4 @@ class NSXOctaviaDriverEndpoint(driver_lib.DriverLibrary):
self).update_listener_statistics(statistics)
except exceptions.UpdateStatisticsError as e:
LOG.error("Failed to update Octavia listener statistics. "
"Stats %s, Error %s", statistics, e)
"Stats %s, Error %s", statistics, e.fault_string)