Skip to content

Commit

Permalink
DAOS-16111 test: new utility daos_sys_logscan (#15629)
Browse files Browse the repository at this point in the history
Scan a list of engine logfiles to produce a nested dictionary of
pools and a sequence of key events such as pool leadership terms,
pool map version updates (due to target state changes), rebuild
start and progress update events and total rebuild duration. This
first version focuses on finding the pool service leader engine log
file and producing this information. Future updates to the tool
can potentially include finer-grain tracking of operations across all
pool storage engine log files.

The supporting class LogLine in cart_logparse.py has a tiny change
to support this new utility.

Signed-off-by: Kenneth Cain <[email protected]>
  • Loading branch information
kccain authored Jan 7, 2025
1 parent da773f5 commit ae908bd
Show file tree
Hide file tree
Showing 3 changed files with 571 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/tests/ftest/cart/util/cart_logparse.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# /*
# * (C) Copyright 2016-2023 Intel Corporation.
# * (C) Copyright 2025 Hewlett Packard Enterprise Development LP
# *
# * SPDX-License-Identifier: BSD-2-Clause-Patent
# */
Expand Down Expand Up @@ -104,7 +105,8 @@ def __init__(self, line):
except KeyError as error:
raise InvalidLogFile(fields[4]) from error

# self.time_stamp = fields[0]
self.time_stamp = fields[0]
self.hostname = fields[1]
self._fields = fields[5:]
try:
if self._fields[1][-2:] == '()':
Expand Down
Loading

0 comments on commit ae908bd

Please sign in to comment.