Skip to content

Commit

Permalink
fix(sdcm/tester.py): Handle ZonalAllocationFailed in check_error
Browse files Browse the repository at this point in the history
This commit adds a pattern for an Azure allocation event, which is
similar to SpotTerminationEvent, to check_error, which is used to
determine if Argus should set this test's status as TEST_ERROR.

(cherry picked from commit 447dff1)
  • Loading branch information
k0machi authored and soyacz committed Sep 20, 2024
1 parent 2384f88 commit 3b2241a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sdcm/tester.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,7 @@ def _is_test_error(self, events: dict[str, list[str]]) -> bool:
def check_error(event: str):
errors = [
re.compile(r"SpotTerminationEvent", re.IGNORECASE),
re.compile(r"ZonalAllocationFailed", re.IGNORECASE),
re.compile(r"source=[\w]+.SetUp\(\).+exception=403 FORBIDDEN QUOTA_EXCEEDED",
re.IGNORECASE | re.DOTALL),
re.compile(r"source=[\w]+.SetUp\(\).+InsufficientInstanceCapacity", re.IGNORECASE | re.DOTALL),
Expand Down

0 comments on commit 3b2241a

Please sign in to comment.