Add an error log with the server fault message
In case there is useful debug information in the server fault message, log it so that we can try to track down why servers go away. Change-Id: I33fd51cbfc110fdb1ccfa6bc30a421d527f2e928
This commit is contained in:
parent
90e3812c49
commit
536f7feab0
@ -483,6 +483,12 @@ class ProviderManager(TaskManager):
|
||||
provider=self.provider.name,
|
||||
id=resource_id,
|
||||
status=status))
|
||||
if status == 'ERROR' and 'fault' in resource:
|
||||
self.log.debug(
|
||||
'ERROR in {provider} on {id}: {resason}'.format(
|
||||
provider=self.provider.name,
|
||||
id=resource_id,
|
||||
resason=resource['fault']['message']))
|
||||
last_status = status
|
||||
if status in ['ACTIVE', 'ERROR']:
|
||||
return resource
|
||||
|
Loading…
x
Reference in New Issue
Block a user