Merge "Filter ComputeWaitTimeoutException when jobboard is disabled"

This commit is contained in:
Zuul 2022-12-12 18:21:07 +00:00 committed by Gerrit Code Review
commit 8d27bdb546
2 changed files with 10 additions and 1 deletions

View File

@ -41,7 +41,9 @@ LOG = logging.getLogger(__name__)
# to instance" will be logged as usual.
def retryMaskFilter(record):
if record.exc_info is not None and isinstance(
record.exc_info[1], driver_exc.AmpConnectionRetry):
record.exc_info[1], (
driver_exc.AmpConnectionRetry,
exceptions.ComputeWaitTimeoutException)):
return False
return True

View File

@ -0,0 +1,7 @@
---
fixes:
- |
Added a filter to hide a bogus ComputeWaitTimeoutException exception when
creating an amphora when jobboard is disabled. This exception is part of
the flow when creating a load balancer or an amphora and should not be shown
to the user.